VTK  9.1.0
vtkCursor2D.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkCursor2D.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=========================================================================*/
40#ifndef vtkCursor2D_h
41#define vtkCursor2D_h
42
43#include "vtkFiltersGeneralModule.h" // For export macro
45
46class VTKFILTERSGENERAL_EXPORT vtkCursor2D : public vtkPolyDataAlgorithm
47{
48public:
50 void PrintSelf(ostream& os, vtkIndent indent) override;
51
56 static vtkCursor2D* New();
57
59
63 void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
64 void SetModelBounds(const double bounds[6]);
65 vtkGetVectorMacro(ModelBounds, double, 6);
67
69
77 void SetFocalPoint(double x[3]);
78 void SetFocalPoint(double x, double y, double z)
79 {
80 double xyz[3];
81 xyz[0] = x;
82 xyz[1] = y;
83 xyz[2] = z;
84 this->SetFocalPoint(xyz);
85 }
86 vtkGetVectorMacro(FocalPoint, double, 3);
88
90
93 vtkSetMacro(Outline, vtkTypeBool);
94 vtkGetMacro(Outline, vtkTypeBool);
95 vtkBooleanMacro(Outline, vtkTypeBool);
97
99
102 vtkSetMacro(Axes, vtkTypeBool);
103 vtkGetMacro(Axes, vtkTypeBool);
104 vtkBooleanMacro(Axes, vtkTypeBool);
106
108
112 vtkSetClampMacro(Radius, double, 0.0, VTK_FLOAT_MAX);
113 vtkGetMacro(Radius, double);
115
117
120 vtkSetMacro(Point, vtkTypeBool);
121 vtkGetMacro(Point, vtkTypeBool);
122 vtkBooleanMacro(Point, 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
148
151 void AllOn();
152 void AllOff();
154
155protected:
157 ~vtkCursor2D() override = default;
158
160
161 double ModelBounds[6];
162 double FocalPoint[3];
166 double Radius;
169
170private:
171 vtkCursor2D(const vtkCursor2D&) = delete;
172 void operator=(const vtkCursor2D&) = delete;
173};
174
175#endif
generate a 2D cursor representation
Definition: vtkCursor2D.h:47
double Radius
Definition: vtkCursor2D.h:166
vtkTypeBool TranslationMode
Definition: vtkCursor2D.h:167
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool Point
Definition: vtkCursor2D.h:165
vtkTypeBool Wrap
Definition: vtkCursor2D.h:168
~vtkCursor2D() override=default
vtkTypeBool Axes
Definition: vtkCursor2D.h:164
void SetFocalPoint(double x, double y, double z)
Set/Get the position of cursor focus.
Definition: vtkCursor2D.h:78
void AllOn()
Turn every part of the cursor on or off.
void SetFocalPoint(double x[3])
Set/Get the position of cursor focus.
static vtkCursor2D * New()
Construct with model bounds = (-10,10,-10,10), focal point = (0,0), radius=2, all parts of cursor vis...
void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
Set / get the bounding box of the 2D cursor.
void AllOff()
Turn every part of the cursor on or off.
vtkTypeBool Outline
Definition: vtkCursor2D.h:163
void SetModelBounds(const double bounds[6])
Set / get the bounding box of the 2D cursor.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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.
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_FLOAT_MAX
Definition: vtkType.h:163