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 =========================================================================*/
33 #ifndef vtkCursor3D_h
34 #define vtkCursor3D_h
35 
36 #include "vtkFiltersGeneralModule.h" // For export macro
37 #include "vtkPolyDataAlgorithm.h"
38 
39 class VTKFILTERSGENERAL_EXPORT vtkCursor3D : public vtkPolyDataAlgorithm
40 {
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
49  static vtkCursor3D* New();
50 
52 
55  void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
56  void SetModelBounds(const double bounds[6]);
57  vtkGetVectorMacro(ModelBounds, double, 6);
59 
61 
68  void SetFocalPoint(double x[3]);
69  void SetFocalPoint(double x, double y, double z)
70  {
71  double xyz[3];
72  xyz[0] = x;
73  xyz[1] = y;
74  xyz[2] = z;
75  this->SetFocalPoint(xyz);
76  }
77  vtkGetVectorMacro(FocalPoint, double, 3);
79 
81 
84  vtkSetMacro(Outline, vtkTypeBool);
85  vtkGetMacro(Outline, vtkTypeBool);
86  vtkBooleanMacro(Outline, vtkTypeBool);
88 
90 
93  vtkSetMacro(Axes, vtkTypeBool);
94  vtkGetMacro(Axes, vtkTypeBool);
95  vtkBooleanMacro(Axes, vtkTypeBool);
97 
99 
102  vtkSetMacro(XShadows, vtkTypeBool);
103  vtkGetMacro(XShadows, vtkTypeBool);
104  vtkBooleanMacro(XShadows, vtkTypeBool);
106 
108 
111  vtkSetMacro(YShadows, vtkTypeBool);
112  vtkGetMacro(YShadows, vtkTypeBool);
113  vtkBooleanMacro(YShadows, vtkTypeBool);
115 
117 
120  vtkSetMacro(ZShadows, vtkTypeBool);
121  vtkGetMacro(ZShadows, vtkTypeBool);
122  vtkBooleanMacro(ZShadows, vtkTypeBool);
124 
126 
131  vtkSetMacro(TranslationMode, vtkTypeBool);
132  vtkGetMacro(TranslationMode, vtkTypeBool);
133  vtkBooleanMacro(TranslationMode, vtkTypeBool);
135 
137 
142  vtkSetMacro(Wrap, vtkTypeBool);
143  vtkGetMacro(Wrap, vtkTypeBool);
144  vtkBooleanMacro(Wrap, vtkTypeBool);
146 
150  vtkPolyData* GetFocus() { return this->Focus; }
151 
153 
156  void AllOn();
157  void AllOff();
159 
160 protected:
161  vtkCursor3D();
162  ~vtkCursor3D() override;
163 
165 
167  double ModelBounds[6];
168  double FocalPoint[3];
176 
177 private:
178  vtkCursor3D(const vtkCursor3D&) = delete;
179  void operator=(const vtkCursor3D&) = delete;
180 };
181 
182 #endif
vtkTypeBool ZShadows
Definition: vtkCursor3D.h:173
vtkTypeBool Outline
Definition: vtkCursor3D.h:169
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:90
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
vtkPolyData * GetFocus()
Get the focus for this filter.
Definition: vtkCursor3D.h:150
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTypeBool Wrap
Definition: vtkCursor3D.h:175
void SetFocalPoint(double x, double y, double z)
Set/Get the position of cursor focus.
Definition: vtkCursor3D.h:69
vtkTypeBool YShadows
Definition: vtkCursor3D.h:172
Store zero or more vtkInformation instances.
generate a 3D cursor representation
Definition: vtkCursor3D.h:39
vtkTypeBool TranslationMode
Definition: vtkCursor3D.h:174
vtkPolyData * Focus
Definition: vtkCursor3D.h:166
vtkTypeBool Axes
Definition: vtkCursor3D.h:170
vtkTypeBool XShadows
Definition: vtkCursor3D.h:171
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.