00001 00005 /* Copyright © 2009 James Legg. 00006 This program is free software: you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation, either version 3 of the License, or 00009 (at your option) any later version. 00010 */ 00011 #ifndef ROTATION_HANDLE_H_ 00012 #define ROTATION_HANDLE_H_ 00013 00014 #include "ControlPoint.h" 00015 00016 namespace Track 00017 { 00018 00019 namespace EditAssist 00020 { 00021 00025 class RotationHandle 00026 : public ControlPoint 00027 { 00028 public: 00037 virtual void snap(btVector3 & position, btVector3 normal) const; 00038 00039 virtual void draw() const; 00040 00044 void set_length(btScalar new_length); 00045 00048 void set_centre(btVector3 new_centre); 00049 protected: 00050 btVector3 centre; 00051 btScalar length; 00052 }; 00053 00054 } 00055 00056 } 00057 00058 #endif // ROTATION_HANDLE_H_
Generated at Mon Sep 6 00:41:11 2010 by Doxygen version 1.4.7 for Racer version svn335.