Drive Engine
1.0.0
Plateforme de reconstruction 3D
|
The 2D position datatype interface. More...
#include <IPosition2D.h>
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... | |
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.
|
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.
Implemented in DriveEngine::DefaultPosition2D.
|
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.
Implemented in DriveEngine::DefaultPosition2D.
|
pure virtual |
Sets the position.
Exception safety : Strong exception safety. This member function throws exceptions.
x | The X-axis coordinate. It must be positive and must not exceed 32 767. |
y | The Y-axis coordinate. It must be positive and must not exceed 32 767. |
Implemented in DriveEngine::DefaultPosition2D.
|
pure virtual |
Sets the X-axis coordinate.
Exception safety : Strong exception safety. This member function throws exceptions.
x | The X-axis coordinate. It must be positive and cannot exceed 32 767. |
Implemented in DriveEngine::DefaultPosition2D.
|
pure virtual |
Sets the Y-axis coordinate.
Exception safety : Strong exception safety. This member function throws exceptions.
y | The Y-axis coordinate. It must be positive and cannot exceed 32 767. |
Implemented in DriveEngine::DefaultPosition2D.