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 LIBTRACK_EDIT_BASE_LINE_CONSTRAINED_CONTROL_POINT_H 00012 #define LIBTRACK_EDIT_BASE_LINE_CONSTRAINED_CONTROL_POINT_H 00013 00014 #include "ControlPoint.h" 00015 00016 namespace Track 00017 { 00018 00019 namespace EditAssist 00020 { 00021 00024 class LineConstrainedControlPoint 00025 : public ControlPoint 00026 { 00027 public: 00031 LineConstrainedControlPoint(); 00032 00033 virtual ~LineConstrainedControlPoint(); 00034 00042 virtual void snap(btVector3 & position, btVector3 normal) const; 00043 00044 virtual void draw() const; 00045 protected: 00053 LineConstrainedControlPoint(bool allow_before_start, bool allow_after_end); 00054 00056 btVector3 start; 00058 btVector3 stop; 00060 bool allow_before_start; 00062 bool allow_after_end; 00063 }; 00064 00065 } // EditAssist namespace 00066 00067 } // Track namespace 00068 00069 #endif // LIBTRACK_EDIT_BASE_LINE_CONSTRAINED_CONTROL_POINT_H
Generated at Mon Sep 6 00:41:11 2010 by Doxygen version 1.4.7 for Racer version svn335.