OGS
VtkVisImageItem.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
9class vtkAlgorithm;
10class vtkImageChangeInformation;
11class vtkPointSet;
12class vtkProp3D;
13class vtkRenderer;
14
17
26{
27public:
29 VtkVisImageItem(vtkAlgorithm* algorithm,
31 const QList<QVariant> data = QList<QVariant>());
32
35 const QList<QVariant> data = QList<QVariant>());
36
37 ~VtkVisImageItem() override;
38
41 void Initialize(vtkRenderer* renderer) override;
42
43 void setTranslation(double x, double y, double z) const override;
44
45 vtkAlgorithm* transformFilter() const override;
46
48 bool writeAsRaster();
49
50protected:
52 int callVTKWriter(vtkAlgorithm* algorithm,
53 const std::string& filename) const override;
55
56private:
57 vtkImageChangeInformation* _transformFilter;
58};
TreeItem * parentItem() const
Definition TreeItem.cpp:104
TreeItem(QList< QVariant > data, TreeItem *parent)
Definition TreeItem.cpp:12
Contains properties for the visualization of objects as VtkVisPipelineItems.
Is used to combine several filter in one VtkVisPipelineItem. You can use vtk filter and custom filter...
vtkImageChangeInformation * _transformFilter
VtkVisImageItem(vtkAlgorithm *algorithm, TreeItem *parentItem, const QList< QVariant > data=QList< QVariant >())
Constructor for a source/filter object.
bool writeAsRaster()
Allows writing this item's source object as an ASCII raster file.
void Initialize(vtkRenderer *renderer) override
Initializes vtkMapper and vtkActor necessary for visualization of the item and sets the item's proper...
vtkAlgorithm * transformFilter() const override
int callVTKWriter(vtkAlgorithm *algorithm, const std::string &filename) const override
Selects the appropriate VTK-Writer object and writes the object to a file with the given name.
~VtkVisImageItem() override
void setVtkProperties(VtkAlgorithmProperties *vtkProps)
void setTranslation(double x, double y, double z) const override
Translates the item in visualisation-space. This function is empty and needs to be implemented by der...
vtkAlgorithm * algorithm() const
Returns the algorithm object.
VtkVisPipelineItem(vtkAlgorithm *algorithm, TreeItem *parentItem, const QList< QVariant > data=QList< QVariant >())
Constructor for a source/filter object.
QVariant data(int column) const override
VtkCompositeFilter * compositeFilter() const
Returns the composite filter.