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
21 #ifndef vtkCursor3D_h
22 #define vtkCursor3D_h
23 
24 #include "vtkFiltersGeneralModule.h" // For export macro
25 #include "vtkPolyDataAlgorithm.h"
26 
27 VTK_ABI_NAMESPACE_BEGIN
28 class VTKFILTERSGENERAL_EXPORT vtkCursor3D : public vtkPolyDataAlgorithm
29 {
30 public:
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
38  static vtkCursor3D* New();
39 
41 
44  void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
45  void SetModelBounds(const double bounds[6]);
46  vtkGetVectorMacro(ModelBounds, double, 6);
48 
50 
57  void SetFocalPoint(double x[3]);
58  void SetFocalPoint(double x, double y, double z)
59  {
60  double xyz[3];
61  xyz[0] = x;
62  xyz[1] = y;
63  xyz[2] = z;
64  this->SetFocalPoint(xyz);
65  }
66  vtkGetVectorMacro(FocalPoint, double, 3);
68 
70 
73  vtkSetMacro(Outline, vtkTypeBool);
74  vtkGetMacro(Outline, vtkTypeBool);
75  vtkBooleanMacro(Outline, vtkTypeBool);
77 
79 
82  vtkSetMacro(Axes, vtkTypeBool);
83  vtkGetMacro(Axes, vtkTypeBool);
84  vtkBooleanMacro(Axes, vtkTypeBool);
86 
88 
91  vtkSetMacro(XShadows, vtkTypeBool);
92  vtkGetMacro(XShadows, vtkTypeBool);
93  vtkBooleanMacro(XShadows, vtkTypeBool);
95 
97 
100  vtkSetMacro(YShadows, vtkTypeBool);
101  vtkGetMacro(YShadows, vtkTypeBool);
102  vtkBooleanMacro(YShadows, vtkTypeBool);
104 
106 
109  vtkSetMacro(ZShadows, vtkTypeBool);
110  vtkGetMacro(ZShadows, vtkTypeBool);
111  vtkBooleanMacro(ZShadows, vtkTypeBool);
113 
115 
120  vtkSetMacro(TranslationMode, vtkTypeBool);
121  vtkGetMacro(TranslationMode, vtkTypeBool);
122  vtkBooleanMacro(TranslationMode, vtkTypeBool);
124 
126 
131  vtkSetMacro(Wrap, vtkTypeBool);
132  vtkGetMacro(Wrap, vtkTypeBool);
133  vtkBooleanMacro(Wrap, vtkTypeBool);
135 
139  vtkPolyData* GetFocus() { return this->Focus; }
140 
142 
145  void AllOn();
146  void AllOff();
148 
149 protected:
151  ~vtkCursor3D() override;
152 
154 
156  double ModelBounds[6];
157  double FocalPoint[3];
165 
166 private:
167  vtkCursor3D(const vtkCursor3D&) = delete;
168  void operator=(const vtkCursor3D&) = delete;
169 };
170 
171 VTK_ABI_NAMESPACE_END
172 #endif
generate a 3D cursor representation
Definition: vtkCursor3D.h:29
vtkTypeBool TranslationMode
Definition: vtkCursor3D.h:163
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
Definition: vtkCursor3D.h:164
vtkPolyData * Focus
Definition: vtkCursor3D.h:155
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
Definition: vtkCursor3D.h:161
void SetFocalPoint(double x, double y, double z)
Set/Get the position of cursor focus.
Definition: vtkCursor3D.h:58
vtkTypeBool ZShadows
Definition: vtkCursor3D.h:162
vtkTypeBool Axes
Definition: vtkCursor3D.h:159
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
Definition: vtkCursor3D.h:158
vtkTypeBool XShadows
Definition: vtkCursor3D.h:160
~vtkCursor3D() override
vtkPolyData * GetFocus()
Get the focus for this filter.
Definition: vtkCursor3D.h:139
static vtkCursor3D * New()
Construct with model bounds = (-1,1,-1,1,-1,1), focal point = (0,0,0), all parts of cursor visible,...
a simple class to control print indentation
Definition: vtkIndent.h:29
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:80
int vtkTypeBool
Definition: vtkABI.h:64