VTK  9.0.2
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
35 #include "vtkPolyDataAlgorithm.h"
36 
37 class VTKFILTERSGENERAL_EXPORT vtkCursor2D : public vtkPolyDataAlgorithm
38 {
39 public:
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 
146 protected:
148  ~vtkCursor2D() override {}
149 
151 
152  double ModelBounds[6];
153  double FocalPoint[3];
157  double Radius;
160 
161 private:
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
Definition: vtkCursor2D.h:157
vtkTypeBool TranslationMode
Definition: vtkCursor2D.h:158
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool Point
Definition: vtkCursor2D.h:156
vtkTypeBool Wrap
Definition: vtkCursor2D.h:159
vtkTypeBool Axes
Definition: vtkCursor2D.h:155
void SetFocalPoint(double x, double y, double z)
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.
void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
Set / get the bounding box of the 2D cursor.
static vtkCursor2D * New()
Construct with model bounds = (-10,10,-10,10), focal point = (0,0), radius=2, all parts of cursor vis...
void AllOff()
~vtkCursor2D() override
Definition: vtkCursor2D.h:148
vtkTypeBool Outline
Definition: vtkCursor2D.h:154
void SetModelBounds(const double bounds[6])
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