Connection Point of a Geometric Information. More...

#include <rgeoinfo.h>

Collaboration diagram for RGeoInfoPin:
[legend]

Public Member Functions

 RGeoInfoPin (RObj2DConfigPin *pin, RGeoInfo *info)
 
int Compare (const RGeoInfoPin &pin) const
 
RPoint GetPos (void) const
 
RObj2DConfigPinGetPin (void) const
 
RGeoInfoGetInfo (void) const
 

Private Attributes

RObj2DConfigPinPin
 
RGeoInfoInfo
 

Detailed Description

Connection Point of a Geometric Information.

The RGeoInfoPin provides a representation for a particular pin of a specific geometric information. It represents a connection point used by a "real" connection.

Constructor & Destructor Documentation

RGeoInfoPin ( RObj2DConfigPin pin,
RGeoInfo info 
)

Constructor of a particular position of a pin.

Parameters
pinPin.
infoGeometric information.

Member Function Documentation

int Compare ( const RGeoInfoPin pin) const

Compare two pin instances. The pin are sorted in order to represent the path of a connection : The first pin is always the most left one and the most at the top. The last pin is always the most right one and the most at the bottom.

Parameters
pinPin used for the comparison.
Returns
a value usable by RContainer.
RPoint GetPos ( void  ) const
Returns
the position of the pin.
RObj2DConfigPin* GetPin ( void  ) const
Returns
return the pin.
RGeoInfo* GetInfo ( void  ) const
Returns
return the geometric information.

Member Data Documentation

RObj2DConfigPin* Pin
private

The pin.

RGeoInfo* Info
private

The geometric information.