#include <OPoint.hpp>
Inheritance diagram for OPoint::
Public Methods | |
OGraphic * | clone () const |
OGraphic * | create () const |
OPoint () | |
OPoint (int, int) | |
~OPoint () | |
int | getDX (OPoint &) |
int | getDY (OPoint &) |
double | euclid (OPoint &) |
void | move (int, int) |
void | scalar (double) |
OPoint | getFollowing (int) |
bool | isConnected (OPoint &) |
int | getDirection (OPoint &) |
bool | operator== (OPoint &) |
bool | operator!= (OPoint &) |
OPoint | operator+ (OPoint &) |
OPoint | operator- (OPoint &) |
OPoint | operator/ (int) |
OPoint | operator * (int) |
void | gomo (ostream &) |
void | gomi (istream &) |
void | xmlo (ostream &) |
void | svgo (ostream &) |
bool | isValid () |
void | clear () |
void | set (int, int) |
void | setX (int) |
void | setY (int) |
int | getX () |
int | getY () |
Protected Attributes | |
int | x |
int | y |
|
Constructor |
|
Constructor |
|
Destructor |
|
Clear the x;y values |
|
Clone the point object Reimplemented from OGraphic. Reimplemented in ODPoint, OExtremity, OIPoint, OJunction, and OLPoint. |
|
Create a new point object Reimplemented from OGraphic. Reimplemented in ODPoint, OExtremity, OIPoint, OJunction, and OLPoint. |
|
Euclid |
|
Get the Freeman direction to move to parameter point, or return -1 |
|
Get the p(x) - this(x) delta x |
|
Get the p(y) - this(y) delta y |
|
Get following according to the Freeman direction (0 to 7) |
|
Get the x value |
|
Get the y value |
|
GOM input Reimplemented from OGraphic. |
|
GOM output Reimplemented from OGraphic. |
|
Is connected |
|
Is valid x and y no null |
|
Move |
|
* operator |
|
!= operator |
|
+ operator |
|
|
|
/ operator |
|
== operator |
|
Scalar |
|
Set the x;y values |
|
Set the x value |
|
Set the y value |
|
SVG output Reimplemented from OGraphic. Reimplemented in OExtremity, OIPoint, OJunction, and OLPoint. |
|
XML output Reimplemented from OGraphic. |
|
|
|
|