OGS
VtkTextureOnSurfaceFilter.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
6// ** INCLUDES **
8#include <vtkImageData.h>
9#include <vtkPolyDataAlgorithm.h>
10
11class QImage;
12class vtkImageAlgorithm;
13
26class VtkTextureOnSurfaceFilter : public vtkPolyDataAlgorithm, public VtkAlgorithmProperties
27{
28public:
31
33
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
38 void SetRaster(vtkImageAlgorithm* img);
39
40 void SetUserProperty(QString name, QVariant value) override;
41
42protected:
45
48 int RequestData(vtkInformation* request,
49 vtkInformationVector** inputVector,
50 vtkInformationVector* outputVector) override;
51
52private:
53 std::pair<double, double> _origin{0, 0};
54 double _scalingFactor{0.};
55};
VtkAlgorithmProperties(QObject *parent=nullptr)
Constructor (sets default values)
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.