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:
149  vtkCursor2D();
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;
160  int TranslationMode;
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
Store vtkAlgorithm input/output information.
~vtkCursor2D() override
Definition: vtkCursor2D.h:150
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void SetFocalPoint(double x, double y, double z)
Set/Get the position of cursor focus.
Definition: vtkCursor2D.h:73
generate a 2D cursor representation
Definition: vtkCursor2D.h:40
static vtkPolyDataAlgorithm * New()
#define VTK_FLOAT_MAX
Definition: vtkType.h:161
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.