13#include <vtkPolyDataAlgorithm.h>
19class vtkInformationVector;
32 void PrintSelf(ostream& os, vtkIndent indent)
override;
76 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
77 vtkInformationVector* outputVector)
override;
92 vtkSmartPointer<vtkCellArray>& cells, std::size_t pnt_idx,
103 std::size_t
interpolate(
double low,
double high,
double p,
double gamma)
const;
Definition of the Point3d class.
Definition of the VtkAlgorithmProperties class.
vtkTypeMacro(VtkImageDataToPointCloudFilter, vtkPolyDataAlgorithm)
int FillInputPortInformation(int port, vtkInformation *info) override
Sets input port to vtkImageData.
void PrintSelf(ostream &os, vtkIndent indent) override
Prints information about the filter.
void useLinearInterpolation()
vtkSetMacro(Gamma, double)
vtkSetMacro(PointScaleFactor, double)
void createPoints(vtkSmartPointer< vtkPoints > &points, vtkSmartPointer< vtkCellArray > &cells, std::size_t pnt_idx, std::size_t n_points, MathLib::Point3d const &min_pnt, MathLib::Point3d const &max_pnt) const
Creates the point objects based on the parameters set by the user.
vtkGetMacro(MinValueRange, double)
~VtkImageDataToPointCloudFilter() override=default
vtkGetMacro(MinNumberOfPointsPerCell, vtkIdType)
vtkGetMacro(MaxNumberOfPointsPerCell, vtkIdType)
vtkSetMacro(MinValueRange, double)
vtkSetMacro(MinNumberOfPointsPerCell, vtkIdType)
void useLogarithmicInterpolation(double gamma)
vtkIdType MaxNumberOfPointsPerCell
double getRandomNumber(double const &min, double const &max) const
Returns a random number in [min, max].
vtkSetMacro(MinHeight, double)
std::size_t interpolate(double low, double high, double p, double gamma) const
vtkSetMacro(MaxNumberOfPointsPerCell, vtkIdType)
vtkSetMacro(MaxHeight, double)
vtkSetMacro(IsLinear, bool)
vtkGetMacro(Gamma, double)
vtkSetMacro(MaxValueRange, double)
static VtkImageDataToPointCloudFilter * New()
Create a new objects (required because of VTKs reference counting)
vtkGetMacro(IsLinear, bool)
vtkGetMacro(MaxValueRange, double)
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Updates the graphical object.
vtkIdType MinNumberOfPointsPerCell
vtkGetMacro(PointScaleFactor, double)
vtkGetMacro(MaxHeight, double)
VtkImageDataToPointCloudFilter()
vtkGetMacro(MinHeight, double)