VTK
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) VTK_OVERRIDE;
45 
50  static vtkCursor2D *New();
51 
53 
57  void SetModelBounds(double xmin, double xmax, double ymin, double ymax,
58  double zmin, double zmax);
59  void SetModelBounds(const double bounds[6]);
60  vtkGetVectorMacro(ModelBounds,double,6);
62 
64 
72  void SetFocalPoint(double x[3]);
73  void SetFocalPoint(double x, double y, double z)
74  {
75  double xyz[3];
76  xyz[0] = x; xyz[1] = y; xyz[2] = z;
77  this->SetFocalPoint(xyz);
78  }
79  vtkGetVectorMacro(FocalPoint,double,3);
81 
83 
86  vtkSetMacro(Outline,int);
87  vtkGetMacro(Outline,int);
88  vtkBooleanMacro(Outline,int);
90 
92 
95  vtkSetMacro(Axes,int);
96  vtkGetMacro(Axes,int);
97  vtkBooleanMacro(Axes,int);
99 
101 
105  vtkSetClampMacro(Radius,double,0.0,VTK_FLOAT_MAX);
106  vtkGetMacro(Radius,double);
108 
110 
113  vtkSetMacro(Point,int);
114  vtkGetMacro(Point,int);
115  vtkBooleanMacro(Point,int);
117 
119 
124  vtkSetMacro(TranslationMode,int);
125  vtkGetMacro(TranslationMode,int);
126  vtkBooleanMacro(TranslationMode,int);
128 
130 
135  vtkSetMacro(Wrap,int);
136  vtkGetMacro(Wrap,int);
137  vtkBooleanMacro(Wrap,int);
139 
141 
144  void AllOn();
145  void AllOff();
147 
148 protected:
150  ~vtkCursor2D() VTK_OVERRIDE {}
151 
153 
154  double ModelBounds[6];
155  double FocalPoint[3];
156  int Outline;
157  int Axes;
158  int Point;
159  double Radius;
161  int Wrap;
162 
163 private:
164  vtkCursor2D(const vtkCursor2D&) VTK_DELETE_FUNCTION;
165  void operator=(const vtkCursor2D&) VTK_DELETE_FUNCTION;
166 };
167 
168 #endif
generate a 2D cursor representation
Definition: vtkCursor2D.h:41
double Radius
Definition: vtkCursor2D.h:159
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetFocalPoint(double x, double y, double z)
Definition: vtkCursor2D.h:73
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...
int TranslationMode
Definition: vtkCursor2D.h:160
void AllOff()
~vtkCursor2D() override
Definition: vtkCursor2D.h:150
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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_FLOAT_MAX
Definition: vtkType.h:161