VTK  9.2.6
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
35#ifndef vtkImageStack_h
36#define vtkImageStack_h
37
38#include "vtkImageSlice.h"
39#include "vtkRenderingImageModule.h" // For export macro
40
44class vtkCollection;
45
46class VTKRENDERINGIMAGE_EXPORT vtkImageStack : public vtkImageSlice
47{
48public:
50 void PrintSelf(ostream& os, vtkIndent indent) override;
51 static vtkImageStack* New();
52
58
64
69
74
76
80 vtkSetMacro(ActiveLayer, int);
81 int GetActiveLayer() { return this->ActiveLayer; }
83
90
95
100
102
105 double* GetBounds() override;
106 void GetBounds(double bounds[6]) { this->vtkProp3D::GetBounds(bounds); }
108
113
121
125 void ShallowCopy(vtkProp* prop) override;
126
133
135
138 int RenderOverlay(vtkViewport* viewport) override;
139 int RenderOpaqueGeometry(vtkViewport* viewport) override;
142
147
152
154
158 void InitPathTraversal() override;
160 int GetNumberOfPaths() override;
162
168 void BuildPaths(vtkAssemblyPaths* paths, vtkAssemblyPath* path) override;
169
170protected:
172 ~vtkImageStack() override;
173
176
179
184
185private:
186 vtkImageStack(const vtkImageStack&) = delete;
187 void operator=(const vtkImageStack&) = delete;
188};
189
190#endif
a list of nodes that form an assembly path
a list of lists of props representing an assembly hierarchy
create and manipulate ordered lists of objects
abstract class for mapping images to the screen
image display properties
a sorted list of image slice objects
void RemoveImage(vtkImageSlice *prop)
Remove an image from the stack.
void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
vtkImageMapper3D * GetMapper() override
Get the mapper for the currently active image.
int RenderOpaqueGeometry(vtkViewport *viewport) override
Support the standard render methods.
int GetActiveLayer()
Set the active layer number.
void SetMapper(vtkImageMapper3D *mapper)
~vtkImageStack() override
void UpdatePaths()
void InitPathTraversal() override
Methods for traversing the stack as if it was an assembly.
static vtkImageStack * New()
void PokeMatrices(vtkMatrix4x4 *matrix)
void ShallowCopy(vtkProp *prop) override
Shallow copy of this prop.
vtkImageSliceCollection * GetImages()
Get the list of images as a vtkImageSliceCollection.
vtkImageSlice * GetActiveImage()
Get the active image.
vtkImageProperty * GetProperty() override
Get the property for the currently active image.
void GetBounds(double bounds[6])
Get the combined bounds of all of the images.
vtkMTimeType GetRedrawMTime() override
Return the mtime of anything that would cause the rendered image to appear differently.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
int RenderOverlay(vtkViewport *viewport) override
Support the standard render methods.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ReleaseGraphicsResources(vtkWindow *win) override
Release any resources held by this prop.
int GetNumberOfPaths() override
Methods for traversing the stack as if it was an assembly.
vtkAssemblyPath * GetNextPath() override
Methods for traversing the stack as if it was an assembly.
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Support the standard render methods.
vtkImageSliceCollection * Images
vtkTimeStamp PathTime
void SetProperty(vtkImageProperty *property)
int HasImage(vtkImageSlice *prop)
Check if an image is present.
vtkMTimeType GetMTime() override
Return the max MTime of all the images.
void AddImage(vtkImageSlice *prop)
Add an image to the stack.
vtkCollection * ImageMatrices
void GetImages(vtkPropCollection *)
For some exporters and other other operations we must be able to collect all the actors,...
double * GetBounds() override
Get the combined bounds of all of the images.
a simple class to control print indentation
Definition vtkIndent.h:40
represent and manipulate 4x4 transformation matrices
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
an ordered list of Props
record modification and/or execution time
abstract specification for Viewports
Definition vtkViewport.h:56
window superclass for vtkRenderWindow
Definition vtkWindow.h:39
int vtkTypeBool
Definition vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287