VTK  9.3.20240420
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
40#ifndef vtkCursor3D_h
41#define vtkCursor3D_h
42
43#include "vtkFiltersGeneralModule.h" // For export macro
45
46VTK_ABI_NAMESPACE_BEGIN
47class VTKFILTERSGENERAL_EXPORT vtkCursor3D : public vtkPolyDataAlgorithm
48{
49public:
51 void PrintSelf(ostream& os, vtkIndent indent) override;
52
57 static vtkCursor3D* New();
58
60
63 void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
64 void SetModelBounds(const double bounds[6]);
65 vtkGetVectorMacro(ModelBounds, double, 6);
67
69
76 void SetFocalPoint(double x[3]);
77 void SetFocalPoint(double x, double y, double z)
78 {
79 double xyz[3];
80 xyz[0] = x;
81 xyz[1] = y;
82 xyz[2] = z;
83 this->SetFocalPoint(xyz);
84 }
85 vtkGetVectorMacro(FocalPoint, double, 3);
87
89
92 vtkSetMacro(Outline, vtkTypeBool);
93 vtkGetMacro(Outline, vtkTypeBool);
94 vtkBooleanMacro(Outline, vtkTypeBool);
96
98
101 vtkSetMacro(Axes, vtkTypeBool);
102 vtkGetMacro(Axes, vtkTypeBool);
103 vtkBooleanMacro(Axes, vtkTypeBool);
105
107
110 vtkSetMacro(XShadows, vtkTypeBool);
111 vtkGetMacro(XShadows, vtkTypeBool);
112 vtkBooleanMacro(XShadows, vtkTypeBool);
114
116
119 vtkSetMacro(YShadows, vtkTypeBool);
120 vtkGetMacro(YShadows, vtkTypeBool);
121 vtkBooleanMacro(YShadows, vtkTypeBool);
123
125
128 vtkSetMacro(ZShadows, vtkTypeBool);
129 vtkGetMacro(ZShadows, vtkTypeBool);
130 vtkBooleanMacro(ZShadows, vtkTypeBool);
132
134
139 vtkSetMacro(TranslationMode, vtkTypeBool);
140 vtkGetMacro(TranslationMode, vtkTypeBool);
141 vtkBooleanMacro(TranslationMode, vtkTypeBool);
143
145
150 vtkSetMacro(Wrap, vtkTypeBool);
151 vtkGetMacro(Wrap, vtkTypeBool);
152 vtkBooleanMacro(Wrap, vtkTypeBool);
154
158 vtkPolyData* GetFocus() { return this->Focus; }
159
161
164 void AllOn();
165 void AllOff();
167
168protected:
170 ~vtkCursor3D() override;
171
173
175 double ModelBounds[6];
176 double FocalPoint[3];
184
185private:
186 vtkCursor3D(const vtkCursor3D&) = delete;
187 void operator=(const vtkCursor3D&) = delete;
188};
189
190VTK_ABI_NAMESPACE_END
191#endif
generate a 3D cursor representation
Definition vtkCursor3D.h:48
vtkTypeBool TranslationMode
vtkPolyData * GetFocus()
Get the focus for this filter.
static vtkCursor3D * New()
Construct with model bounds = (-1,1,-1,1,-1,1), focal point = (0,0,0), all parts of cursor visible,...
void SetModelBounds(const double bounds[6])
Set / get the boundary of the 3D cursor.
void AllOn()
Turn every part of the 3D cursor on or off.
vtkTypeBool Wrap
vtkPolyData * Focus
void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
Set / get the boundary of the 3D cursor.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool YShadows
void SetFocalPoint(double x, double y, double z)
Set/Get the position of cursor focus.
Definition vtkCursor3D.h:77
vtkTypeBool ZShadows
vtkTypeBool Axes
void AllOff()
Turn every part of the 3D cursor on or off.
void SetFocalPoint(double x[3])
Set/Get the position of cursor focus.
vtkTypeBool Outline
vtkTypeBool XShadows
~vtkCursor3D() override
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
int vtkTypeBool
Definition vtkABI.h:64