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
38
39class VTKFILTERSGENERAL_EXPORT vtkCursor3D : public vtkPolyDataAlgorithm
40{
41public:
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);
145
149 vtkPolyData *GetFocus() {return this->Focus;};
150
152
155 void AllOn();
156 void AllOff();
158
159protected:
161 ~vtkCursor3D() VTK_OVERRIDE;
162
163 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
164
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
176private:
177 vtkCursor3D(const vtkCursor3D&) VTK_DELETE_FUNCTION;
178 void operator=(const vtkCursor3D&) VTK_DELETE_FUNCTION;
179};
180
181#endif
generate a 3D cursor representation
Definition: vtkCursor3D.h:40
vtkPolyData * GetFocus()
Get the focus for this filter.
Definition: vtkCursor3D.h:149
static vtkCursor3D * New()
Construct with model bounds = (-1,1,-1,1,-1,1), focal point = (0,0,0), all parts of cursor visible,...
void SetModelBounds(const double bounds[6])
void AllOn()
Turn every part of the 3D cursor on or off.
void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
Set / get the boundary of the 3D cursor.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetFocalPoint(double x, double y, double z)
Definition: vtkCursor3D.h:70
void AllOff()
void SetFocalPoint(double x[3])
Set/Get the position of cursor focus.
~vtkCursor3D() override
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.