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 =========================================================================*/
34 #ifndef vtkCursor2D_h
35 #define vtkCursor2D_h
36 
37 #include "vtkFiltersGeneralModule.h" // For export macro
38 #include "vtkPolyDataAlgorithm.h"
39 
40 class VTKFILTERSGENERAL_EXPORT vtkCursor2D : public vtkPolyDataAlgorithm
41 {
42 public:
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 
125  vtkSetMacro(TranslationMode, vtkTypeBool);
126  vtkGetMacro(TranslationMode, vtkTypeBool);
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 
149 protected:
150  vtkCursor2D();
151  ~vtkCursor2D() override = default;
152 
154 
155  double ModelBounds[6];
156  double FocalPoint[3];
160  double Radius;
163 
164 private:
165  vtkCursor2D(const vtkCursor2D&) = delete;
166  void operator=(const vtkCursor2D&) = delete;
167 };
168 
169 #endif
vtkTypeBool Wrap
Definition: vtkCursor2D.h:162
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:158
vtkTypeBool TranslationMode
Definition: vtkCursor2D.h:161
vtkTypeBool Point
Definition: vtkCursor2D.h:159
void SetFocalPoint(double x, double y, double z)
Set/Get the position of cursor focus.
Definition: vtkCursor2D.h:72
generate a 2D cursor representation
Definition: vtkCursor2D.h:40
double Radius
Definition: vtkCursor2D.h:160
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeBool Outline
Definition: vtkCursor2D.h:157
#define VTK_FLOAT_MAX
Definition: vtkType.h:163
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
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.