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=========================================================================*/
50#ifndef vtkCursor2D_h
51#define vtkCursor2D_h
52
53#include "vtkFiltersGeneralModule.h" // For export macro
55
56class VTKFILTERSGENERAL_EXPORT vtkCursor2D : public vtkPolyDataAlgorithm
57{
58public:
60 void PrintSelf(ostream& os, vtkIndent indent) override;
61
66 static vtkCursor2D* New();
67
69
73 void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
74 void SetModelBounds(const double bounds[6]);
75 vtkGetVectorMacro(ModelBounds, double, 6);
77
79
87 void SetFocalPoint(double x[3]);
88 void SetFocalPoint(double x, double y, double z)
89 {
90 double xyz[3];
91 xyz[0] = x;
92 xyz[1] = y;
93 xyz[2] = z;
94 this->SetFocalPoint(xyz);
95 }
96 vtkGetVectorMacro(FocalPoint, double, 3);
98
100
103 vtkSetMacro(Outline, vtkTypeBool);
104 vtkGetMacro(Outline, vtkTypeBool);
105 vtkBooleanMacro(Outline, vtkTypeBool);
107
109
112 vtkSetMacro(Axes, vtkTypeBool);
113 vtkGetMacro(Axes, vtkTypeBool);
114 vtkBooleanMacro(Axes, vtkTypeBool);
116
118
122 vtkSetClampMacro(Radius, double, 0.0, VTK_FLOAT_MAX);
123 vtkGetMacro(Radius, double);
125
127
130 vtkSetMacro(Point, vtkTypeBool);
131 vtkGetMacro(Point, vtkTypeBool);
132 vtkBooleanMacro(Point, vtkTypeBool);
134
136
141 vtkSetMacro(TranslationMode, vtkTypeBool);
142 vtkGetMacro(TranslationMode, vtkTypeBool);
143 vtkBooleanMacro(TranslationMode, vtkTypeBool);
145
147
152 vtkSetMacro(Wrap, vtkTypeBool);
153 vtkGetMacro(Wrap, vtkTypeBool);
154 vtkBooleanMacro(Wrap, vtkTypeBool);
156
158
161 void AllOn();
162 void AllOff();
164
165protected:
167 ~vtkCursor2D() override = default;
168
170
171 double ModelBounds[6];
172 double FocalPoint[3];
176 double Radius;
179
180private:
181 vtkCursor2D(const vtkCursor2D&) = delete;
182 void operator=(const vtkCursor2D&) = delete;
183};
184
185#endif
generate a 2D cursor representation
Definition: vtkCursor2D.h:57
double Radius
Definition: vtkCursor2D.h:176
vtkTypeBool TranslationMode
Definition: vtkCursor2D.h:177
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool Point
Definition: vtkCursor2D.h:175
vtkTypeBool Wrap
Definition: vtkCursor2D.h:178
~vtkCursor2D() override=default
vtkTypeBool Axes
Definition: vtkCursor2D.h:174
void SetFocalPoint(double x, double y, double z)
Set/Get the position of cursor focus.
Definition: vtkCursor2D.h:88
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:173
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:113
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