Configuration of a Pin. More...

#include <robj2dconfig.h>

Collaboration diagram for RObj2DConfigPin:
[legend]

Public Member Functions

 RObj2DConfigPin (RObj2DPin *pin, const RRect &rect)
 
int Compare (const RObj2DConfigPin &pin) const
 
int Compare (const size_t pin) const
 
RRect GetRect (void) const
 
RPoint GetPos (void) const
 
RObj2DPinGetPin (void) const
 

Private Attributes

RObj2DPinPin
 
RRect Rect
 
RPoint Pos
 

Detailed Description

Configuration of a Pin.

The RObj2DPinConfig represents a possible configuration of a pin for a particular connector.

Constructor & Destructor Documentation

RObj2DConfigPin ( RObj2DPin pin,
const RRect rect 
)

Constructor of a particular configuration of a pin.

Parameters
pinPin.
rectRectangle representing the pin.

Member Function Documentation

int Compare ( const RObj2DConfigPin pin) const

Compare two pin configuration.

Parameters
pinPin to compare with.
Returns
a value used by RContainer.
int Compare ( const size_t  pin) const

Compare a pin configuration with an identifier.

Parameters
pinIdentifier of the pin.
Returns
a value used by RContainer.
RRect GetRect ( void  ) const
Returns
the rectangle of the pin for the particular configuration.
RPoint GetPos ( void  ) const
Returns
the position of the pin for the particular configuration.
RObj2DPin* GetPin ( void  ) const
Returns
return the pin.

Member Data Documentation

RObj2DPin* Pin
private

The corresponding pin.

RRect Rect
private

Rectangle representing the pin.

RPoint Pos
private

Position of the pin.