VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkFixedSizeHandleRepresentation.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 =========================================================================*/ 00035 #ifndef __vtkFixedSizeHandleRepresentation3D_h 00036 #define __vtkFixedSizeHandleRepresentation3D_h 00037 00038 #include "vtkPolygonalHandleRepresentation3D.h" 00039 00040 class vtkSphereSource; 00041 00042 class VTK_WIDGETS_EXPORT vtkFixedSizeHandleRepresentation3D : public vtkPolygonalHandleRepresentation3D 00043 { 00044 public: 00045 00047 static vtkFixedSizeHandleRepresentation3D *New(); 00048 00050 00051 vtkTypeMacro(vtkFixedSizeHandleRepresentation3D, 00052 vtkPolygonalHandleRepresentation3D); 00053 void PrintSelf(ostream& os, vtkIndent indent); 00055 00057 00058 vtkGetObjectMacro( SphereSource, vtkSphereSource ); 00060 00062 00064 vtkSetMacro( HandleSizeInPixels, double ); 00065 vtkGetMacro( HandleSizeInPixels, double ); 00067 00069 00074 vtkSetMacro( HandleSizeToleranceInPixels, double ); 00075 vtkGetMacro( HandleSizeToleranceInPixels, double ); 00077 00078 protected: 00079 vtkFixedSizeHandleRepresentation3D(); 00080 ~vtkFixedSizeHandleRepresentation3D(); 00081 00083 virtual void BuildRepresentation(); 00084 00086 void WorldToDisplay( double w[4], double d[4] ); 00087 00089 void DisplayToWorld( double d[4], double w[4] ); 00090 00091 vtkSphereSource * SphereSource; 00092 double HandleSizeInPixels; 00093 double HandleSizeToleranceInPixels; 00094 00095 private: 00096 vtkFixedSizeHandleRepresentation3D(const vtkFixedSizeHandleRepresentation3D&); //Not implemented 00097 void operator=(const vtkFixedSizeHandleRepresentation3D&); //Not implemented 00098 }; 00099 00100 #endif