VTK  9.2.6
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=========================================================================*/
33
34#ifndef vtkCursor2D_h
35#define vtkCursor2D_h
36
37#include "vtkFiltersGeneralModule.h" // For export macro
39
40class VTKFILTERSGENERAL_EXPORT vtkCursor2D : public vtkPolyDataAlgorithm
41{
42public:
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
50 static vtkCursor2D* New();
51
53
57 void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
58 void SetModelBounds(const double bounds[6]);
59 vtkGetVectorMacro(ModelBounds, double, 6);
61
63
71 void SetFocalPoint(double x[3]);
72 void SetFocalPoint(double x, double y, double z)
73 {
74 double xyz[3];
75 xyz[0] = x;
76 xyz[1] = y;
77 xyz[2] = z;
78 this->SetFocalPoint(xyz);
79 }
80 vtkGetVectorMacro(FocalPoint, double, 3);
82
84
87 vtkSetMacro(Outline, vtkTypeBool);
88 vtkGetMacro(Outline, vtkTypeBool);
89 vtkBooleanMacro(Outline, vtkTypeBool);
91
93
96 vtkSetMacro(Axes, vtkTypeBool);
97 vtkGetMacro(Axes, vtkTypeBool);
98 vtkBooleanMacro(Axes, vtkTypeBool);
100
102
106 vtkSetClampMacro(Radius, double, 0.0, VTK_FLOAT_MAX);
107 vtkGetMacro(Radius, double);
109
111
114 vtkSetMacro(Point, vtkTypeBool);
115 vtkGetMacro(Point, vtkTypeBool);
116 vtkBooleanMacro(Point, vtkTypeBool);
118
120
127 vtkBooleanMacro(TranslationMode, vtkTypeBool);
129
131
136 vtkSetMacro(Wrap, vtkTypeBool);
137 vtkGetMacro(Wrap, vtkTypeBool);
138 vtkBooleanMacro(Wrap, vtkTypeBool);
140
142
145 void AllOn();
146 void AllOff();
148
149protected:
151 ~vtkCursor2D() override = default;
152
154
155 double ModelBounds[6];
156 double FocalPoint[3];
160 double Radius;
163
164private:
165 vtkCursor2D(const vtkCursor2D&) = delete;
166 void operator=(const vtkCursor2D&) = delete;
167};
168
169#endif
double Radius
vtkTypeBool TranslationMode
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool Point
vtkTypeBool Wrap
double FocalPoint[3]
~vtkCursor2D() override=default
vtkTypeBool Axes
void SetFocalPoint(double x, double y, double z)
Set/Get the position of cursor focus.
Definition vtkCursor2D.h:72
void AllOn()
Turn every part of the cursor on or off.
void SetFocalPoint(double x[3])
Set/Get the position of cursor focus.
double ModelBounds[6]
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
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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:69
#define VTK_FLOAT_MAX
Definition vtkType.h:163