VTK  9.3.0
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
35
36VTK_ABI_NAMESPACE_BEGIN
37class VTKFILTERSGENERAL_EXPORT vtkCursor3D : public vtkPolyDataAlgorithm
38{
39public:
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
158protected:
160 ~vtkCursor3D() override;
161
163
165 double ModelBounds[6];
166 double FocalPoint[3];
174
175private:
176 vtkCursor3D(const vtkCursor3D&) = delete;
177 void operator=(const vtkCursor3D&) = delete;
178};
179
180VTK_ABI_NAMESPACE_END
181#endif
generate a 3D cursor representation
Definition vtkCursor3D.h:38
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:67
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:38
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
Definition vtkPolyData.h:89
int vtkTypeBool
Definition vtkABI.h:64