VTK  9.2.6
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 =========================================================================*/
42 #ifndef vtkCursor3D_h
43 #define vtkCursor3D_h
44 
45 #include "vtkFiltersGeneralModule.h" // For export macro
46 #include "vtkPolyDataAlgorithm.h"
47 
48 class VTKFILTERSGENERAL_EXPORT vtkCursor3D : public vtkPolyDataAlgorithm
49 {
50 public:
52  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
58  static vtkCursor3D* New();
59 
61 
64  void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
65  void SetModelBounds(const double bounds[6]);
66  vtkGetVectorMacro(ModelBounds, double, 6);
68 
70 
77  void SetFocalPoint(double x[3]);
78  void SetFocalPoint(double x, double y, double z)
79  {
80  double xyz[3];
81  xyz[0] = x;
82  xyz[1] = y;
83  xyz[2] = z;
84  this->SetFocalPoint(xyz);
85  }
86  vtkGetVectorMacro(FocalPoint, double, 3);
88 
90 
93  vtkSetMacro(Outline, vtkTypeBool);
94  vtkGetMacro(Outline, vtkTypeBool);
95  vtkBooleanMacro(Outline, vtkTypeBool);
97 
99 
102  vtkSetMacro(Axes, vtkTypeBool);
103  vtkGetMacro(Axes, vtkTypeBool);
104  vtkBooleanMacro(Axes, vtkTypeBool);
106 
108 
111  vtkSetMacro(XShadows, vtkTypeBool);
112  vtkGetMacro(XShadows, vtkTypeBool);
113  vtkBooleanMacro(XShadows, vtkTypeBool);
115 
117 
120  vtkSetMacro(YShadows, vtkTypeBool);
121  vtkGetMacro(YShadows, vtkTypeBool);
122  vtkBooleanMacro(YShadows, vtkTypeBool);
124 
126 
129  vtkSetMacro(ZShadows, vtkTypeBool);
130  vtkGetMacro(ZShadows, vtkTypeBool);
131  vtkBooleanMacro(ZShadows, vtkTypeBool);
133 
135 
140  vtkSetMacro(TranslationMode, vtkTypeBool);
141  vtkGetMacro(TranslationMode, vtkTypeBool);
142  vtkBooleanMacro(TranslationMode, vtkTypeBool);
144 
146 
151  vtkSetMacro(Wrap, vtkTypeBool);
152  vtkGetMacro(Wrap, vtkTypeBool);
153  vtkBooleanMacro(Wrap, vtkTypeBool);
155 
159  vtkPolyData* GetFocus() { return this->Focus; }
160 
162 
165  void AllOn();
166  void AllOff();
168 
169 protected:
171  ~vtkCursor3D() override;
172 
174 
176  double ModelBounds[6];
177  double FocalPoint[3];
185 
186 private:
187  vtkCursor3D(const vtkCursor3D&) = delete;
188  void operator=(const vtkCursor3D&) = delete;
189 };
190 
191 #endif
generate a 3D cursor representation
Definition: vtkCursor3D.h:49
vtkTypeBool TranslationMode
Definition: vtkCursor3D.h:183
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:184
vtkPolyData * Focus
Definition: vtkCursor3D.h:175
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:181
void SetFocalPoint(double x, double y, double z)
Set/Get the position of cursor focus.
Definition: vtkCursor3D.h:78
vtkTypeBool ZShadows
Definition: vtkCursor3D.h:182
vtkTypeBool Axes
Definition: vtkCursor3D.h:179
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:178
vtkTypeBool XShadows
Definition: vtkCursor3D.h:180
~vtkCursor3D() override
vtkPolyData * GetFocus()
Get the focus for this filter.
Definition: vtkCursor3D.h:159
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:49
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:100
int vtkTypeBool
Definition: vtkABI.h:69