Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Graphics/vtkCursor3D.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkCursor3D.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00036 #ifndef __vtkCursor3D_h
00037 #define __vtkCursor3D_h
00038 
00039 #include "vtkPolyDataSource.h"
00040 
00041 class VTK_GRAPHICS_EXPORT vtkCursor3D : public vtkPolyDataSource 
00042 {
00043 public:
00044   vtkTypeRevisionMacro(vtkCursor3D,vtkPolyDataSource);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00049   static vtkCursor3D *New();
00050 
00052 
00053   void SetModelBounds(float xmin, float xmax, float ymin, float ymax, 
00054                       float zmin, float zmax);
00055   void SetModelBounds(float bounds[6]);
00056   vtkGetVectorMacro(ModelBounds,float,6);
00058 
00060 
00065   void SetFocalPoint(float x[3]);
00066   void SetFocalPoint(float x, float y, float z)
00067     {
00068       float xyz[3];
00069       xyz[0] = x; xyz[1] = y; xyz[2] = z;
00070       this->SetFocalPoint(xyz);
00071     }
00072   vtkGetVectorMacro(FocalPoint,float,3);
00074 
00076 
00077   vtkSetMacro(Outline,int);
00078   vtkGetMacro(Outline,int);
00079   vtkBooleanMacro(Outline,int);
00081 
00083 
00084   vtkSetMacro(Axes,int);
00085   vtkGetMacro(Axes,int);
00086   vtkBooleanMacro(Axes,int);
00088 
00090 
00091   vtkSetMacro(XShadows,int);
00092   vtkGetMacro(XShadows,int);
00093   vtkBooleanMacro(XShadows,int);
00095 
00097 
00098   vtkSetMacro(YShadows,int);
00099   vtkGetMacro(YShadows,int);
00100   vtkBooleanMacro(YShadows,int);
00102 
00104 
00105   vtkSetMacro(ZShadows,int);
00106   vtkGetMacro(ZShadows,int);
00107   vtkBooleanMacro(ZShadows,int);
00109 
00111 
00114   vtkSetMacro(TranslationMode,int);
00115   vtkGetMacro(TranslationMode,int);
00116   vtkBooleanMacro(TranslationMode,int);
00118 
00120 
00123   vtkSetMacro(Wrap,int);
00124   vtkGetMacro(Wrap,int);
00125   vtkBooleanMacro(Wrap,int);
00127 
00129   vtkPolyData *GetFocus() {return (vtkPolyData *)this->Focus;};
00130 
00132 
00133   void AllOn();
00134   void AllOff();
00136 
00137 protected:
00138   vtkCursor3D();
00139   ~vtkCursor3D();
00140 
00141   void Execute();
00142 
00143   vtkPolyData *Focus;
00144   float ModelBounds[6];
00145   float FocalPoint[3];
00146   int Outline;
00147   int Axes;
00148   int XShadows;
00149   int YShadows;
00150   int ZShadows;
00151   int TranslationMode;
00152   int Wrap;
00153   
00154 private:
00155   vtkCursor3D(const vtkCursor3D&);  // Not implemented.
00156   void operator=(const vtkCursor3D&);  // Not implemented.
00157 };
00158 
00159 #endif
00160 
00161