OGS
VtkImageDataToLinePolyDataFilter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
7#include <vtkPolyDataAlgorithm.h>
8
9class vtkInformation;
10class vtkInformationVector;
11
16class VtkImageDataToLinePolyDataFilter : public vtkPolyDataAlgorithm, public VtkAlgorithmProperties
17{
18public:
21
23
25 void PrintSelf(ostream& os, vtkIndent indent) override;
26
28 ogsUserPropertyMacro(LengthScaleFactor,double);
29
31 void SetUserProperty(QString name, QVariant value) override
32 {
33 if (name.compare("LengthScaleFactor") == 0)
34 SetLengthScaleFactor(value.toDouble());
35 }
36
39
41 delete;
43
44protected:
47
50
52 int FillInputPortInformation(int port, vtkInformation* info) override;
53
55 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
56 vtkInformationVector* outputVector) override;
57
59 double ImageSpacing{0.0};
60};
VtkAlgorithmProperties(QObject *parent=nullptr)
Constructor (sets default values)
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.