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 =========================================================================*/
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) VTK_OVERRIDE;
42 
47  static vtkCursor2D *New();
48 
50 
54  void SetModelBounds(double xmin, double xmax, double ymin, double ymax,
55  double zmin, double zmax);
56  void SetModelBounds(const double bounds[6]);
57  vtkGetVectorMacro(ModelBounds,double,6);
59 
61 
69  void SetFocalPoint(double x[3]);
70  void SetFocalPoint(double x, double y, double z)
71  {
72  double xyz[3];
73  xyz[0] = x; xyz[1] = y; xyz[2] = z;
74  this->SetFocalPoint(xyz);
75  }
76  vtkGetVectorMacro(FocalPoint,double,3);
78 
80 
83  vtkSetMacro(Outline,int);
84  vtkGetMacro(Outline,int);
85  vtkBooleanMacro(Outline,int);
87 
89 
92  vtkSetMacro(Axes,int);
93  vtkGetMacro(Axes,int);
94  vtkBooleanMacro(Axes,int);
96 
98 
102  vtkSetClampMacro(Radius,double,0.0,VTK_FLOAT_MAX);
103  vtkGetMacro(Radius,double);
105 
107 
110  vtkSetMacro(Point,int);
111  vtkGetMacro(Point,int);
112  vtkBooleanMacro(Point,int);
114 
116 
121  vtkSetMacro(TranslationMode,int);
122  vtkGetMacro(TranslationMode,int);
123  vtkBooleanMacro(TranslationMode,int);
125 
127 
132  vtkSetMacro(Wrap,int);
133  vtkGetMacro(Wrap,int);
134  vtkBooleanMacro(Wrap,int);
136 
138 
141  void AllOn();
142  void AllOff();
144 
145 protected:
146  vtkCursor2D();
147  ~vtkCursor2D() VTK_OVERRIDE {}
148 
150 
151  double ModelBounds[6];
152  double FocalPoint[3];
153  int Outline;
154  int Axes;
155  int Point;
156  double Radius;
158  int Wrap;
159 
160 private:
161  vtkCursor2D(const vtkCursor2D&) VTK_DELETE_FUNCTION;
162  void operator=(const vtkCursor2D&) VTK_DELETE_FUNCTION;
163 };
164 
165 #endif
Store vtkAlgorithm input/output information.
~vtkCursor2D() override
Definition: vtkCursor2D.h:147
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:70
generate a 2D cursor representation
Definition: vtkCursor2D.h:37
int TranslationMode
Definition: vtkCursor2D.h:157
double Radius
Definition: vtkCursor2D.h:156
static vtkPolyDataAlgorithm * New()
#define VTK_FLOAT_MAX
Definition: vtkType.h:165
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
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.