PathEdgeEnd.h

Go to the documentation of this file.
00001 
00005 /* Copyright © 2009, 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 LIBTRACK_PATH_PATH_EDGE_END_H
00013 #define LIBTRACK_PATH_PATH_EDGE_END_H
00014 
00015 #include <ostream>
00016 #include <istream>
00017 
00018 #include <LinearMath/btScalar.h>
00019 
00020 #include "../Segment.h"
00021 #include "../SegmentConnection.h"
00022 #include "../edit_base/EdgeStrengthHandle.h"
00023 
00024 namespace Track
00025 {
00026 
00030 class PathEdgeEnd
00031 {
00032     friend std::ostream & operator<<(std::ostream & destination,
00033                                      const PathEdgeEnd & path_edge_end);
00034 public:
00039     PathEdgeEnd(std::size_t edge_index, EditAssist::EdgeStrengthHandle::EdgeEnd end);
00040     
00047     PathEdgeEnd(std::istream & source,
00048                 std::size_t edge_index,
00049                 EditAssist::EdgeStrengthHandle::EdgeEnd end);
00050     
00051     virtual ~PathEdgeEnd();
00052     
00056     btScalar gradient_strength;
00057     
00059     std::size_t segment_connection_index;
00060     
00066 
00067     EditAssist::EdgeStrengthHandle handle;
00068 protected:
00069     unsigned int file_version;
00070 };
00071 
00072 std::ostream & operator<<(std::ostream & destination,
00073                           const PathEdgeEnd & path_edge_end);
00074 
00075 }
00076 
00077 #endif // LIBTRACK_PATH_PATH_EDGE_END_H

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

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