VTK
vtkImageStack.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageStack.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
32 #ifndef vtkImageStack_h
33 #define vtkImageStack_h
34 
35 #include "vtkImageSlice.h"
36 #include "vtkRenderingImageModule.h" // For export macro
37 
39 class vtkImageProperty;
40 class vtkImageMapper3D;
41 class vtkCollection;
42 
43 class VTKRENDERINGIMAGE_EXPORT vtkImageStack : public vtkImageSlice
44 {
45 public:
46  vtkTypeMacro(vtkImageStack, vtkImageSlice);
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48  static vtkImageStack* New();
49 
54  void AddImage(vtkImageSlice* prop);
55 
60  void RemoveImage(vtkImageSlice* prop);
61 
65  int HasImage(vtkImageSlice* prop);
66 
70  vtkImageSliceCollection* GetImages() { return this->Images; }
71 
73 
77  vtkSetMacro(ActiveLayer, int);
78  int GetActiveLayer() { return this->ActiveLayer; }
80 
86  vtkImageSlice* GetActiveImage();
87 
91  vtkImageMapper3D* GetMapper() override;
92 
96  vtkImageProperty* GetProperty() override;
97 
99 
102  double* GetBounds() override;
103  void GetBounds(double bounds[6]) { this->vtkProp3D::GetBounds(bounds); }
105 
109  vtkMTimeType GetMTime() override;
110 
117  vtkMTimeType GetRedrawMTime() override;
118 
122  void ShallowCopy(vtkProp* prop) override;
123 
130 
132 
135  int RenderOverlay(vtkViewport* viewport) override;
136  int RenderOpaqueGeometry(vtkViewport* viewport) override;
137  int RenderTranslucentPolygonalGeometry(vtkViewport* viewport) override;
139 
144 
148  void ReleaseGraphicsResources(vtkWindow* win) override;
149 
151 
155  void InitPathTraversal() override;
156  vtkAssemblyPath* GetNextPath() override;
157  int GetNumberOfPaths() override;
159 
165  void BuildPaths(vtkAssemblyPaths* paths, vtkAssemblyPath* path) override;
166 
167 protected:
168  vtkImageStack();
169  ~vtkImageStack() override;
170 
171  void SetMapper(vtkImageMapper3D* mapper);
172  void SetProperty(vtkImageProperty* property);
173 
174  void PokeMatrices(vtkMatrix4x4* matrix);
175  void UpdatePaths();
176 
181 
182 private:
183  vtkImageStack(const vtkImageStack&) = delete;
184  void operator=(const vtkImageStack&) = delete;
185 };
186 
187 #endif
vtkImageSlice::GetMTime
vtkMTimeType GetMTime() override
Return the MTime also considering the property etc.
vtkImageStack::PathTime
vtkTimeStamp PathTime
Definition: vtkImageStack.h:177
vtkProp::GetNextPath
virtual vtkAssemblyPath * GetNextPath()
vtkImageStack::ActiveLayer
int ActiveLayer
Definition: vtkImageStack.h:180
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:32
vtkImageStack::GetBounds
void GetBounds(double bounds[6])
Definition: vtkImageStack.h:103
vtkImageSlice::GetMapper
virtual vtkImageMapper3D * GetMapper()
vtkImageSlice::SetMapper
void SetMapper(vtkImageMapper3D *mapper)
Set/Get the mapper.
vtkImageSlice::ShallowCopy
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkImageSlice.
vtkAssemblyPath
a list of nodes that form an assembly path
Definition: vtkAssemblyPath.h:41
vtkAssemblyPaths
a list of lists of props representing an assembly hierarchy
Definition: vtkAssemblyPaths.h:37
vtkProp3D::GetBounds
double * GetBounds() override=0
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkImageSlice::GetRedrawMTime
vtkMTimeType GetRedrawMTime() override
Return the mtime of anything that would cause the rendered image to appear differently.
vtkImageSlice::GetProperty
virtual vtkImageProperty * GetProperty()
vtkProp::BuildPaths
virtual void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
vtkImageSlice::SetProperty
void SetProperty(vtkImageProperty *property)
Set/Get the image display properties.
vtkCollection
create and manipulate ordered lists of objects
Definition: vtkCollection.h:52
vtkImageSlice
represents an image in a 3D scene
Definition: vtkImageSlice.h:46
vtkImageSlice::RenderTranslucentPolygonalGeometry
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
vtkImageProperty
image display properties
Definition: vtkImageProperty.h:36
vtkProp3D::InitPathTraversal
void InitPathTraversal() override
Overload vtkProp's method for setting up assembly paths.
vtkImageSlice::New
static vtkImageSlice * New()
Creates an Image with the following defaults: origin(0,0,0) position=(0,0,0) scale=1 visibility=1 pic...
vtkImageStack::GetActiveLayer
int GetActiveLayer()
Definition: vtkImageStack.h:78
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:35
vtkProp::GetNumberOfPaths
virtual int GetNumberOfPaths()
Definition: vtkProp.h:148
vtkImageSlice::RenderOverlay
int RenderOverlay(vtkViewport *viewport) override
Support the standard render methods.
vtkImageSlice::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageSliceCollection
a sorted list of image slice objects
Definition: vtkImageSliceCollection.h:33
vtkImageStack::GetImages
vtkImageSliceCollection * GetImages()
Get the list of images as a vtkImageSliceCollection.
Definition: vtkImageStack.h:70
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:44
vtkImageStack
manages a stack of composited images
Definition: vtkImageStack.h:43
vtkImageSlice::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *win) override
Release any resources held by this prop.
vtkImageSlice::GetBounds
double * GetBounds() override
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:47
vtkImageStack::ImageMatrices
vtkCollection * ImageMatrices
Definition: vtkImageStack.h:178
vtkImageMapper3D
abstract class for mapping images to the screen
Definition: vtkImageMapper3D.h:47
vtkImageSlice.h
vtkImageStack::Images
vtkImageSliceCollection * Images
Definition: vtkImageStack.h:179
vtkImageSlice::HasTranslucentPolygonalGeometry
vtkTypeBool HasTranslucentPolygonalGeometry() override
Internal method, should only be used by rendering.
vtkImageSlice::GetImages
void GetImages(vtkPropCollection *)
For some exporters and other other operations we must be able to collect all the actors,...
vtkPropCollection
an ordered list of Props
Definition: vtkPropCollection.h:35
vtkImageSlice::RenderOpaqueGeometry
int RenderOpaqueGeometry(vtkViewport *viewport) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:298