OGS
VtkTextureOnSurfaceFilter.h
Go to the documentation of this file.
1 
15 #pragma once
16 
17 // ** INCLUDES **
18 #include "VtkAlgorithmProperties.h"
19 #include <vtkImageData.h>
20 #include <vtkPolyDataAlgorithm.h>
21 
22 class QImage;
23 class vtkImageAlgorithm;
24 
37 class VtkTextureOnSurfaceFilter : public vtkPolyDataAlgorithm, public VtkAlgorithmProperties
38 {
39 public:
42 
43  vtkTypeMacro(VtkTextureOnSurfaceFilter,vtkPolyDataAlgorithm);
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 
53 protected:
56 
59  int RequestData(vtkInformation* request,
60  vtkInformationVector** inputVector,
61  vtkInformationVector* outputVector) override;
62 
63 private:
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
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.
static VtkTextureOnSurfaceFilter * New()
Create new objects with New() because of VTKs object reference counting.
vtkTypeMacro(VtkTextureOnSurfaceFilter, vtkPolyDataAlgorithm)
void SetRaster(vtkImageAlgorithm *img)
Sets the raster/image to be used as a texture map.