VTK  9.0.20201030
vtkResliceCursorActor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkResliceCursorActor.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 =========================================================================*/
27 #ifndef vtkResliceCursorActor_h
28 #define vtkResliceCursorActor_h
29 
30 #include "vtkInteractionWidgetsModule.h" // For export macro
31 #include "vtkProp3D.h"
32 
33 class vtkResliceCursor;
35 class vtkPolyDataMapper;
36 class vtkActor;
37 class vtkProperty;
38 class vtkBoundingBox;
39 
40 class VTKINTERACTIONWIDGETS_EXPORT vtkResliceCursorActor : public vtkProp3D
41 {
42 
43 public:
45 
48  static vtkResliceCursorActor* New();
50  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
57  vtkGetObjectMacro(CursorAlgorithm, vtkResliceCursorPolyDataAlgorithm);
59 
63  int RenderOpaqueGeometry(vtkViewport* viewport) override;
64 
69 
75  void ReleaseGraphicsResources(vtkWindow*) override;
76 
80  double* GetBounds() override;
81 
85  vtkMTimeType GetMTime() override;
86 
88 
91  vtkProperty* GetCenterlineProperty(int i);
92  vtkProperty* GetThickSlabProperty(int i);
94 
98  vtkActor* GetCenterlineActor(int axis);
99 
103  virtual void SetUserMatrix(vtkMatrix4x4* matrix);
104 
105 protected:
107  ~vtkResliceCursorActor() override;
108 
109  void UpdateViewProps(vtkViewport* v = nullptr);
110  void UpdateHoleSize(vtkViewport* v);
111 
113  vtkPolyDataMapper* CursorCenterlineMapper[3];
114  vtkActor* CursorCenterlineActor[3];
115  vtkPolyDataMapper* CursorThickSlabMapper[3];
116  vtkActor* CursorThickSlabActor[3];
117  vtkProperty* CenterlineProperty[3];
118  vtkProperty* ThickSlabProperty[3];
119 
120 private:
122  void operator=(const vtkResliceCursorActor&) = delete;
123 };
124 
125 #endif
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:36
vtkProp3D::SetUserMatrix
void SetUserMatrix(vtkMatrix4x4 *matrix)
The UserMatrix can be used in place of UserTransform.
vtkProp3D
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:43
vtkProp3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkResliceCursor
Geometry for a reslice cursor.
Definition: vtkResliceCursor.h:43
vtkProp::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:224
vtkResliceCursorActor::CursorAlgorithm
vtkResliceCursorPolyDataAlgorithm * CursorAlgorithm
Definition: vtkResliceCursorActor.h:112
vtkProp3D::GetBounds
double * GetBounds() override=0
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
vtkProp::HasTranslucentPolygonalGeometry
virtual vtkTypeBool HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:288
vtkBoundingBox
Fast, simple class for representing and operating on 3D bounds.
Definition: vtkBoundingBox.h:35
vtkResliceCursorPolyDataAlgorithm
generates a 2D reslice cursor polydata
Definition: vtkResliceCursorPolyDataAlgorithm.h:45
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:35
vtkProp3D::GetMTime
vtkMTimeType GetMTime() override
Get the vtkProp3D's mtime.
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:44
vtkResliceCursorActor
Represent a reslice cursor.
Definition: vtkResliceCursorActor.h:40
vtkProperty
represent surface properties of a geometric object
Definition: vtkProperty.h:61
vtkProp::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:309
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:285
vtkProp3D.h