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 =========================================================================*/
35 #ifndef vtkImageStack_h
36 #define vtkImageStack_h
37 
38 #include "vtkRenderingImageModule.h" // For export macro
39 #include "vtkImageSlice.h"
40 
42 class vtkImageProperty;
43 class vtkImageMapper3D;
44 class vtkCollection;
45 
46 class VTKRENDERINGIMAGE_EXPORT vtkImageStack : public vtkImageSlice
47 {
48 public:
50  void PrintSelf(ostream& os, vtkIndent indent);
51  static vtkImageStack *New();
52 
57  void AddImage(vtkImageSlice *prop);
58 
63  void RemoveImage(vtkImageSlice *prop);
64 
68  int HasImage(vtkImageSlice *prop);
69 
73  vtkImageSliceCollection *GetImages() { return this->Images; }
74 
76 
80  vtkSetMacro(ActiveLayer, int);
81  int GetActiveLayer() { return this->ActiveLayer; }
83 
89  vtkImageSlice *GetActiveImage();
90 
95 
100 
102 
105  double *GetBounds();
106  void GetBounds(double bounds[6]) { this->vtkProp3D::GetBounds( bounds ); };
108 
113 
121 
125  void ShallowCopy(vtkProp *prop);
126 
133 
135 
138  virtual int RenderOverlay(vtkViewport *viewport);
139  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
140  virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
142 
146  virtual int HasTranslucentPolygonalGeometry();
147 
152 
154 
158  void InitPathTraversal();
160  int GetNumberOfPaths();
162 
168  void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path);
169 
170 protected:
171  vtkImageStack();
172  ~vtkImageStack();
173 
174  void SetMapper(vtkImageMapper3D *mapper);
175  void SetProperty(vtkImageProperty *property);
176 
177  void PokeMatrices(vtkMatrix4x4 *matrix);
178  void UpdatePaths();
179 
184 
185 private:
186  vtkImageStack(const vtkImageStack&) VTK_DELETE_FUNCTION;
187  void operator=(const vtkImageStack&) VTK_DELETE_FUNCTION;
188 };
189 
190 #endif
vtkImageSlice::GetMTime
vtkMTimeType GetMTime()
Return the MTime also considering the property etc.
vtkImageSlice::ShallowCopy
void ShallowCopy(vtkProp *prop)
Shallow copy of this vtkImageSlice.
vtkImageStack::PathTime
vtkTimeStamp PathTime
Definition: vtkImageStack.h:180
vtkImageSlice::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *win)
Release any resources held by this prop.
vtkProp::GetNextPath
virtual vtkAssemblyPath * GetNextPath()
vtkImageStack::ActiveLayer
int ActiveLayer
Definition: vtkImageStack.h:183
vtkImageSlice::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
Internal method, should only be used by rendering.
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkImageSlice::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkImageStack::GetBounds
void GetBounds(double bounds[6])
Definition: vtkImageStack.h:106
vtkImageSlice::GetMapper
virtual vtkImageMapper3D * GetMapper()
vtkImageSlice::SetMapper
void SetMapper(vtkImageMapper3D *mapper)
Set/Get the mapper.
vtkImageSlice::RenderOverlay
virtual int RenderOverlay(vtkViewport *viewport)
Support the standard render methods.
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
vtkImageSlice::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
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 unsorted lists of objects
Definition: vtkCollection.h:51
vtkProp3D::InitPathTraversal
void InitPathTraversal()
Overload vtkProp's method for setting up assembly paths.
vtkImageSlice
represents an image in a 3D scene
Definition: vtkImageSlice.h:52
vtkImageProperty
image display properties
Definition: vtkImageProperty.h:42
vtkImageSlice::GetBounds
double * GetBounds()
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
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:81
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:41
vtkProp::GetNumberOfPaths
virtual int GetNumberOfPaths()
Definition: vtkProp.h:150
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:73
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkImageStack
manages a stack of composited images
Definition: vtkImageStack.h:46
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:47
vtkImageStack::ImageMatrices
vtkCollection * ImageMatrices
Definition: vtkImageStack.h:181
vtkImageMapper3D
abstract class for mapping images to the screen
Definition: vtkImageMapper3D.h:50
vtkImageSlice.h
vtkImageSlice::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
vtkImageStack::Images
vtkImageSliceCollection * Images
Definition: vtkImageStack.h:182
vtkImageSlice::GetImages
void GetImages(vtkPropCollection *)
For some exporters and other other operations we must be able to collect all the actors,...
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:38
vtkImageSlice::GetRedrawMTime
vtkMTimeType GetRedrawMTime()
Return the mtime of anything that would cause the rendered image to appear differently.
vtkProp3D::GetBounds
virtual double * GetBounds()=0
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).