VTK  9.4.20250216
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
32VTK_ABI_NAMESPACE_BEGIN
33class vtkCell;
34class vtkDataArray;
35
36class VTKFILTERSSTATISTICS_EXPORT vtkLengthDistribution : public vtkTableAlgorithm
37{
38public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
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
74protected:
75 ~vtkLengthDistribution() override = default;
77
78 int FillInputPortInformation(int port, vtkInformation* info) override;
80
81 vtkIdType SampleSize = 100000;
82 bool SortSample = true;
83
84private:
86 void operator=(const vtkLengthDistribution&) = delete;
87};
88VTK_ABI_NAMESPACE_END
89
90#endif // vtkLengthDistribution_h
abstract class to specify cell behavior
Definition vtkCell.h:130
abstract superclass for arrays of numeric data
a simple class to control print indentation
Definition vtkIndent.h:108
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.
int vtkIdType
Definition vtkType.h:315