Sequence Chart Studio  svn HEAD revision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
DistanceMap Class Reference
Collaboration diagram for DistanceMap:
Collaboration graph

Public Member Functions

 DistanceMap (std::string name)
 
 DistanceMap ()
 
void setName (std::string name)
 
void setLengthName (std::string name)
 
void setDescription (std::string description)
 
void setIsLength (bool is_length)
 
void setShared (CoordinatePtr ptr)
 
void setIsVerticalLength (bool vertical)
 
CoordinatePtr getShared ()
 
std::string getDescription ()
 
void addDistance (Coordinate coordinate, bool absolute=false)
 
void addDistance (Coordinate coordinate1, Coordinate coordinate2, bool absolute=false)
 
std::string getId (Coordinate coordinate, bool absolute=false)
 
std::string getId (Coordinate coordinate1, Coordinate coordinate2, bool absolute=false)
 
std::string printLength (Coordinate coordinate, bool absolute=false)
 
std::string printLength (Coordinate coordinate1, Coordinate coordinate2, bool absolute=false)
 
std::string printOptParam (Coordinate coordinate, bool absolute=false)
 
std::string printOptParam (Coordinate coordinate1, Coordinate coordinate2, bool absolute=false)
 
std::string print ()
 
bool empty ()
 

Private Member Functions

Coordinate absoluteCoordinate (Coordinate coordinate, bool absolute)
 
Coordinate getDiference (Coordinate coordinate1, Coordinate coordinate2)
 

Private Attributes

bool m_is_length
 
bool m_is_vertical_length
 
CoordinatePtr m_last
 
std::map< Coordinate, int,
Compare
distance_map
 
std::string m_name
 
std::string m_description
 
std::string m_length_name
 

Detailed Description

Definition at line 161 of file exportTex.cpp.

Constructor & Destructor Documentation

DistanceMap::DistanceMap ( std::string  name)
inline

Definition at line 186 of file exportTex.cpp.

References DistanceMap(), and m_name.

DistanceMap::DistanceMap ( )
inline

Definition at line 192 of file exportTex.cpp.

References m_is_length, m_is_vertical_length, and m_last.

Referenced by DistanceMap().

Member Function Documentation

Coordinate DistanceMap::absoluteCoordinate ( Coordinate  coordinate,
bool  absolute 
)
inlineprivate

Definition at line 172 of file exportTex.cpp.

Referenced by addDistance(), and getId().

void DistanceMap::addDistance ( Coordinate  coordinate,
bool  absolute = false 
)
inline
void DistanceMap::addDistance ( Coordinate  coordinate1,
Coordinate  coordinate2,
bool  absolute = false 
)
inline

Definition at line 260 of file exportTex.cpp.

References addDistance(), and getDiference().

bool DistanceMap::empty ( )
inline

Definition at line 375 of file exportTex.cpp.

References distance_map.

std::string DistanceMap::getDescription ( )
inline

Definition at line 244 of file exportTex.cpp.

References m_description, and result.

Referenced by PrintBmsc::print_slope(), and PrintBmsc::print_time_slope().

Coordinate DistanceMap::getDiference ( Coordinate  coordinate1,
Coordinate  coordinate2 
)
inlineprivate

Definition at line 179 of file exportTex.cpp.

References Compare::round().

Referenced by addDistance(), getId(), printLength(), and printOptParam().

std::string DistanceMap::getId ( Coordinate  coordinate,
bool  absolute = false 
)
inline
std::string DistanceMap::getId ( Coordinate  coordinate1,
Coordinate  coordinate2,
bool  absolute = false 
)
inline

Definition at line 292 of file exportTex.cpp.

References getDiference(), and getId().

CoordinatePtr DistanceMap::getShared ( )
inline

Definition at line 239 of file exportTex.cpp.

References m_last.

Referenced by PrintBmsc::PrintBmsc().

std::string DistanceMap::print ( )
inline
std::string DistanceMap::printLength ( Coordinate  coordinate,
bool  absolute = false 
)
inline
std::string DistanceMap::printLength ( Coordinate  coordinate1,
Coordinate  coordinate2,
bool  absolute = false 
)
inline

Definition at line 308 of file exportTex.cpp.

References getDiference(), and printLength().

std::string DistanceMap::printOptParam ( Coordinate  coordinate,
bool  absolute = false 
)
inline
std::string DistanceMap::printOptParam ( Coordinate  coordinate1,
Coordinate  coordinate2,
bool  absolute = false 
)
inline

Definition at line 321 of file exportTex.cpp.

References getDiference(), and printOptParam().

void DistanceMap::setDescription ( std::string  description)
inline

Definition at line 218 of file exportTex.cpp.

References m_description.

Referenced by PrintBmsc::PrintBmsc(), and PrintHmsc::PrintHmsc().

void DistanceMap::setIsLength ( bool  is_length)
inline

Definition at line 224 of file exportTex.cpp.

References m_is_length.

Referenced by PrintBmsc::PrintBmsc(), and PrintHmsc::PrintHmsc().

void DistanceMap::setIsVerticalLength ( bool  vertical)
inline

Definition at line 234 of file exportTex.cpp.

References m_is_vertical_length.

Referenced by PrintBmsc::PrintBmsc(), and PrintHmsc::PrintHmsc().

void DistanceMap::setLengthName ( std::string  name)
inline

Definition at line 212 of file exportTex.cpp.

References m_length_name.

Referenced by PrintBmsc::PrintBmsc(), and PrintHmsc::PrintHmsc().

void DistanceMap::setName ( std::string  name)
inline

Because not every lenght in Msc.sty has different identificator, it muss supported set last used lenght from outside class (slope is set as levelheight!)

Definition at line 206 of file exportTex.cpp.

References m_name.

Referenced by PrintBmsc::PrintBmsc(), and PrintHmsc::PrintHmsc().

void DistanceMap::setShared ( CoordinatePtr  ptr)
inline

Definition at line 229 of file exportTex.cpp.

References m_last.

Referenced by PrintBmsc::PrintBmsc().

Member Data Documentation

std::map<Coordinate,int,Compare> DistanceMap::distance_map
private

Definition at line 167 of file exportTex.cpp.

Referenced by addDistance(), empty(), getId(), and print().

std::string DistanceMap::m_description
private

Definition at line 169 of file exportTex.cpp.

Referenced by getDescription(), print(), and setDescription().

bool DistanceMap::m_is_length
private

Definition at line 164 of file exportTex.cpp.

Referenced by DistanceMap(), print(), and setIsLength().

bool DistanceMap::m_is_vertical_length
private

Definition at line 165 of file exportTex.cpp.

Referenced by DistanceMap(), print(), and setIsVerticalLength().

CoordinatePtr DistanceMap::m_last
private

Definition at line 166 of file exportTex.cpp.

Referenced by DistanceMap(), getShared(), print(), printLength(), printOptParam(), and setShared().

std::string DistanceMap::m_length_name
private

Definition at line 170 of file exportTex.cpp.

Referenced by print(), printLength(), and setLengthName().

std::string DistanceMap::m_name
private

Definition at line 168 of file exportTex.cpp.

Referenced by DistanceMap(), getId(), and setName().


The documentation for this class was generated from the following file:

SourceForge.net Logo
Generated on Fri Jan 15 2016 16:26:58 for Sequence Chart Studio by  doxygen