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

vtkCursor3D.h

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