VTK  9.1.0
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 =========================================================================*/
144 #ifndef vtkImageSlice_h
145 #define vtkImageSlice_h
146 
147 #include "vtkProp3D.h"
148 #include "vtkRenderingCoreModule.h" // For export macro
149 
150 class vtkRenderer;
151 class vtkPropCollection;
152 class vtkImageProperty;
153 class vtkImageMapper3D;
154 
155 class VTKRENDERINGCORE_EXPORT vtkImageSlice : public vtkProp3D
156 {
157 public:
158  vtkTypeMacro(vtkImageSlice, vtkProp3D);
159  void PrintSelf(ostream& os, vtkIndent indent) override;
160 
166  static vtkImageSlice* New();
167 
169 
173  vtkGetObjectMacro(Mapper, vtkImageMapper3D);
175 
177 
180  void SetProperty(vtkImageProperty* property);
183 
187  void Update();
188 
190 
194  double* GetBounds() override;
195  void GetBounds(double bounds[6]) { this->vtkProp3D::GetBounds(bounds); }
196  double GetMinXBound();
197  double GetMaxXBound();
198  double GetMinYBound();
199  double GetMaxYBound();
200  double GetMinZBound();
201  double GetMaxZBound();
203 
207  vtkMTimeType GetMTime() override;
208 
216 
218 
221  vtkGetMacro(ForceTranslucent, bool);
222  vtkSetMacro(ForceTranslucent, bool);
223  vtkBooleanMacro(ForceTranslucent, bool);
225 
229  void ShallowCopy(vtkProp* prop) override;
230 
237 
239 
242  int RenderOverlay(vtkViewport* viewport) override;
243  int RenderOpaqueGeometry(vtkViewport* viewport) override;
246 
252 
257  virtual void Render(vtkRenderer*);
258 
262  void ReleaseGraphicsResources(vtkWindow* win) override;
263 
270  void SetStackedImagePass(int pass);
271 
272 protected:
274  ~vtkImageSlice() override;
275 
278 
280 
281 private:
282  vtkImageSlice(const vtkImageSlice&) = delete;
283  void operator=(const vtkImageSlice&) = delete;
284 };
285 
286 #endif
vtkImageSlice::GetMTime
vtkMTimeType GetMTime() override
Return the MTime also considering the property etc.
vtkProp3D
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:93
vtkImageSlice::GetMinYBound
double GetMinYBound()
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
vtkImageSlice::SetStackedImagePass
void SetStackedImagePass(int pass)
For stacked image rendering, set the pass.
vtkImageSlice::SetMapper
void SetMapper(vtkImageMapper3D *mapper)
Set/Get the mapper.
vtkImageSlice::ShallowCopy
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkImageSlice.
vtkImageSlice::vtkImageSlice
vtkImageSlice()
vtkProp3D::GetBounds
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
vtkImageSlice::GetMinXBound
double GetMinXBound()
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39
vtkImageSlice::GetRedrawMTime
vtkMTimeType GetRedrawMTime() override
Return the mtime of anything that would cause the rendered image to appear differently.
vtkImageSlice::GetProperty
virtual vtkImageProperty * GetProperty()
Set/Get the image display properties.
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:156
vtkImageSlice::RenderTranslucentPolygonalGeometry
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Support the standard render methods.
vtkImageSlice::GetBounds
void GetBounds(double bounds[6])
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
Definition: vtkImageSlice.h:195
vtkImageProperty
image display properties
Definition: vtkImageProperty.h:146
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:113
vtkImageSlice::GetMaxZBound
double GetMaxZBound()
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
vtkImageSlice::Property
vtkImageProperty * Property
Definition: vtkImageSlice.h:277
vtkImageSlice::RenderOverlay
int RenderOverlay(vtkViewport *viewport) override
Support the standard render methods.
vtkImageSlice::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkImageSlice::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *win) override
Release any resources held by this prop.
vtkImageSlice::GetBounds
double * GetBounds() override
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
vtkImageSlice::~vtkImageSlice
~vtkImageSlice() override
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:76
vtkImageMapper3D
abstract class for mapping images to the screen
Definition: vtkImageMapper3D.h:158
vtkImageSlice::GetMinZBound
double GetMinZBound()
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:182
vtkImageSlice::HasTranslucentPolygonalGeometry
vtkTypeBool HasTranslucentPolygonalGeometry() override
Internal method, should only be used by rendering.
vtkImageSlice::GetMaxXBound
double GetMaxXBound()
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
vtkImageSlice::Mapper
vtkImageMapper3D * Mapper
Definition: vtkImageSlice.h:276
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()
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
vtkPropCollection
an ordered list of Props
Definition: vtkPropCollection.h:85
vtkImageSlice::ForceTranslucent
bool ForceTranslucent
Definition: vtkImageSlice.h:279
vtkImageSlice::RenderOpaqueGeometry
int RenderOpaqueGeometry(vtkViewport *viewport) override
Support the standard render methods.
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkImageSlice::Update
void Update()
Update the rendering pipeline by updating the ImageMapper.
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
vtkProp3D.h