]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/track.h
Add a utility function to get path length from Track
[r2c2.git] / source / libr2c2 / track.h
index 994712da8c43cc2171cf340cb624cf55aa53bbd4..79365afbcceb04c8d1e291ab7b37fee54d85c9a9 100644 (file)
@@ -77,9 +77,10 @@ public:
        void set_active_path(unsigned);
        unsigned get_active_path() const { return active_path; }
        bool is_path_changing() const { return path_changing; }
+       float get_path_length(int = -1) const;
 
-       TrackPoint get_point(unsigned, unsigned, float) const;
-       TrackPoint get_point(unsigned, float) const;
+       OrientedPoint get_point(unsigned, unsigned, float) const;
+       OrientedPoint get_point(unsigned, float) const;
 
        virtual unsigned get_n_snap_nodes() const;
        virtual Snap get_snap_node(unsigned) const;
@@ -99,6 +100,7 @@ public:
        void add_attachment(TrackAttachment &);
        void remove_attachment(TrackAttachment &);
        const AttachmentList &get_attachments() const { return attachments; }
+       AttachmentList get_attachments_ordered(unsigned) const;
 
        void save(std::list<Msp::DataFile::Statement> &) const;
 private: