Drive Engine  1.0.0
Plateforme de reconstruction 3D
DriveEngine::IPosition2D Class Referenceabstract

The 2D position datatype interface. More...

#include <IPosition2D.h>

Inheritance diagram for DriveEngine::IPosition2D:
DriveEngine::IDatatype IExportable DriveEngine::DefaultPosition2D

Public Member Functions

virtual int GetX () const =0
 Gets the X-axis coordinate. More...
 
virtual int GetY () const =0
 Gets the Y-axis coordinate. More...
 
virtual void Set (int x, int y)=0
 Sets the position. More...
 
virtual void SetX (int x)=0
 Sets the X-axis coordinate. More...
 
virtual void SetY (int y)=0
 Sets the Y-axis coordinate. More...
 
- Public Member Functions inherited from IExportable
virtual void Delete () const =0
 Deletes the current object. Needed for memory management. More...
 

Detailed Description

The 2D position datatype interface.

It minimally contain a position in Cartesian coordinate system.

A position parameter must be positive and cannot exceed 32 767.

Member Function Documentation

virtual int DriveEngine::IPosition2D::GetX ( ) const
pure virtual

Gets the X-axis coordinate.

It's value must be positive and cannot exceed 32 767.

Exception safety : No-throw guarantee. This member function never throws exceptions.

Returns
The X-axis coordinate.

Implemented in DriveEngine::DefaultPosition2D.

virtual int DriveEngine::IPosition2D::GetY ( ) const
pure virtual

Gets the Y-axis coordinate.

It's value must be positive and cannot exceed 32 767.

Exception safety : No-throw guarantee. This member function never throws exceptions.

Returns
The Y-axis coordinate.

Implemented in DriveEngine::DefaultPosition2D.

virtual void DriveEngine::IPosition2D::Set ( int  x,
int  y 
)
pure virtual

Sets the position.

Exception safety : Strong exception safety. This member function throws exceptions.

Parameters
xThe X-axis coordinate. It must be positive and must not exceed 32 767.
yThe Y-axis coordinate. It must be positive and must not exceed 32 767.

Implemented in DriveEngine::DefaultPosition2D.

virtual void DriveEngine::IPosition2D::SetX ( int  x)
pure virtual

Sets the X-axis coordinate.

Exception safety : Strong exception safety. This member function throws exceptions.

Parameters
xThe X-axis coordinate. It must be positive and cannot exceed 32 767.

Implemented in DriveEngine::DefaultPosition2D.

virtual void DriveEngine::IPosition2D::SetY ( int  y)
pure virtual

Sets the Y-axis coordinate.

Exception safety : Strong exception safety. This member function throws exceptions.

Parameters
yThe Y-axis coordinate. It must be positive and cannot exceed 32 767.

Implemented in DriveEngine::DefaultPosition2D.


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