4 #include "GVONormalizedPoint.h"
9 typedef std::vector<GVONormalizedPoint> Line;
10 typedef std::deque<Line> Lines;
13 double m_length = 0.0;
14 bool m_favorite = false;
15 bool m_hilight = false;
16 bool m_fixed = false; //!<@brief
\8dq
\98H
\8cÅ
\92è
\83t
\83\89\83O
18 std::time_t m_earliestDateTime = std::time_t();
19 std::time_t m_latestDateTime = std::time_t();
22 GVOShipRoute() = default;
23 ~GVOShipRoute() = default;
25 //!@attention
\8cÅ
\92è
\82³
\82ê
\82½
\8dq
\98H
\82É
\8dÀ
\95W
\82ð
\92Ç
\89Á
\82µ
\82Ä
\82Í
\82È
\82ç
\82È
\82¢
\81B
\83\8d\83W
\83b
\83N
\83G
\83\89\81[
\82È
\82Ì
\82ÅDebug
\8e\9e\82Ì
\82Ý
\83G
\83\89\81[
\82Æ
\82µ
\82Ä
\82¢
\82é
\81B
26 void addRoutePoint( const GVONormalizedPoint & point );
28 const Lines & getLines() const
33 bool isFavorite() const
38 void setFavorite( bool favorite )
40 m_favorite = favorite;
43 bool isHilight() const
48 void setHilight( bool hilight )
53 //!@brief srcRoute
\82Ì
\95Û
\8e\9d\82·
\82é
\8dq
\98H
\82ð
\91S
\82Ä
\91O
\82É
\98A
\8c\8b\82·
\82é
\81B
54 void jointPreviousLinesWithRoute( const GVOShipRoute & srcRoute );
56 bool isEmptyRoute() const
58 if ( m_lines.empty() ) {
62 //
\82P
\82Â
\82Å
\82à
\93_
\82ð
\95Û
\8e\9d\82µ
\82Ä
\82¢
\82ê
\82Î
\8bó
\8dq
\98H
\82Å
\82Í
\82È
\82¢
\82Æ
\94»
\92f
\82·
\82é
63 for ( auto line : m_lines ) {
64 if ( !line.empty() ) {
76 void setFix( bool isFixed)
86 std::time_t earliestDateTime() const
88 return m_earliestDateTime;
91 //
\82¿
\82å
\82Á
\82Æ
\89\98\82¢
\82©
\82È
\81[
92 void setEarliestDateTime( const std::time_t dateTime )
94 m_earliestDateTime = dateTime;
97 //
\82¿
\82å
\82Á
\82Æ
\89\98\82¢
\82©
\82È
\81[
98 std::time_t latestDateTime() const
100 return m_latestDateTime;
103 //
\82¿
\82å
\82Á
\82Æ
\89\98\82¢
\82©
\82È
\81[
104 void setLatestDateTime( const std::time_t dateTime )
106 m_latestDateTime = dateTime;
109 //
\82¿
\82å
\82Á
\82Æ
\89\98\82¢
\82©
\82È
\81[
110 void addLine( Line & line )
112 m_lines.push_back( line );
114 void addLine( Line && line )
116 m_lines.push_back( line );
121 typedef std::shared_ptr<GVOShipRoute> GVOShipRoutePtr;
122 typedef std::weak_ptr<GVOShipRoute> GVOShipRouteWeakPtr;