Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

OPoint Class Reference

#include <OPoint.hpp>

Inheritance diagram for OPoint::

OGraphic ODPoint OExtremity OIPoint OJunction OLPoint List of all members.

Public Methods

OGraphicclone () const
OGraphiccreate () 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

Detailed Description

OPoint object
Examples:

PExample.cpp.


Constructor & Destructor Documentation

OPoint::OPoint  
 

Constructor

OPoint::OPoint int    x,
int    y
 

Constructor

OPoint::~OPoint  
 

Destructor


Member Function Documentation

void OPoint::clear   [inline]
 

Clear the x;y values

Reimplemented in ODPoint, and OLPoint.

OGraphic * OPoint::clone   const [inline, virtual]
 

Clone the point object

Reimplemented from OGraphic.

Reimplemented in ODPoint, OExtremity, OIPoint, OJunction, and OLPoint.

OGraphic * OPoint::create   const [inline, virtual]
 

Create a new point object

Reimplemented from OGraphic.

Reimplemented in ODPoint, OExtremity, OIPoint, OJunction, and OLPoint.

double OPoint::euclid OPoint &    p
 

Euclid

int OPoint::getDirection OPoint &    p
 

Get the Freeman direction to move to parameter point, or return -1

int OPoint::getDX OPoint &    p
 

Get the p(x) - this(x) delta x

int OPoint::getDY OPoint &    p
 

Get the p(y) - this(y) delta y

OPoint OPoint::getFollowing int    d
 

Get following according to the Freeman direction (0 to 7)

int OPoint::getX   [inline]
 

Get the x value

int OPoint::getY   [inline]
 

Get the y value

void OPoint::gomi istream &    is [virtual]
 

GOM input

Reimplemented from OGraphic.

Reimplemented in ODPoint, and OLPoint.

void OPoint::gomo ostream &    os [virtual]
 

GOM output

Reimplemented from OGraphic.

Reimplemented in ODPoint, and OLPoint.

bool OPoint::isConnected OPoint &    p
 

Is connected

bool OPoint::isValid   [inline]
 

Is valid x and y no null

Reimplemented in ODPoint, and OLPoint.

void OPoint::move int    dx,
int    dy
 

Move

OPoint OPoint::operator * int    v
 

* operator

bool OPoint::operator!= OPoint &    p
 

!= operator

OPoint OPoint::operator+ OPoint &    p
 

+ operator

OPoint OPoint::operator- OPoint &    p
 

  • operator

OPoint OPoint::operator/ int    v
 

/ operator

bool OPoint::operator== OPoint &    p
 

== operator

void OPoint::scalar double    a
 

Scalar

void OPoint::set int    x,
int    y
[inline]
 

Set the x;y values

void OPoint::setX int    x [inline]
 

Set the x value

void OPoint::setY int    y [inline]
 

Set the y value

void OPoint::svgo ostream &    os [virtual]
 

SVG output

Reimplemented from OGraphic.

Reimplemented in OExtremity, OIPoint, OJunction, and OLPoint.

void OPoint::xmlo ostream &    os [virtual]
 

XML output

Reimplemented from OGraphic.

Reimplemented in ODPoint, and OLPoint.


Member Data Documentation

int OPoint::x [protected]
 

int OPoint::y [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Jul 30 19:21:03 2004 for GOMLib by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001