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 ROTATE_VERTEX_DELTA_H_ 00013 #define ROTATE_VERTEX_DELTA_H_ 00014 00015 #include <cstddef> 00016 00017 #include <LinearMath/btQuaternion.h> 00018 00019 #include "ChangePropertyDelta.h" 00020 00021 namespace Document 00022 { 00023 00026 class VertexAngleFinder 00027 : public PropertyDeltaIdentifier<btQuaternion> 00028 { 00029 public: 00033 VertexAngleFinder(std::size_t vertex_id); 00038 virtual void read(const Track::Track & track, btQuaternion & angle); 00045 virtual void write(Track::Track & track, const btQuaternion & new_angle); 00046 protected: 00048 std::size_t vertex_id; 00049 }; 00050 00053 typedef ChangePropertyDelta<VertexAngleFinder, btQuaternion> RotateVertexDelta; 00054 00055 } 00056 00057 #endif // ROTATE_VERTEX_DELTA_H_
Generated at Mon Sep 6 00:41:11 2010 by Doxygen version 1.4.7 for Racer version svn335.