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 =========================================================================*/
34 #ifndef vtkImageStack_h
35 #define vtkImageStack_h
36 
37 #include "vtkRenderingImageModule.h" // For export macro
38 #include "vtkImageSlice.h"
39 
41 class vtkImageProperty;
42 class vtkImageMapper3D;
43 class vtkCollection;
44 
46 {
47 public:
49  void PrintSelf(ostream& os, vtkIndent indent);
50  static vtkImageStack *New();
51 
54  void AddImage(vtkImageSlice *prop);
55 
59 
61  int HasImage(vtkImageSlice *prop);
62 
64  vtkImageSliceCollection *GetImages() { return this->Images; }
65 
67 
69  vtkSetMacro(ActiveLayer, int);
70  int GetActiveLayer() { return this->ActiveLayer; }
72 
77 
80 
83 
85 
86  double *GetBounds();
87  void GetBounds(double bounds[6]) { this->vtkProp3D::GetBounds( bounds ); };
89 
91  unsigned long int GetMTime();
92 
97  unsigned long GetRedrawMTime();
98 
100  void ShallowCopy(vtkProp *prop);
101 
106 
108 
109  virtual int RenderOverlay(vtkViewport *viewport);
110  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
113 
116 
119 
121 
127 
132 
133 protected:
136 
138  void SetProperty(vtkImageProperty *property);
139 
141  void UpdatePaths();
142 
147 
148 private:
149  vtkImageStack(const vtkImageStack&); // Not implemented.
150  void operator=(const vtkImageStack&); // Not implemented.
151 };
152 
153 #endif
vtkImageStack::RenderOverlay
virtual int RenderOverlay(vtkViewport *viewport)
vtkImageStack::RemoveImage
void RemoveImage(vtkImageSlice *prop)
vtkImageStack::GetMTime
unsigned long int GetMTime()
vtkImageStack::PokeMatrices
void PokeMatrices(vtkMatrix4x4 *matrix)
vtkImageStack::UpdatePaths
void UpdatePaths()
vtkImageStack::PathTime
vtkTimeStamp PathTime
Definition: vtkImageStack.h:143
vtkImageStack::GetBounds
double * GetBounds()
vtkImageStack::~vtkImageStack
~vtkImageStack()
vtkImageStack::ActiveLayer
int ActiveLayer
Definition: vtkImageStack.h:146
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkImageStack::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkImageStack::GetBounds
void GetBounds(double bounds[6])
Definition: vtkImageStack.h:87
vtkImageStack::ShallowCopy
void ShallowCopy(vtkProp *prop)
vtkImageStack::New
static vtkImageStack * New()
vtkImageStack::GetNumberOfPaths
int GetNumberOfPaths()
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
vtkImageStack::BuildPaths
void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path)
vtkImageStack::GetNextPath
vtkAssemblyPath * GetNextPath()
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkImageStack::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
vtkImageStack::GetRedrawMTime
unsigned long GetRedrawMTime()
vtkImageStack::InitPathTraversal
void InitPathTraversal()
vtkImageStack::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
vtkImageStack::vtkImageStack
vtkImageStack()
vtkCollection
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:53
vtkImageSlice
represents an image in a 3D scene
Definition: vtkImageSlice.h:52
vtkImageProperty
image display properties
Definition: vtkImageProperty.h:42
vtkImageStack::HasImage
int HasImage(vtkImageSlice *prop)
vtkImageStack::GetActiveLayer
int GetActiveLayer()
Definition: vtkImageStack.h:70
vtkImageStack::GetProperty
vtkImageProperty * GetProperty()
vtkImageStack::SetMapper
void SetMapper(vtkImageMapper3D *mapper)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:39
vtkImageStack::SetProperty
void SetProperty(vtkImageProperty *property)
vtkgl::path
GLsizei const GLchar ** path
Definition: vtkgl.h:13835
vtkImageSliceCollection
a sorted list of image slice objects
Definition: vtkImageSliceCollection.h:33
vtkImageStack::GetImages
vtkImageSliceCollection * GetImages()
Definition: vtkImageStack.h:64
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkImageStack
manages a stack of composited images
Definition: vtkImageStack.h:46
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
vtkImageStack::ImageMatrices
vtkCollection * ImageMatrices
Definition: vtkImageStack.h:144
vtkImageMapper3D
abstract class for mapping images to the screen
Definition: vtkImageMapper3D.h:50
vtkImageSlice.h
vtkImageStack::GetActiveImage
vtkImageSlice * GetActiveImage()
vtkImageStack::GetImages
void GetImages(vtkPropCollection *)
vtkImageStack::Images
vtkImageSliceCollection * Images
Definition: vtkImageStack.h:145
vtkgl::matrix
GLuint GLenum matrix
Definition: vtkgl.h:16451
VTKRENDERINGIMAGE_EXPORT
#define VTKRENDERINGIMAGE_EXPORT
Definition: vtkRenderingImageModule.h:15
vtkRenderingImageModule.h
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:38
vtkImageStack::GetMapper
vtkImageMapper3D * GetMapper()
vtkImageStack::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *win)
vtkImageStack::AddImage
void AddImage(vtkImageSlice *prop)
vtkImageStack::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkProp3D::GetBounds
virtual double * GetBounds()=0