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 =========================================================================*/
52 #ifndef vtkCursor3D_h
53 #define vtkCursor3D_h
54 
55 #include "vtkFiltersGeneralModule.h" // For export macro
56 #include "vtkPolyDataAlgorithm.h"
57 
58 class VTKFILTERSGENERAL_EXPORT vtkCursor3D : public vtkPolyDataAlgorithm
59 {
60 public:
62  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
68  static vtkCursor3D* New();
69 
71 
74  void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
75  void SetModelBounds(const double bounds[6]);
76  vtkGetVectorMacro(ModelBounds, double, 6);
78 
80 
87  void SetFocalPoint(double x[3]);
88  void SetFocalPoint(double x, double y, double z)
89  {
90  double xyz[3];
91  xyz[0] = x;
92  xyz[1] = y;
93  xyz[2] = z;
94  this->SetFocalPoint(xyz);
95  }
96  vtkGetVectorMacro(FocalPoint, double, 3);
98 
100 
103  vtkSetMacro(Outline, vtkTypeBool);
104  vtkGetMacro(Outline, vtkTypeBool);
105  vtkBooleanMacro(Outline, vtkTypeBool);
107 
109 
112  vtkSetMacro(Axes, vtkTypeBool);
113  vtkGetMacro(Axes, vtkTypeBool);
114  vtkBooleanMacro(Axes, vtkTypeBool);
116 
118 
121  vtkSetMacro(XShadows, vtkTypeBool);
122  vtkGetMacro(XShadows, vtkTypeBool);
123  vtkBooleanMacro(XShadows, vtkTypeBool);
125 
127 
130  vtkSetMacro(YShadows, vtkTypeBool);
131  vtkGetMacro(YShadows, vtkTypeBool);
132  vtkBooleanMacro(YShadows, vtkTypeBool);
134 
136 
139  vtkSetMacro(ZShadows, vtkTypeBool);
140  vtkGetMacro(ZShadows, vtkTypeBool);
141  vtkBooleanMacro(ZShadows, vtkTypeBool);
143 
145 
150  vtkSetMacro(TranslationMode, vtkTypeBool);
151  vtkGetMacro(TranslationMode, vtkTypeBool);
152  vtkBooleanMacro(TranslationMode, vtkTypeBool);
154 
156 
161  vtkSetMacro(Wrap, vtkTypeBool);
162  vtkGetMacro(Wrap, vtkTypeBool);
163  vtkBooleanMacro(Wrap, vtkTypeBool);
165 
169  vtkPolyData* GetFocus() { return this->Focus; }
170 
172 
175  void AllOn();
176  void AllOff();
178 
179 protected:
181  ~vtkCursor3D() override;
182 
184 
186  double ModelBounds[6];
187  double FocalPoint[3];
195 
196 private:
197  vtkCursor3D(const vtkCursor3D&) = delete;
198  void operator=(const vtkCursor3D&) = delete;
199 };
200 
201 #endif
generate a 3D cursor representation
Definition: vtkCursor3D.h:59
vtkTypeBool TranslationMode
Definition: vtkCursor3D.h:193
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:194
vtkPolyData * Focus
Definition: vtkCursor3D.h:185
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:191
void SetFocalPoint(double x, double y, double z)
Set/Get the position of cursor focus.
Definition: vtkCursor3D.h:88
vtkTypeBool ZShadows
Definition: vtkCursor3D.h:192
vtkTypeBool Axes
Definition: vtkCursor3D.h:189
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:188
vtkTypeBool XShadows
Definition: vtkCursor3D.h:190
~vtkCursor3D() override
vtkPolyData * GetFocus()
Get the focus for this filter.
Definition: vtkCursor3D.h:169
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:119
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:200
int vtkTypeBool
Definition: vtkABI.h:69