VTK  9.1.0
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=========================================================================*/
39#ifndef vtkCursor3D_h
40#define vtkCursor3D_h
41
42#include "vtkFiltersGeneralModule.h" // For export macro
44
45class VTKFILTERSGENERAL_EXPORT vtkCursor3D : public vtkPolyDataAlgorithm
46{
47public:
49 void PrintSelf(ostream& os, vtkIndent indent) override;
50
55 static vtkCursor3D* New();
56
58
61 void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
62 void SetModelBounds(const double bounds[6]);
63 vtkGetVectorMacro(ModelBounds, double, 6);
65
67
74 void SetFocalPoint(double x[3]);
75 void SetFocalPoint(double x, double y, double z)
76 {
77 double xyz[3];
78 xyz[0] = x;
79 xyz[1] = y;
80 xyz[2] = z;
81 this->SetFocalPoint(xyz);
82 }
83 vtkGetVectorMacro(FocalPoint, double, 3);
85
87
90 vtkSetMacro(Outline, vtkTypeBool);
91 vtkGetMacro(Outline, vtkTypeBool);
92 vtkBooleanMacro(Outline, vtkTypeBool);
94
96
99 vtkSetMacro(Axes, vtkTypeBool);
100 vtkGetMacro(Axes, vtkTypeBool);
101 vtkBooleanMacro(Axes, vtkTypeBool);
103
105
108 vtkSetMacro(XShadows, vtkTypeBool);
109 vtkGetMacro(XShadows, vtkTypeBool);
110 vtkBooleanMacro(XShadows, vtkTypeBool);
112
114
117 vtkSetMacro(YShadows, vtkTypeBool);
118 vtkGetMacro(YShadows, vtkTypeBool);
119 vtkBooleanMacro(YShadows, vtkTypeBool);
121
123
126 vtkSetMacro(ZShadows, vtkTypeBool);
127 vtkGetMacro(ZShadows, vtkTypeBool);
128 vtkBooleanMacro(ZShadows, vtkTypeBool);
130
132
137 vtkSetMacro(TranslationMode, vtkTypeBool);
138 vtkGetMacro(TranslationMode, vtkTypeBool);
139 vtkBooleanMacro(TranslationMode, vtkTypeBool);
141
143
148 vtkSetMacro(Wrap, vtkTypeBool);
149 vtkGetMacro(Wrap, vtkTypeBool);
150 vtkBooleanMacro(Wrap, vtkTypeBool);
152
156 vtkPolyData* GetFocus() { return this->Focus; }
157
159
162 void AllOn();
163 void AllOff();
165
166protected:
168 ~vtkCursor3D() override;
169
171
173 double ModelBounds[6];
174 double FocalPoint[3];
182
183private:
184 vtkCursor3D(const vtkCursor3D&) = delete;
185 void operator=(const vtkCursor3D&) = delete;
186};
187
188#endif
generate a 3D cursor representation
Definition: vtkCursor3D.h:46
vtkTypeBool TranslationMode
Definition: vtkCursor3D.h:180
vtkPolyData * GetFocus()
Get the focus for this filter.
Definition: vtkCursor3D.h:156
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])
Set / get the boundary of the 3D cursor.
void AllOn()
Turn every part of the 3D cursor on or off.
vtkTypeBool Wrap
Definition: vtkCursor3D.h:181
vtkPolyData * Focus
Definition: vtkCursor3D.h:172
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.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool YShadows
Definition: vtkCursor3D.h:178
void SetFocalPoint(double x, double y, double z)
Set/Get the position of cursor focus.
Definition: vtkCursor3D.h:75
vtkTypeBool ZShadows
Definition: vtkCursor3D.h:179
vtkTypeBool Axes
Definition: vtkCursor3D.h:176
void AllOff()
Turn every part of the 3D cursor on or off.
void SetFocalPoint(double x[3])
Set/Get the position of cursor focus.
vtkTypeBool Outline
Definition: vtkCursor3D.h:175
vtkTypeBool XShadows
Definition: vtkCursor3D.h:177
~vtkCursor3D() override
a simple class to control print indentation
Definition: vtkIndent.h:43
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:95
int vtkTypeBool
Definition: vtkABI.h:69