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 
47 class vtkRenderer;
48 class vtkPropCollection;
49 class vtkImageProperty;
50 class vtkImageMapper3D;
51 
52 class VTKRENDERINGCORE_EXPORT vtkImageSlice : public vtkProp3D
53 {
54 public:
55  vtkTypeMacro(vtkImageSlice,vtkProp3D);
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
63  static vtkImageSlice *New();
64 
66 
69  void SetMapper(vtkImageMapper3D *mapper);
70  vtkGetObjectMacro(Mapper, vtkImageMapper3D);
72 
74 
77  void SetProperty(vtkImageProperty *property);
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 
169 protected:
172 
175 
177 
178 private:
179  vtkImageSlice(const vtkImageSlice&) VTK_DELETE_FUNCTION;
180  void operator=(const vtkImageSlice&) VTK_DELETE_FUNCTION;
181 };
182 
183 #endif
vtkImageSlice::GetMTime
vtkMTimeType GetMTime()
Return the MTime also considering the property etc.
vtkImageSlice::ShallowCopy
void ShallowCopy(vtkProp *prop)
Shallow copy of this vtkImageSlice.
vtkImageSlice::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *win)
Release any resources held by this prop.
vtkProp3D
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:47
vtkImageSlice::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
Internal method, should only be used by rendering.
vtkImageSlice::GetMinYBound
double GetMinYBound()
vtkImageSlice::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkImageSlice::SetStackedImagePass
void SetStackedImagePass(int pass)
For stacked image rendering, set the pass.
vtkImageSlice::SetMapper
void SetMapper(vtkImageMapper3D *mapper)
Set/Get the mapper.
vtkImageSlice::RenderOverlay
virtual int RenderOverlay(vtkViewport *viewport)
Support the standard render methods.
vtkImageSlice::vtkImageSlice
vtkImageSlice()
vtkImageSlice::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkImageSlice::GetMinXBound
double GetMinXBound()
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkImageSlice::GetProperty
virtual vtkImageProperty * GetProperty()
vtkImageSlice::Render
virtual void Render(vtkRenderer *)
This causes the image and its mapper to be rendered.
vtkImageSlice::SetProperty
void SetProperty(vtkImageProperty *property)
Set/Get the image display properties.
vtkImageSlice
represents an image in a 3D scene
Definition: vtkImageSlice.h:53
vtkImageSlice::GetBounds
void GetBounds(double bounds[6])
Definition: vtkImageSlice.h:92
vtkImageProperty
image display properties
Definition: vtkImageProperty.h:43
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...
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkImageSlice::GetMaxZBound
double GetMaxZBound()
vtkImageSlice::Property
vtkImageProperty * Property
Definition: vtkImageSlice.h:174
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
vtkImageSlice::~vtkImageSlice
~vtkImageSlice()
vtkImageMapper3D
abstract class for mapping images to the screen
Definition: vtkImageMapper3D.h:51
vtkImageSlice::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
vtkImageSlice::GetMinZBound
double GetMinZBound()
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkImageSlice::GetMaxXBound
double GetMaxXBound()
vtkImageSlice::Mapper
vtkImageMapper3D * Mapper
Definition: vtkImageSlice.h:173
vtkImageSlice::GetImages
void GetImages(vtkPropCollection *)
For some exporters and other other operations we must be able to collect all the actors,...
vtkImageSlice::GetMaxYBound
double GetMaxYBound()
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:39
vtkImageSlice::GetRedrawMTime
vtkMTimeType GetRedrawMTime()
Return the mtime of anything that would cause the rendered image to appear differently.
vtkImageSlice::ForceTranslucent
bool ForceTranslucent
Definition: vtkImageSlice.h:176
vtkImageSlice::Update
void Update()
Update the rendering pipeline by updating the ImageMapper.
vtkProp3D.h
vtkProp3D::GetBounds
virtual double * GetBounds()=0
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).