VTK: Interaction/Widgets/vtkResliceCursorActor.h Source File

| VTK 9.3.1

vtkResliceCursorActor.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
15 #ifndef vtkResliceCursorActor_h
16 #define vtkResliceCursorActor_h
17
18 #include "vtkInteractionWidgetsModule.h" // For export macro
19 #include "vtkProp3D.h"
20
21 VTK_ABI_NAMESPACE_BEGIN
22 class vtkResliceCursor;
23 class vtkResliceCursorPolyDataAlgorithm;
24 class vtkPolyDataMapper;
25 class vtkActor;
26 class vtkProperty;
27 class vtkBoundingBox;
28
29 class VTKINTERACTIONWIDGETS_EXPORT vtkResliceCursorActor : public vtkProp3D
30 {
31
32 public:
34
37 static vtkResliceCursorActor* New();
38 vtkTypeMacro(vtkResliceCursorActor, vtkProp3D);
39 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
46 vtkGetObjectMacro(CursorAlgorithm, vtkResliceCursorPolyDataAlgorithm);
48
52 int RenderOpaqueGeometry(vtkViewport* viewport) override;
53
57 vtkTypeBool HasTranslucentPolygonalGeometry() override;
58
64 void ReleaseGraphicsResources(vtkWindow*) override;
65
69 double* GetBounds() override;
70
74 vtkMTimeType GetMTime() override;
75
77
80 vtkProperty* GetCenterlineProperty(int i);
81 vtkProperty* GetThickSlabProperty(int i);
83
87 vtkActor* GetCenterlineActor(int axis);
88
92 virtual void SetUserMatrix(vtkMatrix4x4* matrix);
93
94 protected:
95 vtkResliceCursorActor();
96 ~vtkResliceCursorActor() override;
97
98 void UpdateViewProps(vtkViewport* v = nullptr);
99 void UpdateHoleSize(vtkViewport* v);
100
101 vtkResliceCursorPolyDataAlgorithm* CursorAlgorithm;
102 vtkPolyDataMapper* CursorCenterlineMapper[3];
103 vtkActor* CursorCenterlineActor[3];
104 vtkPolyDataMapper* CursorThickSlabMapper[3];
105 vtkActor* CursorThickSlabActor[3];
106 vtkProperty* CenterlineProperty[3];
107 vtkProperty* ThickSlabProperty[3];
108
109 private:
110 vtkResliceCursorActor(const vtkResliceCursorActor&) = delete;
111 void operator=(const vtkResliceCursorActor&) = delete;
112 };
113
114 VTK_ABI_NAMESPACE_END
115 #endif
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
vtkBoundingBox
Fast, simple class for representing and operating on 3D bounds.
Definition: vtkBoundingBox.h:38
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:40
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:42
vtkProp3D
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:48
vtkProperty
represent surface properties of a geometric object
Definition: vtkProperty.h:66
vtkResliceCursorActor
Represent a reslice cursor.
Definition: vtkResliceCursorActor.h:30
vtkResliceCursorActor::HasTranslucentPolygonalGeometry
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry? No.
vtkResliceCursorActor::RenderOpaqueGeometry
int RenderOpaqueGeometry(vtkViewport *viewport) override
Support the standard render methods.
vtkResliceCursorActor::SetUserMatrix
virtual void SetUserMatrix(vtkMatrix4x4 *matrix)
Set the user matrix on all the internal actors.
vtkResliceCursorActor::New
static vtkResliceCursorActor * New()
Standard VTK methods.
vtkResliceCursorActor::GetBounds
double * GetBounds() override
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkResliceCursorActor::GetCenterlineProperty
vtkProperty * GetCenterlineProperty(int i)
Get property of the internal actor.
vtkResliceCursorActor::GetMTime
vtkMTimeType GetMTime() override
Get the actors mtime plus consider its algorithm.
vtkResliceCursorActor::CursorAlgorithm
vtkResliceCursorPolyDataAlgorithm * CursorAlgorithm
Definition: vtkResliceCursorActor.h:101
vtkResliceCursorActor::UpdateHoleSize
void UpdateHoleSize(vtkViewport *v)
vtkResliceCursorActor::GetCenterlineActor
vtkActor * GetCenterlineActor(int axis)
Get the centerline actor along a particular axis.
vtkResliceCursorActor::vtkResliceCursorActor
vtkResliceCursorActor()
vtkResliceCursorActor::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
vtkResliceCursorActor::~vtkResliceCursorActor
~vtkResliceCursorActor() override
vtkResliceCursorActor::UpdateViewProps
void UpdateViewProps(vtkViewport *v=nullptr)
vtkResliceCursorActor::GetThickSlabProperty
vtkProperty * GetThickSlabProperty(int i)
Get property of the internal actor.
vtkResliceCursorActor::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods.
vtkResliceCursorPolyDataAlgorithm
generates a 2D reslice cursor polydata
Definition: vtkResliceCursorPolyDataAlgorithm.h:35
vtkResliceCursor
Geometry for a reslice cursor.
Definition: vtkResliceCursor.h:36
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:54
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:64
vtkProp3D.h
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270