VTK
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 =========================================================================*/
30 #ifndef vtkCursor3D_h
31 #define vtkCursor3D_h
32 
33 #include "vtkFiltersGeneralModule.h" // For export macro
34 #include "vtkPolyDataAlgorithm.h"
35 
36 class VTKFILTERSGENERAL_EXPORT vtkCursor3D : public vtkPolyDataAlgorithm
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
41 
46  static vtkCursor3D *New();
47 
49 
52  void SetModelBounds(double xmin, double xmax, double ymin, double ymax,
53  double zmin, double zmax);
54  void SetModelBounds(const double bounds[6]);
55  vtkGetVectorMacro(ModelBounds,double,6);
57 
59 
66  void SetFocalPoint(double x[3]);
67  void SetFocalPoint(double x, double y, double z)
68  {
69  double xyz[3];
70  xyz[0] = x; xyz[1] = y; xyz[2] = z;
71  this->SetFocalPoint(xyz);
72  }
73  vtkGetVectorMacro(FocalPoint,double,3);
75 
77 
80  vtkSetMacro(Outline,int);
81  vtkGetMacro(Outline,int);
82  vtkBooleanMacro(Outline,int);
84 
86 
89  vtkSetMacro(Axes,int);
90  vtkGetMacro(Axes,int);
91  vtkBooleanMacro(Axes,int);
93 
95 
98  vtkSetMacro(XShadows,int);
99  vtkGetMacro(XShadows,int);
100  vtkBooleanMacro(XShadows,int);
102 
104 
107  vtkSetMacro(YShadows,int);
108  vtkGetMacro(YShadows,int);
109  vtkBooleanMacro(YShadows,int);
111 
113 
116  vtkSetMacro(ZShadows,int);
117  vtkGetMacro(ZShadows,int);
118  vtkBooleanMacro(ZShadows,int);
120 
122 
127  vtkSetMacro(TranslationMode,int);
128  vtkGetMacro(TranslationMode,int);
129  vtkBooleanMacro(TranslationMode,int);
131 
133 
138  vtkSetMacro(Wrap,int);
139  vtkGetMacro(Wrap,int);
140  vtkBooleanMacro(Wrap,int);
142 
146  vtkPolyData *GetFocus() {return this->Focus;};
147 
149 
152  void AllOn();
153  void AllOff();
155 
156 protected:
157  vtkCursor3D();
158  ~vtkCursor3D() VTK_OVERRIDE;
159 
161 
163  double ModelBounds[6];
164  double FocalPoint[3];
165  int Outline;
166  int Axes;
167  int XShadows;
168  int YShadows;
169  int ZShadows;
171  int Wrap;
172 
173 private:
174  vtkCursor3D(const vtkCursor3D&) VTK_DELETE_FUNCTION;
175  void operator=(const vtkCursor3D&) VTK_DELETE_FUNCTION;
176 };
177 
178 #endif
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:79
static vtkPolyDataAlgorithm * New()
vtkPolyData * GetFocus()
Get the focus for this filter.
Definition: vtkCursor3D.h:146
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void SetFocalPoint(double x, double y, double z)
Set/Get the position of cursor focus.
Definition: vtkCursor3D.h:67
Store zero or more vtkInformation instances.
generate a 3D cursor representation
Definition: vtkCursor3D.h:36
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkPolyData * Focus
Definition: vtkCursor3D.h:162
int TranslationMode
Definition: vtkCursor3D.h:170
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.