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 "vtkPolyDataAlgorithm.h"
36 
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
45  static vtkCursor3D *New();
46 
48 
49  void SetModelBounds(double xmin, double xmax, double ymin, double ymax,
50  double zmin, double zmax);
51  void SetModelBounds(double bounds[6]);
52  vtkGetVectorMacro(ModelBounds,double,6);
54 
56 
61  void SetFocalPoint(double x[3]);
62  void SetFocalPoint(double x, double y, double z)
63  {
64  double xyz[3];
65  xyz[0] = x; xyz[1] = y; xyz[2] = z;
66  this->SetFocalPoint(xyz);
67  }
68  vtkGetVectorMacro(FocalPoint,double,3);
70 
72 
73  vtkSetMacro(Outline,int);
74  vtkGetMacro(Outline,int);
75  vtkBooleanMacro(Outline,int);
77 
79 
80  vtkSetMacro(Axes,int);
81  vtkGetMacro(Axes,int);
82  vtkBooleanMacro(Axes,int);
84 
86 
87  vtkSetMacro(XShadows,int);
88  vtkGetMacro(XShadows,int);
89  vtkBooleanMacro(XShadows,int);
91 
93 
94  vtkSetMacro(YShadows,int);
95  vtkGetMacro(YShadows,int);
96  vtkBooleanMacro(YShadows,int);
98 
100 
101  vtkSetMacro(ZShadows,int);
102  vtkGetMacro(ZShadows,int);
103  vtkBooleanMacro(ZShadows,int);
105 
107 
110  vtkSetMacro(TranslationMode,int);
111  vtkGetMacro(TranslationMode,int);
112  vtkBooleanMacro(TranslationMode,int);
114 
116 
119  vtkSetMacro(Wrap,int);
120  vtkGetMacro(Wrap,int);
121  vtkBooleanMacro(Wrap,int);
123 
125  vtkPolyData *GetFocus() {return this->Focus;};
126 
128 
129  void AllOn();
130  void AllOff();
132 
133 protected:
134  vtkCursor3D();
135  ~vtkCursor3D();
136 
138 
140  double ModelBounds[6];
141  double FocalPoint[3];
142  int Outline;
143  int Axes;
144  int XShadows;
145  int YShadows;
146  int ZShadows;
148  int Wrap;
149 
150 private:
151  vtkCursor3D(const vtkCursor3D&); // Not implemented.
152  void operator=(const vtkCursor3D&); // Not implemented.
153 };
154 
155 #endif