OGS
VtkPolylinesSource.h
Go to the documentation of this file.
1
15#pragma once
16
17// ** INCLUDES **
19#include <vtkPolyDataAlgorithm.h>
20
21// forward declaration
22namespace GeoLib {
23class Polyline;
24}
25
26
31class VtkPolylinesSource : public vtkPolyDataAlgorithm, public VtkAlgorithmProperties
32{
33public:
36
37 vtkTypeMacro(VtkPolylinesSource,vtkPolyDataAlgorithm);
38
40 void setPolylines(const std::vector<GeoLib::Polyline*>* polylines) { _polylines = polylines; }
41
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
45 void SetUserProperty(QString name, QVariant value) override;
46
47protected:
50
52 int RequestData(vtkInformation* request,
53 vtkInformationVector** inputVector,
54 vtkInformationVector* outputVector) override;
55
56 int RequestInformation(vtkInformation* request,
57 vtkInformationVector** inputVector,
58 vtkInformationVector* outputVector) override;
59
61 const std::vector<GeoLib::Polyline*>* _polylines{nullptr};
62
63private:
64};
Definition of the VtkAlgorithmProperties class.
Contains properties for the visualization of objects as VtkVisPipelineItems.
VtkPolylinesSource is a VTK source object for the visualisation of polyline data. As a vtkPolyDataAlg...
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
void setPolylines(const std::vector< GeoLib::Polyline * > *polylines)
Sets the polyline vector.
~VtkPolylinesSource() override
static VtkPolylinesSource * New()
Create new objects with New() because of VTKs object reference counting.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Computes the polygonal data object.
vtkTypeMacro(VtkPolylinesSource, vtkPolyDataAlgorithm)
const std::vector< GeoLib::Polyline * > * _polylines
The polylines to visualize.
void SetUserProperty(QString name, QVariant value) override
Sets a user property. This should be implemented by subclasses.
void PrintSelf(ostream &os, vtkIndent indent) override
Prints its data on a stream.