MoveTrackAttachmentDelta.h

Go to the documentation of this file.
00001 
00005 /* Copyright © 2010 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 DOCUMENT_MOVE_TRACK_ATTACHMENT_DELTA_H
00013 #define DOCUMENT_MOVE_TRACK_ATTACHMENT_DELTA_H
00014 
00015 #include "ChangePropertyDelta.h"
00016 
00017 #include <LinearMath/btVector3.h>
00018 
00019 namespace Document
00020 {
00021 
00024 class TrackAttachmentPositionFinder
00025     :   public PropertyDeltaIdentifier<btVector3>
00026 {
00027     public:
00032         TrackAttachmentPositionFinder(std::size_t edge_name, std::size_t attachment_name);
00033         
00041         virtual void read(const Track::Track & track, btVector3 & position);
00042         
00047         virtual void write(Track::Track & track, const btVector3 & new_position);
00048     protected:
00050         std::size_t m_edge_name;
00052         std::size_t m_attachment_name;
00053 };
00054 
00057 typedef ChangePropertyDelta<TrackAttachmentPositionFinder, btVector3> MoveTrackAttachmentDelta;
00058 
00059 } // namespace Document
00060 
00061 #endif // DOCUMENT_MOVE_TRACK_ATTACHMENT_DELTA_H

Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:11 2010 by Doxygen version 1.4.7 for Racer version svn335.