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 =========================================================================*/
38 #ifndef vtkLengthDistribution_h
39 #define vtkLengthDistribution_h
40 
41 #include "vtkFiltersStatisticsModule.h" // For export macro
42 #include "vtkTableAlgorithm.h"
43 
44 class vtkCell;
45 class vtkDataArray;
46 
47 class VTKFILTERSSTATISTICS_EXPORT vtkLengthDistribution : public vtkTableAlgorithm
48 {
49 public:
50  void PrintSelf(ostream& os, vtkIndent indent) override;
52  static vtkLengthDistribution* New();
53 
58  vtkGetMacro(SampleSize, vtkIdType);
59  vtkSetMacro(SampleSize, vtkIdType);
60 
67  vtkGetMacro(SortSample, bool);
68  vtkSetMacro(SortSample, bool);
69  vtkBooleanMacro(SortSample, bool);
70 
83  double GetLengthQuantile(double qq = 0.5);
84 
85 protected:
86  ~vtkLengthDistribution() override = default;
87  vtkLengthDistribution() = default;
88 
91 
92  vtkIdType SampleSize = 100000;
93  bool SortSample = true;
94 
95 private:
97  void operator=(const vtkLengthDistribution&) = delete;
98 };
99 
100 #endif // vtkLengthDistribution_h
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkTableAlgorithm * New()
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:332
abstract class to specify cell behavior
Definition: vtkCell.h:60
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Superclass for algorithms that produce only vtkTables as output.
Store zero or more vtkInformation instances.
Sample the distribution of representative "cell lengths" of a mesh.