VTK: Filters/General/vtkCursor3D.h Source File

| VTK 9.3.1

vtkCursor3D.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
30 #ifndef vtkCursor3D_h
31 #define vtkCursor3D_h
32
33 #include "vtkFiltersGeneralModule.h" // For export macro
34 #include "vtkPolyDataAlgorithm.h"
35
36 VTK_ABI_NAMESPACE_BEGIN
37 class VTKFILTERSGENERAL_EXPORT vtkCursor3D : public vtkPolyDataAlgorithm
38 {
39 public:
40 vtkTypeMacro(vtkCursor3D, vtkPolyDataAlgorithm);
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
47 static vtkCursor3D* New();
48
50
53 void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
54 void SetModelBounds(const double bounds[6]);
55 vtkGetVectorMacro(ModelBounds, double, 6);
57
59
66 void SetFocalPoint(double x[3]);
67 void SetFocalPoint(double x, double y, double z)
68 {
69 double xyz[3];
70 xyz[0] = x;
71 xyz[1] = y;
72 xyz[2] = z;
73 this->SetFocalPoint(xyz);
74 }
75 vtkGetVectorMacro(FocalPoint, double, 3);
77
79
82 vtkSetMacro(Outline, vtkTypeBool);
83 vtkGetMacro(Outline, vtkTypeBool);
84 vtkBooleanMacro(Outline, vtkTypeBool);
86
88
91 vtkSetMacro(Axes, vtkTypeBool);
92 vtkGetMacro(Axes, vtkTypeBool);
93 vtkBooleanMacro(Axes, vtkTypeBool);
95
97
100 vtkSetMacro(XShadows, vtkTypeBool);
101 vtkGetMacro(XShadows, vtkTypeBool);
102 vtkBooleanMacro(XShadows, vtkTypeBool);
104
106
109 vtkSetMacro(YShadows, vtkTypeBool);
110 vtkGetMacro(YShadows, vtkTypeBool);
111 vtkBooleanMacro(YShadows, vtkTypeBool);
113
115
118 vtkSetMacro(ZShadows, vtkTypeBool);
119 vtkGetMacro(ZShadows, vtkTypeBool);
120 vtkBooleanMacro(ZShadows, vtkTypeBool);
122
124
129 vtkSetMacro(TranslationMode, vtkTypeBool);
130 vtkGetMacro(TranslationMode, vtkTypeBool);
131 vtkBooleanMacro(TranslationMode, vtkTypeBool);
133
135
140 vtkSetMacro(Wrap, vtkTypeBool);
141 vtkGetMacro(Wrap, vtkTypeBool);
142 vtkBooleanMacro(Wrap, vtkTypeBool);
144
148 vtkPolyData* GetFocus() { return this->Focus; }
149
151
154 void AllOn();
155 void AllOff();
157
158 protected:
159 vtkCursor3D();
160 ~vtkCursor3D() override;
161
162 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
163
164 vtkPolyData* Focus;
165 double ModelBounds[6];
166 double FocalPoint[3];
167 vtkTypeBool Outline;
168 vtkTypeBool Axes;
169 vtkTypeBool XShadows;
170 vtkTypeBool YShadows;
171 vtkTypeBool ZShadows;
172 vtkTypeBool TranslationMode;
173 vtkTypeBool Wrap;
174
175 private:
176 vtkCursor3D(const vtkCursor3D&) = delete;
177 void operator=(const vtkCursor3D&) = delete;
178 };
179
180 VTK_ABI_NAMESPACE_END
181 #endif
vtkCursor3D
generate a 3D cursor representation
Definition: vtkCursor3D.h:38
vtkCursor3D::vtkCursor3D
vtkCursor3D()
vtkCursor3D::TranslationMode
vtkTypeBool TranslationMode
Definition: vtkCursor3D.h:172
vtkCursor3D::SetModelBounds
void SetModelBounds(const double bounds[6])
Set / get the boundary of the 3D cursor.
vtkCursor3D::AllOn
void AllOn()
Turn every part of the 3D cursor on or off.
vtkCursor3D::Wrap
vtkTypeBool Wrap
Definition: vtkCursor3D.h:173
vtkCursor3D::Focus
vtkPolyData * Focus
Definition: vtkCursor3D.h:164
vtkCursor3D::SetModelBounds
void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
Set / get the boundary of the 3D cursor.
vtkCursor3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCursor3D::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkCursor3D::YShadows
vtkTypeBool YShadows
Definition: vtkCursor3D.h:170
vtkCursor3D::SetFocalPoint
void SetFocalPoint(double x, double y, double z)
Set/Get the position of cursor focus.
Definition: vtkCursor3D.h:67
vtkCursor3D::ZShadows
vtkTypeBool ZShadows
Definition: vtkCursor3D.h:171
vtkCursor3D::Axes
vtkTypeBool Axes
Definition: vtkCursor3D.h:168
vtkCursor3D::AllOff
void AllOff()
Turn every part of the 3D cursor on or off.
vtkCursor3D::SetFocalPoint
void SetFocalPoint(double x[3])
Set/Get the position of cursor focus.
vtkCursor3D::Outline
vtkTypeBool Outline
Definition: vtkCursor3D.h:167
vtkCursor3D::XShadows
vtkTypeBool XShadows
Definition: vtkCursor3D.h:169
vtkCursor3D::~vtkCursor3D
~vtkCursor3D() override
vtkCursor3D::GetFocus
vtkPolyData * GetFocus()
Get the focus for this filter.
Definition: vtkCursor3D.h:148
vtkCursor3D::New
static vtkCursor3D * New()
Construct with model bounds = (-1,1,-1,1,-1,1), focal point = (0,0,0), all parts of cursor visible,...
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:43
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:89
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:64
vtkPolyDataAlgorithm.h