VTK  9.1.0
vtkCursor3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCursor3D.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 =========================================================================*/
49 #ifndef vtkCursor3D_h
50 #define vtkCursor3D_h
51 
52 #include "vtkFiltersGeneralModule.h" // For export macro
53 #include "vtkPolyDataAlgorithm.h"
54 
55 class VTKFILTERSGENERAL_EXPORT vtkCursor3D : public vtkPolyDataAlgorithm
56 {
57 public:
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
65  static vtkCursor3D* New();
66 
68 
71  void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
72  void SetModelBounds(const double bounds[6]);
73  vtkGetVectorMacro(ModelBounds, double, 6);
75 
77 
84  void SetFocalPoint(double x[3]);
85  void SetFocalPoint(double x, double y, double z)
86  {
87  double xyz[3];
88  xyz[0] = x;
89  xyz[1] = y;
90  xyz[2] = z;
91  this->SetFocalPoint(xyz);
92  }
93  vtkGetVectorMacro(FocalPoint, double, 3);
95 
97 
100  vtkSetMacro(Outline, vtkTypeBool);
101  vtkGetMacro(Outline, vtkTypeBool);
102  vtkBooleanMacro(Outline, vtkTypeBool);
104 
106 
109  vtkSetMacro(Axes, vtkTypeBool);
110  vtkGetMacro(Axes, vtkTypeBool);
111  vtkBooleanMacro(Axes, vtkTypeBool);
113 
115 
118  vtkSetMacro(XShadows, vtkTypeBool);
119  vtkGetMacro(XShadows, vtkTypeBool);
120  vtkBooleanMacro(XShadows, vtkTypeBool);
122 
124 
127  vtkSetMacro(YShadows, vtkTypeBool);
128  vtkGetMacro(YShadows, vtkTypeBool);
129  vtkBooleanMacro(YShadows, vtkTypeBool);
131 
133 
136  vtkSetMacro(ZShadows, vtkTypeBool);
137  vtkGetMacro(ZShadows, vtkTypeBool);
138  vtkBooleanMacro(ZShadows, vtkTypeBool);
140 
142 
147  vtkSetMacro(TranslationMode, vtkTypeBool);
148  vtkGetMacro(TranslationMode, vtkTypeBool);
149  vtkBooleanMacro(TranslationMode, vtkTypeBool);
151 
153 
158  vtkSetMacro(Wrap, vtkTypeBool);
159  vtkGetMacro(Wrap, vtkTypeBool);
160  vtkBooleanMacro(Wrap, vtkTypeBool);
162 
166  vtkPolyData* GetFocus() { return this->Focus; }
167 
169 
172  void AllOn();
173  void AllOff();
175 
176 protected:
178  ~vtkCursor3D() override;
179 
181 
183  double ModelBounds[6];
184  double FocalPoint[3];
192 
193 private:
194  vtkCursor3D(const vtkCursor3D&) = delete;
195  void operator=(const vtkCursor3D&) = delete;
196 };
197 
198 #endif
generate a 3D cursor representation
Definition: vtkCursor3D.h:56
vtkTypeBool TranslationMode
Definition: vtkCursor3D.h:190
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:191
vtkPolyData * Focus
Definition: vtkCursor3D.h:182
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:188
void SetFocalPoint(double x, double y, double z)
Set/Get the position of cursor focus.
Definition: vtkCursor3D.h:85
vtkTypeBool ZShadows
Definition: vtkCursor3D.h:189
vtkTypeBool Axes
Definition: vtkCursor3D.h:186
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:185
vtkTypeBool XShadows
Definition: vtkCursor3D.h:187
~vtkCursor3D() override
vtkPolyData * GetFocus()
Get the focus for this filter.
Definition: vtkCursor3D.h:166
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:113
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:195
int vtkTypeBool
Definition: vtkABI.h:69