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 =========================================================================*/
33 #ifndef vtkCursor2D_h
34 #define vtkCursor2D_h
35 
36 #include "vtkFiltersGeneralModule.h" // For export macro
37 #include "vtkPolyDataAlgorithm.h"
38 
40 {
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
47  static vtkCursor2D *New();
48 
50 
52  void SetModelBounds(double xmin, double xmax, double ymin, double ymax,
53  double zmin, double zmax);
54  void SetModelBounds(const double bounds[6]);
55  vtkGetVectorMacro(ModelBounds,double,6);
57 
59 
65  void SetFocalPoint(double x[3]);
66  void SetFocalPoint(double x, double y, double z)
67  {
68  double xyz[3];
69  xyz[0] = x; xyz[1] = y; xyz[2] = z;
70  this->SetFocalPoint(xyz);
71  }
72  vtkGetVectorMacro(FocalPoint,double,3);
74 
76 
77  vtkSetMacro(Outline,int);
78  vtkGetMacro(Outline,int);
79  vtkBooleanMacro(Outline,int);
81 
83 
84  vtkSetMacro(Axes,int);
85  vtkGetMacro(Axes,int);
86  vtkBooleanMacro(Axes,int);
88 
90 
92  vtkSetClampMacro(Radius,double,0.0,VTK_FLOAT_MAX);
93  vtkGetMacro(Radius,double);
95 
97 
98  vtkSetMacro(Point,int);
99  vtkGetMacro(Point,int);
100  vtkBooleanMacro(Point,int);
102 
104 
107  vtkSetMacro(TranslationMode,int);
108  vtkGetMacro(TranslationMode,int);
109  vtkBooleanMacro(TranslationMode,int);
111 
113 
116  vtkSetMacro(Wrap,int);
117  vtkGetMacro(Wrap,int);
118  vtkBooleanMacro(Wrap,int);
120 
122 
123  void AllOn();
124  void AllOff();
126 
127 protected:
130 
132 
133  double ModelBounds[6];
134  double FocalPoint[3];
135  int Outline;
136  int Axes;
137  int Point;
138  double Radius;
140  int Wrap;
141 
142 private:
143  vtkCursor2D(const vtkCursor2D&); // Not implemented.
144  void operator=(const vtkCursor2D&); // Not implemented.
145 };
146 
147 #endif
vtkCursor2D::~vtkCursor2D
~vtkCursor2D()
Definition: vtkCursor2D.h:129
vtkgl::z
GLdouble GLdouble z
Definition: vtkgl.h:11754
vtkCursor2D::Wrap
int Wrap
Definition: vtkCursor2D.h:140
vtkCursor2D::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkCursor2D::SetModelBounds
void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
vtkCursor2D::SetFocalPoint
void SetFocalPoint(double x, double y, double z)
Definition: vtkCursor2D.h:66
vtkCursor2D::SetModelBounds
void SetModelBounds(const double bounds[6])
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkCursor2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkCursor2D::New
static vtkCursor2D * New()
vtkCursor2D::SetFocalPoint
void SetFocalPoint(double x[3])
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkCursor2D::Radius
double Radius
Definition: vtkCursor2D.h:138
vtkCursor2D::TranslationMode
int TranslationMode
Definition: vtkCursor2D.h:139
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkCursor2D::AllOn
void AllOn()
vtkGetVectorMacro
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:424
vtkCursor2D::vtkCursor2D
vtkCursor2D()
vtkCursor2D::Axes
int Axes
Definition: vtkCursor2D.h:136
vtkPolyDataAlgorithm.h
vtkCursor2D::Point
int Point
Definition: vtkCursor2D.h:137
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkFiltersGeneralModule.h
vtkCursor2D::AllOff
void AllOff()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
VTKFILTERSGENERAL_EXPORT
#define VTKFILTERSGENERAL_EXPORT
Definition: vtkFiltersGeneralModule.h:15
vtkCursor2D
generate a 2D cursor representation
Definition: vtkCursor2D.h:40
vtkCursor2D::Outline
int Outline
Definition: vtkCursor2D.h:135
VTK_FLOAT_MAX
#define VTK_FLOAT_MAX
Definition: vtkType.h:140
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkgl::zmax
GLclampd zmax
Definition: vtkgl.h:17479
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkgl::y
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44