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:
135  vtkCursor3D();
136  ~vtkCursor3D();
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
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
vtkPolyData * GetFocus()
Definition: vtkCursor3D.h:126
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSGENERAL_EXPORT
void SetFocalPoint(double x, double y, double z)
Definition: vtkCursor3D.h:63
Store zero or more vtkInformation instances.
generate a 3D cursor representation
Definition: vtkCursor3D.h:38
vtkPolyData * Focus
Definition: vtkCursor3D.h:140
int TranslationMode
Definition: vtkCursor3D.h:148