VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkCursor2D.h 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 =========================================================================*/ 00033 #ifndef __vtkCursor2D_h 00034 #define __vtkCursor2D_h 00035 00036 #include "vtkPolyDataAlgorithm.h" 00037 00038 class VTK_GRAPHICS_EXPORT vtkCursor2D : public vtkPolyDataAlgorithm 00039 { 00040 public: 00041 vtkTypeMacro(vtkCursor2D,vtkPolyDataAlgorithm); 00042 void PrintSelf(ostream& os, vtkIndent indent); 00043 00046 static vtkCursor2D *New(); 00047 00049 00051 void SetModelBounds(double xmin, double xmax, double ymin, double ymax, 00052 double zmin, double zmax); 00053 void SetModelBounds(double bounds[6]); 00054 vtkGetVectorMacro(ModelBounds,double,6); 00056 00058 00064 void SetFocalPoint(double x[3]); 00065 void SetFocalPoint(double x, double y, double z) 00066 { 00067 double xyz[3]; 00068 xyz[0] = x; xyz[1] = y; xyz[2] = z; 00069 this->SetFocalPoint(xyz); 00070 } 00071 vtkGetVectorMacro(FocalPoint,double,3); 00073 00075 00076 vtkSetMacro(Outline,int); 00077 vtkGetMacro(Outline,int); 00078 vtkBooleanMacro(Outline,int); 00080 00082 00083 vtkSetMacro(Axes,int); 00084 vtkGetMacro(Axes,int); 00085 vtkBooleanMacro(Axes,int); 00087 00089 00091 vtkSetClampMacro(Radius,double,0.0,VTK_LARGE_FLOAT); 00092 vtkGetMacro(Radius,double); 00094 00096 00097 vtkSetMacro(Point,int); 00098 vtkGetMacro(Point,int); 00099 vtkBooleanMacro(Point,int); 00101 00103 00106 vtkSetMacro(TranslationMode,int); 00107 vtkGetMacro(TranslationMode,int); 00108 vtkBooleanMacro(TranslationMode,int); 00110 00112 00115 vtkSetMacro(Wrap,int); 00116 vtkGetMacro(Wrap,int); 00117 vtkBooleanMacro(Wrap,int); 00119 00121 00122 void AllOn(); 00123 void AllOff(); 00125 00126 protected: 00127 vtkCursor2D(); 00128 ~vtkCursor2D() {} 00129 00130 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*); 00131 00132 double ModelBounds[6]; 00133 double FocalPoint[3]; 00134 int Outline; 00135 int Axes; 00136 int Point; 00137 double Radius; 00138 int TranslationMode; 00139 int Wrap; 00140 00141 private: 00142 vtkCursor2D(const vtkCursor2D&); // Not implemented. 00143 void operator=(const vtkCursor2D&); // Not implemented. 00144 }; 00145 00146 #endif