OGS
VtkImageDataToLinePolyDataFilter.h
Go to the documentation of this file.
1
15#pragma once
16
18#include <vtkPolyDataAlgorithm.h>
19
20class vtkInformation;
21class vtkInformationVector;
22
27class VtkImageDataToLinePolyDataFilter : public vtkPolyDataAlgorithm, public VtkAlgorithmProperties
28{
29public:
32
34
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39 ogsUserPropertyMacro(LengthScaleFactor,double);
40
42 void SetUserProperty(QString name, QVariant value) override
43 {
44 if (name.compare("LengthScaleFactor") == 0)
45 SetLengthScaleFactor(value.toDouble());
46 }
47
50
52 delete;
54
55protected:
58
61
63 int FillInputPortInformation(int port, vtkInformation* info) override;
64
66 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
67 vtkInformationVector* outputVector) override;
68
70 double ImageSpacing{0.0};
71};
Definition of the VtkAlgorithmProperties class.
Contains properties for the visualization of objects as VtkVisPipelineItems.
Creates lines that stand on top of the image with the length of the corresponding first sub-pixel val...
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Converts the image data to lines.
vtkTypeMacro(VtkImageDataToLinePolyDataFilter, vtkPolyDataAlgorithm)
void PrintSelf(ostream &os, vtkIndent indent) override
Prints information about itself.
static VtkImageDataToLinePolyDataFilter * New()
Create new objects with New() because of VTKs reference counting.
void operator=(const VtkImageDataToLinePolyDataFilter &)=delete
vtkGetMacro(ImageSpacing, double)
Returns the space between two pixels.
int FillInputPortInformation(int port, vtkInformation *info) override
Sets input port to vtkImageData.
VtkImageDataToLinePolyDataFilter(const VtkImageDataToLinePolyDataFilter &)=delete
~VtkImageDataToLinePolyDataFilter() override
Destructor.
void SetUserProperty(QString name, QVariant value) override
Sets a user property.
ogsUserPropertyMacro(LengthScaleFactor, double)
Sets the scaling of the length of the lines.