VTK  9.3.1
vtkLengthDistribution.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
26 #ifndef vtkLengthDistribution_h
27 #define vtkLengthDistribution_h
28 
29 #include "vtkFiltersStatisticsModule.h" // For export macro
30 #include "vtkTableAlgorithm.h"
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class vtkCell;
34 class vtkDataArray;
35 
36 class VTKFILTERSSTATISTICS_EXPORT vtkLengthDistribution : public vtkTableAlgorithm
37 {
38 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
41  static vtkLengthDistribution* New();
42 
47  vtkGetMacro(SampleSize, vtkIdType);
48  vtkSetMacro(SampleSize, vtkIdType);
49 
56  vtkGetMacro(SortSample, bool);
57  vtkSetMacro(SortSample, bool);
58  vtkBooleanMacro(SortSample, bool);
59 
72  double GetLengthQuantile(double qq = 0.5);
73 
74 protected:
75  ~vtkLengthDistribution() override = default;
76  vtkLengthDistribution() = default;
77 
80 
81  vtkIdType SampleSize = 100000;
82  bool SortSample = true;
83 
84 private:
86  void operator=(const vtkLengthDistribution&) = delete;
87 };
88 VTK_ABI_NAMESPACE_END
89 
90 #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:315
abstract class to specify cell behavior
Definition: vtkCell.h:49
a simple class to control print indentation
Definition: vtkIndent.h:28
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
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.