OGS
VtkBGImageSource.h
Go to the documentation of this file.
1
14
15#pragma once
16
17// ** INCLUDES **
18#include <vtkTextureMapToPlane.h>
19
21
22class vtkImageAlgorithm;
23
28class VtkBGImageSource : public vtkTextureMapToPlane, public VtkAlgorithmProperties
29{
30public:
33
34 vtkTypeMacro(VtkBGImageSource, vtkTextureMapToPlane);
35
37 void SetRaster(vtkImageAlgorithm *img, double x0, double y0, double scalingFactor);
38
39 void SetUserProperty(QString name, QVariant value) override;
40
41protected:
44
45private:
46 std::pair<double, double> _origin{0, 0};
47 double _cellsize{1};
48};
Definition of the VtkAlgorithmProperties class.
VtkAlgorithmProperties(QObject *parent=nullptr)
Constructor (sets default values)
void SetUserProperty(QString name, QVariant value) override
Sets a user property. This should be implemented by subclasses.
void SetRaster(vtkImageAlgorithm *img, double x0, double y0, double scalingFactor)
Sets the raster/image to be used as a texture map.
~VtkBGImageSource() override
static VtkBGImageSource * New()
Create new objects with New() because of VTKs object reference counting.
vtkTypeMacro(VtkBGImageSource, vtkTextureMapToPlane)
std::pair< double, double > _origin