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 00012 #ifndef MOVE_NODE_DELTA_H_ 00013 #define MOVE_NODE_DELTA_H_ 00014 00015 #include "ChangePropertyDelta.h" 00016 00017 #include <LinearMath/btVector3.h> 00018 00019 namespace Document 00020 { 00021 00024 class NodePositionFinder : public PropertyDeltaIdentifier<btVector3> 00025 { 00026 public: 00030 NodePositionFinder(std::size_t node_id); 00035 virtual void read(const Track::Track & track, btVector3 & position); 00040 virtual void write(Track::Track & track, const btVector3 & new_position); 00041 protected: 00043 std::size_t node_id; 00044 }; 00045 00048 typedef ChangePropertyDelta<NodePositionFinder, btVector3> MoveNodeDelta; 00049 00050 } 00051 00052 #endif
Generated at Mon Sep 6 00:41:11 2010 by Doxygen version 1.4.7 for Racer version svn335.