Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

RobotFlow::CPoint Class Reference

#include <CPoint.h>

Inheritance diagram for RobotFlow::CPoint:

Inheritance graph
[legend]
Collaboration diagram for RobotFlow::CPoint:

Collaboration graph
[legend]

Detailed Description

CPoint.

A Point defined by its x and y coordinates in an image

Author:
Dominic Letourneau
Version:
Revision
1.5
{verbatim} Creation : 21/02/2001 Last Modification:
Date
2005/03/29 15:20:47
{verbatim}


Public Member Functions

 CPoint ()
 CPoint (int _x, int _y)
CPointoperator= (const CPoint &pt)
bool operator== (const CPoint &pt)
double dist (const CPoint &pt)
virtual void printOn (std::ostream &out=std::cout) const
virtual void readFrom (std::istream &in)
void ref ()
void unref ()
int unique ()
virtual void destroy ()
virtual void serialize (std::ostream &out) const
virtual void unserialize (std::istream &in)
virtual void doesNotUnderstand (std::string method)
virtual bool isNil () const
virtual void prettyPrint (std::ostream &out=std::cout) const
virtual ObjectRef clone ()
virtual std::string className () const

Static Public Member Functions

static ObjectRef newObject (const std::string &objType)
static int addObjectType (const std::string &objType, _ObjectFactory *factory)
static std::map< std::string,
_ObjectFactory * > & 
ObjectFactoryDictionary ()
static TypeMap< _ObjectFactory * > & TypeidDictionary ()

Data Fields

int x
 The x value.
int y
 The y value.

Protected Attributes

AtomicCounter ref_count

Friends

friend std::ostream & operator<< (std::ostream &out, const Object &obj)


Constructor & Destructor Documentation

RobotFlow::CPoint::CPoint  ) 
 

Ctor with no args default (x,y) = (0,0)

RobotFlow::CPoint::CPoint int  _x,
int  _y
 

Ctor with (x,y) values


Member Function Documentation

double RobotFlow::CPoint::dist const CPoint pt  ) 
 

Distance between two CPoints

Parameters:
pt a CPoint
Returns:
double the distance

CPoint & RobotFlow::CPoint::operator= const CPoint pt  ) 
 

Operator = between two CPoint

Parameters:
pt CPoint to equals
Returns:
CPoint as rvalue

bool RobotFlow::CPoint::operator== const CPoint pt  ) 
 

Operator == between two CPoint

Returns:
bool if Cpoints are identical

virtual void RobotFlow::CPoint::printOn std::ostream &  out = std::cout  )  const [virtual]
 

Implements FD::Object.

virtual void RobotFlow::CPoint::readFrom std::istream &  in  )  [virtual]
 

Reimplemented from FD::Object.


Field Documentation

int RobotFlow::CPoint::x
 

int RobotFlow::CPoint::y
 


The documentation for this class was generated from the following files:
Generated on Wed Oct 5 14:36:33 2005 for RobotFlow by  doxygen 1.4.4