VTK  9.2.6
vtkLengthDistribution.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkLengthDistribution.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
34
35#ifndef vtkLengthDistribution_h
36#define vtkLengthDistribution_h
37
38#include "vtkFiltersStatisticsModule.h" // For export macro
39#include "vtkTableAlgorithm.h"
40
41class vtkCell;
42class vtkDataArray;
43
44class VTKFILTERSSTATISTICS_EXPORT vtkLengthDistribution : public vtkTableAlgorithm
45{
46public:
47 void PrintSelf(ostream& os, vtkIndent indent) override;
50
55 vtkGetMacro(SampleSize, vtkIdType);
56 vtkSetMacro(SampleSize, vtkIdType);
57
64 vtkGetMacro(SortSample, bool);
65 vtkSetMacro(SortSample, bool);
66 vtkBooleanMacro(SortSample, bool);
67
80 double GetLengthQuantile(double qq = 0.5);
81
82protected:
83 ~vtkLengthDistribution() override = default;
85
86 int FillInputPortInformation(int port, vtkInformation* info) override;
88
90 bool SortSample = true;
91
92private:
94 void operator=(const vtkLengthDistribution&) = delete;
95};
96
97#endif // vtkLengthDistribution_h
abstract class to specify cell behavior
Definition vtkCell.h:58
a simple class to control print indentation
Definition vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
static vtkLengthDistribution * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double GetLengthQuantile(double qq=0.5)
Return the length scale at a particular quantile.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkLengthDistribution()=default
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkLengthDistribution() override=default
#define vtkDataArray
int vtkIdType
Definition vtkType.h:332