VTK  9.3.0
vtkCursor2D.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
22#ifndef vtkCursor2D_h
23#define vtkCursor2D_h
24
25#include "vtkFiltersGeneralModule.h" // For export macro
27
28VTK_ABI_NAMESPACE_BEGIN
29class VTKFILTERSGENERAL_EXPORT vtkCursor2D : public vtkPolyDataAlgorithm
30{
31public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
39 static vtkCursor2D* New();
40
42
46 void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
47 void SetModelBounds(const double bounds[6]);
48 vtkGetVectorMacro(ModelBounds, double, 6);
50
52
60 void SetFocalPoint(double x[3]);
61 void SetFocalPoint(double x, double y, double z)
62 {
63 double xyz[3];
64 xyz[0] = x;
65 xyz[1] = y;
66 xyz[2] = z;
67 this->SetFocalPoint(xyz);
68 }
69 vtkGetVectorMacro(FocalPoint, double, 3);
71
73
76 vtkSetMacro(Outline, vtkTypeBool);
77 vtkGetMacro(Outline, vtkTypeBool);
78 vtkBooleanMacro(Outline, vtkTypeBool);
80
82
85 vtkSetMacro(Axes, vtkTypeBool);
86 vtkGetMacro(Axes, vtkTypeBool);
87 vtkBooleanMacro(Axes, vtkTypeBool);
89
91
95 vtkSetClampMacro(Radius, double, 0.0, VTK_FLOAT_MAX);
96 vtkGetMacro(Radius, double);
98
100
103 vtkSetMacro(Point, vtkTypeBool);
104 vtkGetMacro(Point, vtkTypeBool);
105 vtkBooleanMacro(Point, vtkTypeBool);
107
109
114 vtkSetMacro(TranslationMode, vtkTypeBool);
115 vtkGetMacro(TranslationMode, vtkTypeBool);
116 vtkBooleanMacro(TranslationMode, vtkTypeBool);
118
120
125 vtkSetMacro(Wrap, vtkTypeBool);
126 vtkGetMacro(Wrap, vtkTypeBool);
127 vtkBooleanMacro(Wrap, vtkTypeBool);
129
131
134 void AllOn();
135 void AllOff();
137
138protected:
140 ~vtkCursor2D() override = default;
141
143
144 double ModelBounds[6];
145 double FocalPoint[3];
149 double Radius;
152
153private:
154 vtkCursor2D(const vtkCursor2D&) = delete;
155 void operator=(const vtkCursor2D&) = delete;
156};
157
158VTK_ABI_NAMESPACE_END
159#endif
generate a 2D cursor representation
Definition vtkCursor2D.h:30
double Radius
vtkTypeBool TranslationMode
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool Point
vtkTypeBool Wrap
~vtkCursor2D() override=default
vtkTypeBool Axes
void SetFocalPoint(double x, double y, double z)
Set/Get the position of cursor focus.
Definition vtkCursor2D.h:61
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
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:29
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:64
#define VTK_FLOAT_MAX
Definition vtkType.h:152