20 #include <vtkDataSetAlgorithm.h>
21 #include <vtkGlyph3D.h>
22 #include <vtkSmartPointer.h>
23 #include <vtkSphereSource.h>
28 vtkAlgorithm* inputAlgorithm)
49 vtkSmartPointer<VtkPointsSource> point_source =
50 vtkSmartPointer<VtkPointsSource>::New();
53 vtkSmartPointer<vtkSphereSource> _glyphSource =
54 vtkSmartPointer<vtkSphereSource>::New();
57 vtkGlyph3D* glyphFilter = vtkGlyph3D::New();
58 glyphFilter->SetSourceConnection(_glyphSource->GetOutputPort());
59 glyphFilter->SetInputConnection(point_source->GetOutputPort());
70 const std::vector<unsigned>& point_indeces)
72 for (
unsigned int point_index : point_indeces)
76 ->GetPoint(point_index);
Definition of the VtkCompositeNodeSelectionFilter class.
Definition of the VtkPointsSource class.
Is used to combine several filter in one VtkVisPipelineItem. You can use vtk filter and custom filter...
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
void setSelectionArray(const std::vector< unsigned > &point_indeces)
Sets the point indices to be highlighted.
std::vector< GeoLib::Point * > _selection
VtkCompositeNodeSelectionFilter(vtkAlgorithm *inputAlgorithm)
~VtkCompositeNodeSelectionFilter() override