|
Public Member Functions |
| CRect () |
| CRect (int x1, int y1, int x2, int y2) |
| CRect (const CRect &r) |
| CRect (CPoint &p1, CPoint &p2) |
virtual | ~CRect () |
void | cell_cleanup () |
void | IntersectRect (CRect &inter, const CRect &rect2) |
void | UnionRect (CRect &uni, const CRect &rect2) |
void | SetRect (CPoint &p1, CPoint &p2) |
bool | IsRectEmpty () const |
int | Height () const |
int | Width () const |
int | MeanCellWidth (int *pCellMin, int *pCellMax, int nSize, int nWidthMax) |
float | MeanCellWidth () |
int | Area () const |
CPoint | TopLeft () |
CPoint | BottomRight () |
bool | operator== (const CRect &rect) const |
bool | operator< (const CRect &rect) |
bool | operator> (const CRect &rect) |
CRect & | operator= (const CRect &rect) |
void | add_cell (ImageCell *cell, bool update=false, bool serialized=false) |
std::list< ImageCell * > & | get_cell_list () |
void | set_values (int x1, int y1, int x2, int y2) |
void | get_values (int &x1, int &y1, int &x2, int &y2) |
bool | inside (CRect *rect) |
void | center_of_gravity () |
void | get_center_of_gravity (double ¢er_x, double ¢er_y) |
void | printOn (std::ostream &out=std::cout) const |
void | readFrom (std::istream &in) |
void | merge (CRect *rect) |
double | dist (CRect *rect) |
double | dist (double x, double y) |
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 () |
Protected Attributes |
AtomicCounter | ref_count |
Private Attributes |
double | m_center_y |
| Center of gravity y.
|
double | m_center_x |
| Center of gravity x.
|
int | m_area |
| Area of the ImageCells.
|
int | m_x1 |
| ulx
|
int | m_y1 |
| uly
|
int | m_x2 |
| lrx
|
int | m_y2 |
| lry
|
std::list< ImageCell * > | m_cell_list |
| The list of cells.
|
std::list< ImageCell * > | m_serialized_list |
| The temp serialized cells list.
|
Friends |
friend std::ostream & | operator<< (std::ostream &out, const Object &obj) |