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;
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
abstract class to specify cell behavior
Definition: vtkCell.h:150
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:165
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Sample the distribution of representative "cell lengths" of a mesh.
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
Superclass for algorithms that produce only vtkTables as output.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
int vtkIdType
Definition: vtkType.h:332