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 "vtkPolyDataAlgorithm.h"
37 
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
46  static vtkCursor2D *New();
47 
49 
51  void SetModelBounds(double xmin, double xmax, double ymin, double ymax,
52  double zmin, double zmax);
53  void SetModelBounds(double bounds[6]);
54  vtkGetVectorMacro(ModelBounds,double,6);
56 
58 
64  void SetFocalPoint(double x[3]);
65  void SetFocalPoint(double x, double y, double z)
66  {
67  double xyz[3];
68  xyz[0] = x; xyz[1] = y; xyz[2] = z;
69  this->SetFocalPoint(xyz);
70  }
71  vtkGetVectorMacro(FocalPoint,double,3);
73 
75 
76  vtkSetMacro(Outline,int);
77  vtkGetMacro(Outline,int);
78  vtkBooleanMacro(Outline,int);
80 
82 
83  vtkSetMacro(Axes,int);
84  vtkGetMacro(Axes,int);
85  vtkBooleanMacro(Axes,int);
87 
89 
91  vtkSetClampMacro(Radius,double,0.0,VTK_LARGE_FLOAT);
92  vtkGetMacro(Radius,double);
94 
96 
97  vtkSetMacro(Point,int);
98  vtkGetMacro(Point,int);
99  vtkBooleanMacro(Point,int);
101 
103 
106  vtkSetMacro(TranslationMode,int);
107  vtkGetMacro(TranslationMode,int);
108  vtkBooleanMacro(TranslationMode,int);
110 
112 
115  vtkSetMacro(Wrap,int);
116  vtkGetMacro(Wrap,int);
117  vtkBooleanMacro(Wrap,int);
119 
121 
122  void AllOn();
123  void AllOff();
125 
126 protected:
127  vtkCursor2D();
129 
131 
132  double ModelBounds[6];
133  double FocalPoint[3];
134  int Outline;
135  int Axes;
136  int Point;
137  double Radius;
139  int Wrap;
140 
141 private:
142  vtkCursor2D(const vtkCursor2D&); // Not implemented.
143  void operator=(const vtkCursor2D&); // Not implemented.
144 };
145 
146 #endif