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 =========================================================================*/
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) VTK_OVERRIDE;
44 
49  static vtkCursor3D *New();
50 
52 
55  void SetModelBounds(double xmin, double xmax, double ymin, double ymax,
56  double zmin, double zmax);
57  void SetModelBounds(const double bounds[6]);
58  vtkGetVectorMacro(ModelBounds,double,6);
60 
62 
69  void SetFocalPoint(double x[3]);
70  void SetFocalPoint(double x, double y, double z)
71  {
72  double xyz[3];
73  xyz[0] = x; xyz[1] = y; xyz[2] = z;
74  this->SetFocalPoint(xyz);
75  }
76  vtkGetVectorMacro(FocalPoint,double,3);
78 
80 
83  vtkSetMacro(Outline,int);
84  vtkGetMacro(Outline,int);
85  vtkBooleanMacro(Outline,int);
87 
89 
92  vtkSetMacro(Axes,int);
93  vtkGetMacro(Axes,int);
94  vtkBooleanMacro(Axes,int);
96 
98 
101  vtkSetMacro(XShadows,int);
102  vtkGetMacro(XShadows,int);
103  vtkBooleanMacro(XShadows,int);
105 
107 
110  vtkSetMacro(YShadows,int);
111  vtkGetMacro(YShadows,int);
112  vtkBooleanMacro(YShadows,int);
114 
116 
119  vtkSetMacro(ZShadows,int);
120  vtkGetMacro(ZShadows,int);
121  vtkBooleanMacro(ZShadows,int);
123 
125 
130  vtkSetMacro(TranslationMode,int);
131  vtkGetMacro(TranslationMode,int);
132  vtkBooleanMacro(TranslationMode,int);
134 
136 
141  vtkSetMacro(Wrap,int);
142  vtkGetMacro(Wrap,int);
143  vtkBooleanMacro(Wrap,int);
145 
149  vtkPolyData *GetFocus() {return this->Focus;};
150 
152 
155  void AllOn();
156  void AllOff();
158 
159 protected:
160  vtkCursor3D();
161  ~vtkCursor3D() VTK_OVERRIDE;
162 
163  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
164 
165  vtkPolyData *Focus;
166  double ModelBounds[6];
167  double FocalPoint[3];
168  int Outline;
169  int Axes;
170  int XShadows;
171  int YShadows;
172  int ZShadows;
173  int TranslationMode;
174  int Wrap;
175 
176 private:
177  vtkCursor3D(const vtkCursor3D&) VTK_DELETE_FUNCTION;
178  void operator=(const vtkCursor3D&) VTK_DELETE_FUNCTION;
179 };
180 
181 #endif
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
static vtkPolyDataAlgorithm * New()
vtkPolyData * GetFocus()
Get the focus for this filter.
Definition: vtkCursor3D.h:149
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
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:70
Store zero or more vtkInformation instances.
generate a 3D cursor representation
Definition: vtkCursor3D.h:39
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.