VTK  9.3.1
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
26 #include "vtkPolyDataAlgorithm.h"
27 
28 VTK_ABI_NAMESPACE_BEGIN
29 class VTKFILTERSGENERAL_EXPORT vtkCursor2D : public vtkPolyDataAlgorithm
30 {
31 public:
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 
138 protected:
139  vtkCursor2D();
140  ~vtkCursor2D() override = default;
141 
143 
144  double ModelBounds[6];
145  double FocalPoint[3];
149  double Radius;
152 
153 private:
154  vtkCursor2D(const vtkCursor2D&) = delete;
155  void operator=(const vtkCursor2D&) = delete;
156 };
157 
158 VTK_ABI_NAMESPACE_END
159 #endif
vtkTypeBool Wrap
Definition: vtkCursor2D.h:151
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkTypeBool Axes
Definition: vtkCursor2D.h:147
vtkTypeBool TranslationMode
Definition: vtkCursor2D.h:150
vtkTypeBool Point
Definition: vtkCursor2D.h:148
void SetFocalPoint(double x, double y, double z)
Set/Get the position of cursor focus.
Definition: vtkCursor2D.h:61
generate a 2D cursor representation
Definition: vtkCursor2D.h:29
double Radius
Definition: vtkCursor2D.h:149
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:64
vtkTypeBool Outline
Definition: vtkCursor2D.h:146
#define VTK_FLOAT_MAX
Definition: vtkType.h:152
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.