OGS
VtkTextureOnSurfaceFilter.h
Go to the documentation of this file.
1
15#pragma once
16
17// ** INCLUDES **
19#include <vtkImageData.h>
20#include <vtkPolyDataAlgorithm.h>
21
22class QImage;
23class vtkImageAlgorithm;
24
37class VtkTextureOnSurfaceFilter : public vtkPolyDataAlgorithm, public VtkAlgorithmProperties
38{
39public:
42
44
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49 void SetRaster(vtkImageAlgorithm* img);
50
51 void SetUserProperty(QString name, QVariant value) override;
52
53protected:
56
59 int RequestData(vtkInformation* request,
60 vtkInformationVector** inputVector,
61 vtkInformationVector* outputVector) override;
62
63private:
64 std::pair<double, double> _origin{0, 0};
65 double _scalingFactor{0.};
66};
Definition of the VtkAlgorithmProperties class.
Contains properties for the visualization of objects as VtkVisPipelineItems.
Filter class for assigning a texture to a surface.
std::pair< double, double > _origin
~VtkTextureOnSurfaceFilter() override
static VtkTextureOnSurfaceFilter * New()
Create new objects with New() because of VTKs object reference counting.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
void PrintSelf(ostream &os, vtkIndent indent) override
Prints the object data to an output stream.
void SetUserProperty(QString name, QVariant value) override
Sets a user property. This should be implemented by subclasses.
vtkTypeMacro(VtkTextureOnSurfaceFilter, vtkPolyDataAlgorithm)
void SetRaster(vtkImageAlgorithm *img)
Sets the raster/image to be used as a texture map.