VTK
vtkImageSlice.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkImageSlice.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=========================================================================*/
41#ifndef vtkImageSlice_h
42#define vtkImageSlice_h
43
44#include "vtkRenderingCoreModule.h" // For export macro
45#include "vtkProp3D.h"
46
47class vtkRenderer;
51
52class VTKRENDERINGCORE_EXPORT vtkImageSlice : public vtkProp3D
53{
54public:
55 vtkTypeMacro(vtkImageSlice,vtkProp3D);
56 void PrintSelf(ostream& os, vtkIndent indent);
57
63 static vtkImageSlice *New();
64
66
70 vtkGetObjectMacro(Mapper, vtkImageMapper3D);
72
74
80
84 void Update();
85
87
91 double *GetBounds();
92 void GetBounds(double bounds[6]) { this->vtkProp3D::GetBounds( bounds ); };
93 double GetMinXBound();
94 double GetMaxXBound();
95 double GetMinYBound();
96 double GetMaxYBound();
97 double GetMinZBound();
98 double GetMaxZBound();
100
105
113
115
118 vtkGetMacro(ForceTranslucent, bool);
119 vtkSetMacro(ForceTranslucent, bool);
120 vtkBooleanMacro(ForceTranslucent, bool);
122
126 void ShallowCopy(vtkProp *prop);
127
134
136
139 virtual int RenderOverlay(vtkViewport *viewport);
140 virtual int RenderOpaqueGeometry(vtkViewport *viewport);
143
149
154 virtual void Render(vtkRenderer *);
155
160
167 void SetStackedImagePass(int pass);
168
169protected:
172
175
177
178private:
179 vtkImageSlice(const vtkImageSlice&) VTK_DELETE_FUNCTION;
180 void operator=(const vtkImageSlice&) VTK_DELETE_FUNCTION;
181};
182
183#endif
abstract class for mapping images to the screen
image display properties
represents an image in a 3D scene
Definition: vtkImageSlice.h:53
virtual void Render(vtkRenderer *)
This causes the image and its mapper to be rendered.
double GetMaxYBound()
vtkImageMapper3D * Mapper
double GetMinXBound()
double GetMinZBound()
void ShallowCopy(vtkProp *prop)
Shallow copy of this vtkImageSlice.
double GetMinYBound()
double * GetBounds()
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
double GetMaxZBound()
void Update()
Update the rendering pipeline by updating the ImageMapper.
virtual vtkImageProperty * GetProperty()
virtual int RenderOverlay(vtkViewport *viewport)
Support the standard render methods.
static vtkImageSlice * New()
Creates an Image with the following defaults: origin(0,0,0) position=(0,0,0) scale=1 visibility=1 pic...
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void SetProperty(vtkImageProperty *property)
Set/Get the image display properties.
void SetMapper(vtkImageMapper3D *mapper)
Set/Get the mapper.
virtual int HasTranslucentPolygonalGeometry()
Internal method, should only be used by rendering.
void SetStackedImagePass(int pass)
For stacked image rendering, set the pass.
void ReleaseGraphicsResources(vtkWindow *win)
Release any resources held by this prop.
void GetImages(vtkPropCollection *)
For some exporters and other other operations we must be able to collect all the actors,...
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
double GetMaxXBound()
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
vtkImageProperty * Property
void GetBounds(double bounds[6])
Definition: vtkImageSlice.h:92
vtkMTimeType GetMTime()
Return the MTime also considering the property etc.
vtkMTimeType GetRedrawMTime()
Return the mtime of anything that would cause the rendered image to appear differently.
a simple class to control print indentation
Definition: vtkIndent.h:40
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:47
virtual double * GetBounds()=0
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
a list of Props
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
abstract specification for renderers
Definition: vtkRenderer.h:64
abstract specification for Viewports
Definition: vtkViewport.h:48
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248