VTK  9.5.20250705
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
21
22VTK_ABI_NAMESPACE_BEGIN
26class vtkActor;
27class vtkProperty;
28class vtkBoundingBox;
29
30class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkResliceCursorActor : public vtkProp3D
31{
32
33public:
35
40 void PrintSelf(ostream& os, vtkIndent indent) override;
42
44
47 vtkGetObjectMacro(CursorAlgorithm, vtkResliceCursorPolyDataAlgorithm);
49
53 int RenderOpaqueGeometry(vtkViewport* viewport) override;
54
59
66
70 double* GetBounds() override;
71
76
78
84
86
91 void SetCenterlineActor(int axis, vtkActor* prop);
92 void SetThickSlabActor(int axis, vtkActor* prop);
93 int GetNumberOfCenterlineActors() { return 3; }
94 int GetNumberOfThickSlabActors() { return 3; }
96
100 virtual void SetUserMatrix(vtkMatrix4x4* matrix);
101
102protected:
105
106 void UpdateViewProps(vtkViewport* v = nullptr);
108
110 vtkPolyDataMapper* CursorCenterlineMapper[3];
111 vtkActor* CursorCenterlineActor[3];
112 vtkPolyDataMapper* CursorThickSlabMapper[3];
113 vtkActor* CursorThickSlabActor[3];
114 vtkProperty* CenterlineProperty[3];
115 vtkProperty* ThickSlabProperty[3];
116
117private:
119 void operator=(const vtkResliceCursorActor&) = delete;
120};
121
122VTK_ABI_NAMESPACE_END
123#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
Fast, simple class for representing and operating on 3D bounds.
a simple class to control print indentation
Definition vtkIndent.h:108
represent and manipulate 4x4 transformation matrices
Allocate and hold a VTK object.
Definition vtkNew.h:167
map vtkPolyData to graphics primitives
represents an 3D object for placement in a rendered scene
Definition vtkProp3D.h:89
represent surface properties of a geometric object
Represent a reslice cursor.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry? No.
int RenderOpaqueGeometry(vtkViewport *viewport) override
Support the standard render methods.
virtual void SetUserMatrix(vtkMatrix4x4 *matrix)
Set the user matrix on all the internal actors.
vtkMTimeType GetMTime() override
Get the actors mtime plus consider its algorithm.
void SetThickSlabActor(int axis, vtkActor *prop)
Get/Set the centerline actor along a particular axis.
vtkProperty * GetThickSlabProperty(int i)
Get property of the internal actor.
void UpdateHoleSize(vtkViewport *v)
vtkActor * GetThickSlabActor(int axis)
Get/Set the centerline actor along a particular axis.
static vtkResliceCursorActor * New()
Standard VTK methods.
double * GetBounds() override
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
int GetNumberOfCenterlineActors()
Get/Set the centerline actor along a particular axis.
int GetNumberOfThickSlabActors()
Get/Set the centerline actor along a particular axis.
vtkNew< vtkResliceCursorPolyDataAlgorithm > CursorAlgorithm
void SetCenterlineActor(int axis, vtkActor *prop)
Get/Set the centerline actor along a particular axis.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
vtkActor * GetCenterlineActor(int axis)
Get/Set the centerline actor along a particular axis.
vtkProperty * GetCenterlineProperty(int i)
Get property of the internal actor.
~vtkResliceCursorActor() override
void UpdateViewProps(vtkViewport *v=nullptr)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods.
generates a 2D reslice cursor polydata
Geometry for a reslice cursor.
abstract specification for Viewports
Definition vtkViewport.h:66
window superclass for vtkRenderWindow
Definition vtkWindow.h:48
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287
#define VTK_MARSHALAUTO