VTK
vtkCursor3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCursor3D.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 =========================================================================*/
32 #ifndef vtkCursor3D_h
33 #define vtkCursor3D_h
34 
35 #include "vtkFiltersGeneralModule.h" // For export macro
36 #include "vtkPolyDataAlgorithm.h"
37 
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
46  static vtkCursor3D *New();
47 
49 
50  void SetModelBounds(double xmin, double xmax, double ymin, double ymax,
51  double zmin, double zmax);
52  void SetModelBounds(const double bounds[6]);
53  vtkGetVectorMacro(ModelBounds,double,6);
55 
57 
62  void SetFocalPoint(double x[3]);
63  void SetFocalPoint(double x, double y, double z)
64  {
65  double xyz[3];
66  xyz[0] = x; xyz[1] = y; xyz[2] = z;
67  this->SetFocalPoint(xyz);
68  }
69  vtkGetVectorMacro(FocalPoint,double,3);
71 
73 
74  vtkSetMacro(Outline,int);
75  vtkGetMacro(Outline,int);
76  vtkBooleanMacro(Outline,int);
78 
80 
81  vtkSetMacro(Axes,int);
82  vtkGetMacro(Axes,int);
83  vtkBooleanMacro(Axes,int);
85 
87 
88  vtkSetMacro(XShadows,int);
89  vtkGetMacro(XShadows,int);
90  vtkBooleanMacro(XShadows,int);
92 
94 
95  vtkSetMacro(YShadows,int);
96  vtkGetMacro(YShadows,int);
97  vtkBooleanMacro(YShadows,int);
99 
101 
102  vtkSetMacro(ZShadows,int);
103  vtkGetMacro(ZShadows,int);
104  vtkBooleanMacro(ZShadows,int);
106 
108 
111  vtkSetMacro(TranslationMode,int);
112  vtkGetMacro(TranslationMode,int);
113  vtkBooleanMacro(TranslationMode,int);
115 
117 
120  vtkSetMacro(Wrap,int);
121  vtkGetMacro(Wrap,int);
122  vtkBooleanMacro(Wrap,int);
124 
126  vtkPolyData *GetFocus() {return this->Focus;};
127 
129 
130  void AllOn();
131  void AllOff();
133 
134 protected:
137 
139 
141  double ModelBounds[6];
142  double FocalPoint[3];
143  int Outline;
144  int Axes;
145  int XShadows;
146  int YShadows;
147  int ZShadows;
149  int Wrap;
150 
151 private:
152  vtkCursor3D(const vtkCursor3D&); // Not implemented.
153  void operator=(const vtkCursor3D&); // Not implemented.
154 };
155 
156 #endif
vtkCursor3D::TranslationMode
int TranslationMode
Definition: vtkCursor3D.h:148
vtkgl::z
GLdouble GLdouble z
Definition: vtkgl.h:11754
vtkCursor3D::New
static vtkCursor3D * New()
vtkCursor3D::~vtkCursor3D
~vtkCursor3D()
vtkCursor3D::Axes
int Axes
Definition: vtkCursor3D.h:144
vtkCursor3D::Focus
vtkPolyData * Focus
Definition: vtkCursor3D.h:140
vtkCursor3D
generate a 3D cursor representation
Definition: vtkCursor3D.h:39
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkCursor3D::AllOff
void AllOff()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkCursor3D::SetModelBounds
void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkGetVectorMacro
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:424
vtkCursor3D::AllOn
void AllOn()
vtkPolyDataAlgorithm.h
vtkCursor3D::SetModelBounds
void SetModelBounds(const double bounds[6])
vtkFiltersGeneralModule.h
vtkCursor3D::YShadows
int YShadows
Definition: vtkCursor3D.h:146
vtkCursor3D::GetFocus
vtkPolyData * GetFocus()
Definition: vtkCursor3D.h:126
vtkCursor3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCursor3D::Outline
int Outline
Definition: vtkCursor3D.h:143
VTKFILTERSGENERAL_EXPORT
#define VTKFILTERSGENERAL_EXPORT
Definition: vtkFiltersGeneralModule.h:15
vtkCursor3D::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkCursor3D::SetFocalPoint
void SetFocalPoint(double x[3])
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)
vtkCursor3D::Wrap
int Wrap
Definition: vtkCursor3D.h:149
vtkgl::y
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkCursor3D::SetFocalPoint
void SetFocalPoint(double x, double y, double z)
Definition: vtkCursor3D.h:63
vtkCursor3D::XShadows
int XShadows
Definition: vtkCursor3D.h:145
vtkCursor3D::ZShadows
int ZShadows
Definition: vtkCursor3D.h:147
vtkCursor3D::vtkCursor3D
vtkCursor3D()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44