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) 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,vtkTypeBool);
81  vtkGetMacro(Outline,vtkTypeBool);
82  vtkBooleanMacro(Outline,vtkTypeBool);
84 
86 
89  vtkSetMacro(Axes,vtkTypeBool);
90  vtkGetMacro(Axes,vtkTypeBool);
91  vtkBooleanMacro(Axes,vtkTypeBool);
93 
95 
98  vtkSetMacro(XShadows,vtkTypeBool);
99  vtkGetMacro(XShadows,vtkTypeBool);
100  vtkBooleanMacro(XShadows,vtkTypeBool);
102 
104 
107  vtkSetMacro(YShadows,vtkTypeBool);
108  vtkGetMacro(YShadows,vtkTypeBool);
109  vtkBooleanMacro(YShadows,vtkTypeBool);
111 
113 
116  vtkSetMacro(ZShadows,vtkTypeBool);
117  vtkGetMacro(ZShadows,vtkTypeBool);
118  vtkBooleanMacro(ZShadows,vtkTypeBool);
120 
122 
127  vtkSetMacro(TranslationMode,vtkTypeBool);
128  vtkGetMacro(TranslationMode,vtkTypeBool);
129  vtkBooleanMacro(TranslationMode,vtkTypeBool);
131 
133 
138  vtkSetMacro(Wrap,vtkTypeBool);
139  vtkGetMacro(Wrap,vtkTypeBool);
140  vtkBooleanMacro(Wrap,vtkTypeBool);
142 
146  vtkPolyData *GetFocus() {return this->Focus;};
147 
149 
152  void AllOn();
153  void AllOff();
155 
156 protected:
157  vtkCursor3D();
158  ~vtkCursor3D() override;
159 
161 
163  double ModelBounds[6];
164  double FocalPoint[3];
172 
173 private:
174  vtkCursor3D(const vtkCursor3D&) = delete;
175  void operator=(const vtkCursor3D&) = delete;
176 };
177 
178 #endif
vtkCursor3D::Focus
vtkPolyData * Focus
Definition: vtkCursor3D.h:162
vtkCursor3D
generate a 3D cursor representation
Definition: vtkCursor3D.h:36
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkCursor3D::Outline
vtkTypeBool Outline
Definition: vtkCursor3D.h:165
vtkCursor3D::ZShadows
vtkTypeBool ZShadows
Definition: vtkCursor3D.h:169
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkCursor3D::GetFocus
vtkPolyData * GetFocus()
Get the focus for this filter.
Definition: vtkCursor3D.h:146
vtkCursor3D::Wrap
vtkTypeBool Wrap
Definition: vtkCursor3D.h:171
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkCursor3D::TranslationMode
vtkTypeBool TranslationMode
Definition: vtkCursor3D.h:170
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
vtkCursor3D::XShadows
vtkTypeBool XShadows
Definition: vtkCursor3D.h:167
vtkCursor3D::SetFocalPoint
void SetFocalPoint(double x, double y, double z)
Definition: vtkCursor3D.h:67
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkCursor3D::YShadows
vtkTypeBool YShadows
Definition: vtkCursor3D.h:168
vtkCursor3D::Axes
vtkTypeBool Axes
Definition: vtkCursor3D.h:166
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41