#include <CPoint.h>
Inheritance diagram for RobotFlow::CPoint:
A Point defined by its x and y coordinates in an image
Public Member Functions | |
CPoint () | |
CPoint (int _x, int _y) | |
CPoint & | operator= (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) |
|
Ctor with no args default (x,y) = (0,0) |
|
Ctor with (x,y) values |
|
Distance between two CPoints
|
|
Operator = between two CPoint
|
|
Operator == between two CPoint
|
|
Implements FD::Object. |
|
Reimplemented from FD::Object. |
|
|
|
|