OGS
VtkVisImageItem.h
Go to the documentation of this file.
1
15#pragma once
16
17// ** INCLUDES **
18#include "VtkVisPipelineItem.h"
19
20class vtkAlgorithm;
21class vtkImageChangeInformation;
22class vtkPointSet;
23class vtkProp3D;
24class vtkRenderer;
25
28
37{
38public:
40 VtkVisImageItem(vtkAlgorithm* algorithm,
42 const QList<QVariant> data = QList<QVariant>());
43
46 const QList<QVariant> data = QList<QVariant>());
47
48 ~VtkVisImageItem() override;
49
52 void Initialize(vtkRenderer* renderer) override;
53
54 void setTranslation(double x, double y, double z) const override;
55
56 vtkAlgorithm* transformFilter() const override;
57
59 bool writeAsRaster();
60
61protected:
63 int callVTKWriter(vtkAlgorithm* algorithm,
64 const std::string& filename) const override;
66
67private:
68 vtkImageChangeInformation* _transformFilter;
69};
Definition of the VtkVisPipelineItem class.
Objects nodes for the TreeModel.
Definition TreeItem.h:28
TreeItem * parentItem() const
Definition TreeItem.cpp:115
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...
An item in the VtkVisPipeline containing an image to be visualized.
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...
An item in the VtkVisPipeline containing a graphic object to be visualized.
vtkAlgorithm * algorithm() const
Returns the algorithm object.
QVariant data(int column) const override
VtkCompositeFilter * compositeFilter() const
Returns the composite filter.