VTK  9.1.0
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
36class vtkActor;
37class vtkProperty;
38class vtkBoundingBox;
39
40class VTKINTERACTIONWIDGETS_EXPORT vtkResliceCursorActor : public vtkProp3D
41{
42
43public:
45
50 void PrintSelf(ostream& os, vtkIndent indent) override;
52
54
57 vtkGetObjectMacro(CursorAlgorithm, vtkResliceCursorPolyDataAlgorithm);
59
63 int RenderOpaqueGeometry(vtkViewport* viewport) override;
64
69
76
80 double* GetBounds() override;
81
86
88
94
99
103 virtual void SetUserMatrix(vtkMatrix4x4* matrix);
104
105protected:
108
109 void UpdateViewProps(vtkViewport* v = nullptr);
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
120private:
122 void operator=(const vtkResliceCursorActor&) = delete;
123};
124
125#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
Fast, simple class for representing and operating on 3D bounds.
a simple class to control print indentation
Definition: vtkIndent.h:113
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:145
map vtkPolyData to graphics primitives
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:93
represent surface properties of a geometric object
Definition: vtkProperty.h:171
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.
vtkResliceCursorPolyDataAlgorithm * CursorAlgorithm
vtkProperty * GetThickSlabProperty(int i)
Get property of the internal actor.
void UpdateHoleSize(vtkViewport *v)
static vtkResliceCursorActor * New()
Standard VTK methods.
double * GetBounds() override
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
vtkActor * GetCenterlineActor(int axis)
Get 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:47
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287