OGS
VtkVisImageItem.h
Go to the documentation of this file.
1 
15 #pragma once
16 
17 // ** INCLUDES **
18 #include "VtkVisPipelineItem.h"
19 
20 class vtkAlgorithm;
21 class vtkImageChangeInformation;
22 class vtkPointSet;
23 class vtkProp3D;
24 class vtkRenderer;
25 
27 class VtkCompositeFilter;
28 
37 {
38 public:
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 
58 protected:
60  int callVTKWriter(vtkAlgorithm* algorithm,
61  const std::string& filename) const override;
63 
64 private:
65  vtkImageChangeInformation* _transformFilter;
66 };
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.
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.
VtkCompositeFilter * compositeFilter() const
Returns the composite filter.
QVariant data(int column) const override