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=========================================================================*/
31#ifndef vtkCursor2D_h
32#define vtkCursor2D_h
33
34#include "vtkFiltersGeneralModule.h" // For export macro
36
37class VTKFILTERSGENERAL_EXPORT vtkCursor2D : public vtkPolyDataAlgorithm
38{
39public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
47 static vtkCursor2D* New();
48
50
54 void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
55 void SetModelBounds(const double bounds[6]);
56 vtkGetVectorMacro(ModelBounds, double, 6);
58
60
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
103 vtkSetClampMacro(Radius, double, 0.0, VTK_FLOAT_MAX);
104 vtkGetMacro(Radius, double);
106
108
111 vtkSetMacro(Point, vtkTypeBool);
112 vtkGetMacro(Point, vtkTypeBool);
113 vtkBooleanMacro(Point, vtkTypeBool);
115
117
122 vtkSetMacro(TranslationMode, vtkTypeBool);
123 vtkGetMacro(TranslationMode, vtkTypeBool);
124 vtkBooleanMacro(TranslationMode, vtkTypeBool);
126
128
133 vtkSetMacro(Wrap, vtkTypeBool);
134 vtkGetMacro(Wrap, vtkTypeBool);
135 vtkBooleanMacro(Wrap, vtkTypeBool);
137
139
142 void AllOn();
143 void AllOff();
145
146protected:
148 ~vtkCursor2D() override = default;
149
151
152 double ModelBounds[6];
153 double FocalPoint[3];
157 double Radius;
160
161private:
162 vtkCursor2D(const vtkCursor2D&) = delete;
163 void operator=(const vtkCursor2D&) = delete;
164};
165
166#endif
generate a 2D cursor representation
Definition vtkCursor2D.h:38
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:69
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:34
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