13#include <vtkPointData.h>
14#include <vtkSmartPointer.h>
23 vtkAlgorithm* inputAlgorithm)
36 point_cloud_filter->SetInputConnection(
_inputAlgorithm->GetOutputPort());
39 (*_algorithmUserProperties)[
"Points per pixel"] =
40 static_cast<int>(point_cloud_filter->GetPointsPerPixel());
41 point_cloud_filter->Update();
49 if ((name ==
"Points per pixel") && (value.toInt() > 0))
52 ->SetPointsPerPixel(
static_cast<vtkIdType
>(value.toInt()));
57 QString name, QList<QVariant> values)
virtual void SetUserProperty(QString name, QVariant value)
Sets a user property. This should be implemented by subclasses.
Is used to combine several filter in one VtkVisPipelineItem. You can use vtk filter and custom filter...
vtkAlgorithm * _outputAlgorithm
int _outputDataObjectType
vtkAlgorithm * _inputAlgorithm
void SetUserProperty(QString name, QVariant value) override
Sets a user property. This should be implemented by subclasses.
VtkCompositeImageToSurfacePointsFilter(vtkAlgorithm *inputAlgorithm)
void SetUserVectorProperty(QString name, QList< QVariant > values) override
Sets a vector user property. This should be implemented by subclasses.
static VtkImageDataToSurfacePointsFilter * New()
Create a new objects (required because of VTKs reference counting)