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) 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,vtkTypeBool);
84  vtkGetMacro(Outline,vtkTypeBool);
85  vtkBooleanMacro(Outline,vtkTypeBool);
87 
89 
92  vtkSetMacro(Axes,vtkTypeBool);
93  vtkGetMacro(Axes,vtkTypeBool);
94  vtkBooleanMacro(Axes,vtkTypeBool);
96 
98 
101  vtkSetMacro(XShadows,vtkTypeBool);
102  vtkGetMacro(XShadows,vtkTypeBool);
103  vtkBooleanMacro(XShadows,vtkTypeBool);
105 
107 
110  vtkSetMacro(YShadows,vtkTypeBool);
111  vtkGetMacro(YShadows,vtkTypeBool);
112  vtkBooleanMacro(YShadows,vtkTypeBool);
114 
116 
119  vtkSetMacro(ZShadows,vtkTypeBool);
120  vtkGetMacro(ZShadows,vtkTypeBool);
121  vtkBooleanMacro(ZShadows,vtkTypeBool);
123 
125 
130  vtkSetMacro(TranslationMode,vtkTypeBool);
131  vtkGetMacro(TranslationMode,vtkTypeBool);
132  vtkBooleanMacro(TranslationMode,vtkTypeBool);
134 
136 
141  vtkSetMacro(Wrap,vtkTypeBool);
142  vtkGetMacro(Wrap,vtkTypeBool);
143  vtkBooleanMacro(Wrap,vtkTypeBool);
145 
149  vtkPolyData *GetFocus() {return this->Focus;};
150 
152 
155  void AllOn();
156  void AllOff();
158 
159 protected:
160  vtkCursor3D();
161  ~vtkCursor3D() override;
162 
164 
166  double ModelBounds[6];
167  double FocalPoint[3];
175 
176 private:
177  vtkCursor3D(const vtkCursor3D&) = delete;
178  void operator=(const vtkCursor3D&) = delete;
179 };
180 
181 #endif
vtkTypeBool ZShadows
Definition: vtkCursor3D.h:172
vtkTypeBool Outline
Definition: vtkCursor3D.h:168
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:85
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
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
vtkTypeBool Wrap
Definition: vtkCursor3D.h:174
void SetFocalPoint(double x, double y, double z)
Set/Get the position of cursor focus.
Definition: vtkCursor3D.h:70
vtkTypeBool YShadows
Definition: vtkCursor3D.h:171
Store zero or more vtkInformation instances.
generate a 3D cursor representation
Definition: vtkCursor3D.h:39
vtkTypeBool TranslationMode
Definition: vtkCursor3D.h:173
vtkPolyData * Focus
Definition: vtkCursor3D.h:165
vtkTypeBool Axes
Definition: vtkCursor3D.h:169
vtkTypeBool XShadows
Definition: vtkCursor3D.h:170
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.