OGS
VtkPointsSource.h
Go to the documentation of this file.
1
15#pragma once
16
17// ** INCLUDES **
19#include <vtkPolyDataAlgorithm.h>
20
21#include "GeoLib/Point.h"
22
27class VtkPointsSource : public vtkPolyDataAlgorithm, public VtkAlgorithmProperties
28{
29public:
32
33 vtkTypeMacro(VtkPointsSource,vtkPolyDataAlgorithm);
34
36 void setPoints(const std::vector<GeoLib::Point*>* points) { _points = points; }
37
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
41 void SetUserProperty(QString name, QVariant value) override;
42
43protected:
45 ~VtkPointsSource() override = default;
46
48 int RequestData(vtkInformation* request,
49 vtkInformationVector** inputVector,
50 vtkInformationVector* outputVector) override;
51
52 int RequestInformation(vtkInformation* request,
53 vtkInformationVector** inputVector,
54 vtkInformationVector* outputVector) override;
55
57 const std::vector<GeoLib::Point*>* _points{nullptr};
58
59private:
60};
Definition of the Point class.
Definition of the VtkAlgorithmProperties class.
Contains properties for the visualization of objects as VtkVisPipelineItems.
VtkPointsSource is a VTK source object for the visualization of point data. As a vtkPolyDataAlgorithm...
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Computes the polygonal data object.
void setPoints(const std::vector< GeoLib::Point * > *points)
Sets the points as a vector.
void SetUserProperty(QString name, QVariant value) override
Sets a user property. This should be implemented by subclasses.
vtkTypeMacro(VtkPointsSource, vtkPolyDataAlgorithm)
~VtkPointsSource() override=default
const std::vector< GeoLib::Point * > * _points
The points to visualize.
void PrintSelf(ostream &os, vtkIndent indent) override
Prints its data on a stream.
static VtkPointsSource * New()
Create new objects with New() because of VTKs object reference counting.
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override