Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes

BaseMapObject Class Reference

Inheritance diagram for BaseMapObject:
NamedObject CallBacker

List of all members.

Public Member Functions

 BaseMapObject (const char *nm)
virtual const char * getType () const =0
virtual void updateGeometry ()
virtual void setDepth (int val)
virtual int getDepth () const
virtual int nrShapes () const
virtual const char * getShapeName (int shapeidx) const
virtual void getPoints (int shapeidx, TypeSet< Coord > &) const
virtual char connectPoints (int shapeidx) const
virtual const ColorgetColor (int shapeidx) const
virtual const OD::RGBImagegetImage (Coord &origin, Coord &p11) const
virtual const OD::RGBImagegetPreview (int approxdiagonal) const

Static Public Member Functions

static char cDontConnect ()
static char cConnect ()
static char cPolygon ()
static char cFilledPolygon ()

Public Attributes

Notifier< BaseMapObjectchanged

Protected Attributes

int depth_

Detailed Description

Object that can be painted in a basemap.


Constructor & Destructor Documentation

BaseMapObject::BaseMapObject ( const char *  nm  ) 

Member Function Documentation

static char BaseMapObject::cConnect (  )  [inline, static]
static char BaseMapObject::cDontConnect (  )  [inline, static]
static char BaseMapObject::cFilledPolygon (  )  [inline, static]
virtual char BaseMapObject::connectPoints ( int  shapeidx  )  const [virtual]
static char BaseMapObject::cPolygon (  )  [inline, static]
virtual const Color* BaseMapObject::getColor ( int  shapeidx  )  const [virtual]
Return values:
cDontConnect() - don't connect
cConnect() - connect
cPolygon() - connect as polygon.
cFilledPolygon() - connect as polygon and fill
virtual int BaseMapObject::getDepth (  )  const [inline, virtual]

Determines what should be painted ontop of what

virtual const OD::RGBImage* BaseMapObject::getImage ( Coord origin,
Coord p11 
) const [virtual]

Returns image in xy plane. p11 is the coordinate of the corner opposite of the origin.

virtual void BaseMapObject::getPoints ( int  shapeidx,
TypeSet< Coord > &   
) const [virtual]

Returns a number of coordinates that may form a be connected or filled.

virtual const OD::RGBImage* BaseMapObject::getPreview ( int  approxdiagonal  )  const [virtual]

Returns a preview image that has approximately the size of the specified diagonal.

virtual const char* BaseMapObject::getShapeName ( int  shapeidx  )  const [virtual]
virtual const char* BaseMapObject::getType (  )  const [pure virtual]
virtual int BaseMapObject::nrShapes (  )  const [virtual]
virtual void BaseMapObject::setDepth ( int  val  )  [inline, virtual]
virtual void BaseMapObject::updateGeometry (  )  [inline, virtual]

Member Data Documentation

int BaseMapObject::depth_ [protected]