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 "vtkFiltersGeneralModule.h" // For export macro 00037 #include "vtkPolyDataAlgorithm.h" 00038 00039 class VTKFILTERSGENERAL_EXPORT vtkCursor2D : public vtkPolyDataAlgorithm 00040 { 00041 public: 00042 vtkTypeMacro(vtkCursor2D,vtkPolyDataAlgorithm); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 00047 static vtkCursor2D *New(); 00048 00050 00052 void SetModelBounds(double xmin, double xmax, double ymin, double ymax, 00053 double zmin, double zmax); 00054 void SetModelBounds(double bounds[6]); 00055 vtkGetVectorMacro(ModelBounds,double,6); 00057 00059 00065 void SetFocalPoint(double x[3]); 00066 void SetFocalPoint(double x, double y, double z) 00067 { 00068 double xyz[3]; 00069 xyz[0] = x; xyz[1] = y; xyz[2] = z; 00070 this->SetFocalPoint(xyz); 00071 } 00072 vtkGetVectorMacro(FocalPoint,double,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 00092 vtkSetClampMacro(Radius,double,0.0,VTK_FLOAT_MAX); 00093 vtkGetMacro(Radius,double); 00095 00097 00098 vtkSetMacro(Point,int); 00099 vtkGetMacro(Point,int); 00100 vtkBooleanMacro(Point,int); 00102 00104 00107 vtkSetMacro(TranslationMode,int); 00108 vtkGetMacro(TranslationMode,int); 00109 vtkBooleanMacro(TranslationMode,int); 00111 00113 00116 vtkSetMacro(Wrap,int); 00117 vtkGetMacro(Wrap,int); 00118 vtkBooleanMacro(Wrap,int); 00120 00122 00123 void AllOn(); 00124 void AllOff(); 00126 00127 protected: 00128 vtkCursor2D(); 00129 ~vtkCursor2D() {} 00130 00131 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*); 00132 00133 double ModelBounds[6]; 00134 double FocalPoint[3]; 00135 int Outline; 00136 int Axes; 00137 int Point; 00138 double Radius; 00139 int TranslationMode; 00140 int Wrap; 00141 00142 private: 00143 vtkCursor2D(const vtkCursor2D&); // Not implemented. 00144 void operator=(const vtkCursor2D&); // Not implemented. 00145 }; 00146 00147 #endif