Homepage Demos Overview Downloads Tutorials Reference
Credits

SphereData Class Reference

#include <SphereData.h>

Inheritance diagram for SphereData:

Inheritance graph
[legend]
List of all members.

Detailed Description

Definition at line 20 of file SphereData.h.

Public Member Functions

 SphereData (ShapeSpace &_space, const Point &c)
 Constructor.
 SphereData (const SphereData &otherData)
 Copy constructor.
 DATASTUFF_H (SphereData)
Point getCentroid () const
 Centroid. (Virtual in BaseData.).
void setCentroidPt (const Point &pt)
virtual bool isMatchFor (const ShapeRoot &other) const
 Match spheres based on their parameters. (Virtual in BaseData.).
virtual void mergeWith (const ShapeRoot &other)
virtual bool isAdmissible () const
 Shapes are admissible to the local map if they're large enough not to be noise.
virtual bool updateParams (const ShapeRoot &other, bool force=false)
 Update shape parameters after matching to another shape.
virtual void printParams () const
 Print information about this shape. (Virtual in BaseData.).
void applyTransform (const NEWMAT::Matrix &Tmat)
 Transformations. (Virtual in BaseData.).
virtual void projectToGround (const NEWMAT::Matrix &camToBase, const NEWMAT::ColumnVector &groundplane)
 Project to ground.
virtual bool isInside (const Point &pt) const
 returns if a point is inside the shape or not. Reimplemented by EllipseData, SphereData, PolygonData
const PointcenterPt () const
 Center point access function.
virtual unsigned short getDimension () const
float getRadius () const
 Properties functions.
void setRadius (float _radius)
 Set properties.

Static Public Member Functions

static ShapeType_t getStaticType ()
static std::vector< ShapeRootextractSpheres (const Sketch< bool > &sketch)
 Extraction.
static std::vector< ShapeRootget_spheres (const Sketch< CMVision::uchar > &cam)
 Extraction.
static std::vector< ShapeRootget_spheres (const Sketch< CMVision::uchar > &cam, vector< bool > &Valid_Colors)
 Extraction.

Private Member Functions

Sketch< bool > * render () const
 Render into a sketch space and return reference. (Private.).
SphereDataoperator= (const SphereData &)
 don't call

Private Attributes

Point centroid
float radius

Friends

class Shape< SphereData >


Constructor & Destructor Documentation

SphereData ( ShapeSpace _space,
const Point c 
)

Constructor.

Definition at line 20 of file SphereData.cc.

SphereData ( const SphereData otherData  ) 

Copy constructor.

Definition at line 25 of file SphereData.cc.


Member Function Documentation

void applyTransform ( const NEWMAT::Matrix &  Tmat  )  [virtual]

Transformations. (Virtual in BaseData.).

Implements BaseData.

Definition at line 74 of file SphereData.cc.

const Point& centerPt (  )  const [inline]

Center point access function.

Definition at line 67 of file SphereData.h.

Referenced by SphereData::isInside(), SphereData::printParams(), and SphereData::render().

DATASTUFF_H ( SphereData   ) 

std::vector< ShapeRoot > extractSpheres ( const Sketch< bool > &  sketch  )  [static]

Extraction.

Definition at line 159 of file SphereData.cc.

Referenced by MapBuilder::getCamSpheres().

static std::vector<ShapeRoot> get_spheres ( const Sketch< CMVision::uchar > &  cam,
vector< bool > &  Valid_Colors 
) [static]

Extraction.

static std::vector<ShapeRoot> get_spheres ( const Sketch< CMVision::uchar > &  cam  )  [static]

Extraction.

Point getCentroid ( void   )  const [inline, virtual]

Centroid. (Virtual in BaseData.).

Implements BaseData.

Definition at line 40 of file SphereData.h.

virtual unsigned short getDimension (  )  const [inline, virtual]

Implements BaseData.

Definition at line 69 of file SphereData.h.

float getRadius (  )  const [inline]

Properties functions.

Definition at line 73 of file SphereData.h.

Referenced by SphereData::printParams(), and SphereData::render().

static ShapeType_t getStaticType (  )  [inline, static]

Definition at line 33 of file SphereData.h.

virtual bool isAdmissible (  )  const [inline, virtual]

Shapes are admissible to the local map if they're large enough not to be noise.

Reimplemented from BaseData.

Definition at line 49 of file SphereData.h.

bool isInside ( const Point pt  )  const [virtual]

returns if a point is inside the shape or not. Reimplemented by EllipseData, SphereData, PolygonData

Reimplemented from BaseData.

Definition at line 78 of file SphereData.cc.

bool isMatchFor ( const ShapeRoot other  )  const [virtual]

Match spheres based on their parameters. (Virtual in BaseData.).

Implements BaseData.

Definition at line 31 of file SphereData.cc.

void mergeWith ( const ShapeRoot other  )  [virtual]

Definition at line 39 of file SphereData.cc.

SphereData& operator= ( const SphereData  )  [private]

don't call

void printParams (  )  const [virtual]

Print information about this shape. (Virtual in BaseData.).

Implements BaseData.

Definition at line 57 of file SphereData.cc.

void projectToGround ( const NEWMAT::Matrix &  camToBase,
const NEWMAT::ColumnVector &  groundplane 
) [virtual]

Project to ground.

Implements BaseData.

Definition at line 84 of file SphereData.cc.

Sketch< bool > * render (  )  const [private, virtual]

Render into a sketch space and return reference. (Private.).

Implements BaseData.

Definition at line 227 of file SphereData.cc.

void setCentroidPt ( const Point pt  )  [inline]

Definition at line 42 of file SphereData.h.

void setRadius ( float  _radius  ) 

Set properties.

Definition at line 145 of file SphereData.cc.

bool updateParams ( const ShapeRoot other,
bool  force = false 
) [virtual]

Update shape parameters after matching to another shape.

Implements BaseData.

Definition at line 49 of file SphereData.cc.


Friends And Related Function Documentation

friend class Shape< SphereData > [friend]


Member Data Documentation


The documentation for this class was generated from the following files:

DualCoding 3.0beta
Generated Wed Oct 4 00:02:31 2006 by Doxygen 1.4.7