VTK  9.2.6
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) override;
44
49 static vtkCursor3D* New();
50
52
55 void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
56 void SetModelBounds(const double bounds[6]);
57 vtkGetVectorMacro(ModelBounds, double, 6);
59
61
68 void SetFocalPoint(double x[3]);
69 void SetFocalPoint(double x, double y, double z)
70 {
71 double xyz[3];
72 xyz[0] = x;
73 xyz[1] = y;
74 xyz[2] = z;
75 this->SetFocalPoint(xyz);
76 }
77 vtkGetVectorMacro(FocalPoint, double, 3);
79
81
84 vtkSetMacro(Outline, vtkTypeBool);
85 vtkGetMacro(Outline, vtkTypeBool);
86 vtkBooleanMacro(Outline, vtkTypeBool);
88
90
93 vtkSetMacro(Axes, vtkTypeBool);
94 vtkGetMacro(Axes, vtkTypeBool);
95 vtkBooleanMacro(Axes, vtkTypeBool);
97
99
102 vtkSetMacro(XShadows, vtkTypeBool);
103 vtkGetMacro(XShadows, vtkTypeBool);
104 vtkBooleanMacro(XShadows, vtkTypeBool);
106
108
111 vtkSetMacro(YShadows, vtkTypeBool);
112 vtkGetMacro(YShadows, vtkTypeBool);
113 vtkBooleanMacro(YShadows, vtkTypeBool);
115
117
120 vtkSetMacro(ZShadows, vtkTypeBool);
121 vtkGetMacro(ZShadows, vtkTypeBool);
122 vtkBooleanMacro(ZShadows, vtkTypeBool);
124
126
131 vtkSetMacro(TranslationMode, vtkTypeBool);
132 vtkGetMacro(TranslationMode, vtkTypeBool);
133 vtkBooleanMacro(TranslationMode, vtkTypeBool);
135
137
142 vtkSetMacro(Wrap, vtkTypeBool);
143 vtkGetMacro(Wrap, vtkTypeBool);
144 vtkBooleanMacro(Wrap, vtkTypeBool);
146
150 vtkPolyData* GetFocus() { return this->Focus; }
151
153
156 void AllOn();
157 void AllOff();
159
160protected:
162 ~vtkCursor3D() override;
163
165
167 double ModelBounds[6];
168 double FocalPoint[3];
176
177private:
178 vtkCursor3D(const vtkCursor3D&) = delete;
179 void operator=(const vtkCursor3D&) = delete;
180};
181
182#endif
generate a 3D cursor representation
Definition: vtkCursor3D.h:40
vtkTypeBool TranslationMode
Definition: vtkCursor3D.h:174
vtkPolyData * GetFocus()
Get the focus for this filter.
Definition: vtkCursor3D.h:150
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:175
vtkPolyData * Focus
Definition: vtkCursor3D.h:166
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:172
void SetFocalPoint(double x, double y, double z)
Set/Get the position of cursor focus.
Definition: vtkCursor3D.h:69
vtkTypeBool ZShadows
Definition: vtkCursor3D.h:173
vtkTypeBool Axes
Definition: vtkCursor3D.h:170
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:169
vtkTypeBool XShadows
Definition: vtkCursor3D.h:171
~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:91
int vtkTypeBool
Definition: vtkABI.h:69