18#include <vtkAlgorithmOutput.h>
19#include <vtkDataSetSurfaceFilter.h>
20#include <vtkPointData.h>
21#include <vtkSmartPointer.h>
22#include <vtkThreshold.h>
31 vtkAlgorithm* inputAlgorithm)
33 _type(
GeoLib::GEOTYPE::POINT),
34 _threshold(vtkThreshold::New())
36 if (inputAlgorithm->GetNumberOfInputPorts() &&
37 inputAlgorithm->GetNumberOfInputConnections(0))
39 vtkAlgorithmOutput* ao = inputAlgorithm->GetInputConnection(0, 0);
43 vtkAlgorithm* parentAlg = ao->GetProducer();
45 if (dynamic_cast<VtkPolylinesSource*>(parentAlg) != nullptr)
47 _type = GeoLib::GEOTYPE::POLYLINE;
49 else if (dynamic_cast<VtkSurfacesSource*>(parentAlg) != nullptr)
51 _type = GeoLib::GEOTYPE::SURFACE;
53 else if (dynamic_cast<VtkStationSource*>(parentAlg) != nullptr)
76 vtkThreshold::ThresholdType::THRESHOLD_BETWEEN);
80 vtkDataSetSurfaceFilter* surface = vtkDataSetSurfaceFilter::New();
81 surface->SetInputConnection(
_threshold->GetOutputPort());
104 double const d_idx =
static_cast<double>(idx);
106 vtkThreshold::ThresholdType::THRESHOLD_BETWEEN);
Definition of the VtkCompositeGeoObjectFilter class.
Definition of the VtkCompositeLineToTubeFilter class.
Definition of the VtkCompositePointToGlyphFilter class.
Definition of the VtkPolylinesSource class.
Definition of the VtkStationSource class.
Definition of the VtkSurfacesSource class.
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 * GetOutputAlgorithm() const
vtkAlgorithm * _outputAlgorithm
int _outputDataObjectType
double GetInitialRadius() const
Calculates a 1/200th of the largest extension of the bounding box (this is used as default radius for...
vtkAlgorithm * _inputAlgorithm
vtkThreshold * _threshold
void SetIndex(std::size_t idx)
VtkCompositeGeoObjectFilter(vtkAlgorithm *inputAlgorithm)
~VtkCompositeGeoObjectFilter() override
Converts lines to tube-objects.
Converts point data to scalar-scaled spheres.