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

2D coordinates in millimeters, having [0,0] upper left More...

#include <msc_types.h>

Collaboration diagram for MscPoint:
Collaboration graph

Public Member Functions

 MscPoint (Coordinate x=0, Coordinate y=0)
 
Coordinate get_x () const
 
void set_x (Coordinate x)
 
Coordinate get_y () const
 
void set_y (Coordinate y)
 
MscPoint operator+ (const MscPoint &p2) const
 
MscPoint operator- (const MscPoint &p2) const
 
bool operator< (const MscPoint &p2) const
 

Private Attributes

Coordinate m_x
 
Coordinate m_y
 

Detailed Description

2D coordinates in millimeters, having [0,0] upper left

Definition at line 117 of file msc_types.h.

Constructor & Destructor Documentation

MscPoint::MscPoint ( Coordinate  x = 0,
Coordinate  y = 0 
)
inline

Definition at line 125 of file msc_types.h.

References m_x, and m_y.

Referenced by operator+(), and operator-().

Member Function Documentation

Coordinate MscPoint::get_x ( ) const
inline
Coordinate MscPoint::get_y ( ) const
inline
MscPoint MscPoint::operator+ ( const MscPoint p2) const
inline

Definition at line 151 of file msc_types.h.

References m_x, m_y, and MscPoint().

MscPoint MscPoint::operator- ( const MscPoint p2) const
inline

Definition at line 156 of file msc_types.h.

References m_x, m_y, and MscPoint().

bool MscPoint::operator< ( const MscPoint p2) const
inline

Definition at line 161 of file msc_types.h.

References fcmp(), m_x, and m_y.

void MscPoint::set_x ( Coordinate  x)
inline
void MscPoint::set_y ( Coordinate  y)
inline

Member Data Documentation

Coordinate MscPoint::m_x
private

Definition at line 120 of file msc_types.h.

Referenced by get_x(), MscPoint(), operator+(), operator-(), operator<(), and set_x().

Coordinate MscPoint::m_y
private

Definition at line 121 of file msc_types.h.

Referenced by get_y(), MscPoint(), operator+(), operator-(), operator<(), and set_y().


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

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