Homepage Demos Overview Downloads Tutorials Reference
Credits

EllipseData Class Reference

#include <EllipseData.h>

Inheritance diagram for EllipseData:

Inheritance graph
[legend]
List of all members.

Detailed Description

Definition at line 22 of file EllipseData.h.

Public Member Functions

 EllipseData (ShapeSpace &_space, const Point &c)
 Constructor.
 DATASTUFF_H (EllipseData)
Point getCentroid () const
 Centroid. (Virtual in BaseData.).
void setCentroidPt (const Point &other)
pair< Point, PointfindFeaturePoints () const
 finds points where semiminor or semimajor axis touchs the circumference of ellipse
void updateProperties (const Point &minorPt, const Point &majorPt)
 updates major/minor axis and orientation from feature points
BoundingBox getBoundingBox () const
virtual bool isMatchFor (const ShapeRoot &other) const
 Match ellipses based on their parameters. (Virtual in BaseData.).
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.
const PointcenterPt () const
 Center point access function.
virtual unsigned short getDimension () const
AngPi getOrientation () const
 Properties functions.
float getSemimajor () const
 Properties functions.
float getSemiminor () const
 Properties functions.
void setOrientation (const AngPi _orientation)
 Functions to set properties.
void setSemimajor (float _semimajor)
 Functions to set properties.
void setSemiminor (float _semiminor)
 Functions to set properties.

Static Public Member Functions

static ShapeType_t getStaticType ()
static std::vector< Shape<
EllipseData > > 
extractEllipses (const Sketch< bool > &sketch)
 Ellipse extraction.

Private Member Functions

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

Private Attributes

Point center_pt
float semimajor
float semiminor
AngPi orientation


Constructor & Destructor Documentation

EllipseData ( ShapeSpace _space,
const Point c 
)

Constructor.

Definition at line 27 of file EllipseData.cc.


Member Function Documentation

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

Transformations. (Virtual in BaseData.).

Implements BaseData.

Definition at line 104 of file EllipseData.cc.

const Point& centerPt (  )  const [inline]

Center point access function.

Definition at line 70 of file EllipseData.h.

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

DATASTUFF_H ( EllipseData   ) 

std::vector< Shape< EllipseData > > extractEllipses ( const Sketch< bool > &  sketch  )  [static]

Ellipse extraction.

Definition at line 154 of file EllipseData.cc.

Referenced by MapBuilder::getCamEllipses().

pair< Point, Point > findFeaturePoints (  )  const

finds points where semiminor or semimajor axis touchs the circumference of ellipse

Definition at line 86 of file EllipseData.cc.

Referenced by EllipseData::applyTransform(), and EllipseData::projectToGround().

BoundingBox getBoundingBox (  )  const [virtual]

Reimplemented from BaseData.

Definition at line 35 of file EllipseData.cc.

Point getCentroid (  )  const [inline, virtual]

Centroid. (Virtual in BaseData.).

Implements BaseData.

Definition at line 39 of file EllipseData.h.

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

Implements BaseData.

Definition at line 72 of file EllipseData.h.

AngPi getOrientation (  )  const [inline]

Properties functions.

Definition at line 76 of file EllipseData.h.

Referenced by EllipseData::findFeaturePoints(), and EllipseData::printParams().

float getSemimajor (  )  const [inline]

Properties functions.

Definition at line 77 of file EllipseData.h.

Referenced by EllipseData::findFeaturePoints(), and EllipseData::printParams().

float getSemiminor (  )  const [inline]

Properties functions.

Definition at line 78 of file EllipseData.h.

Referenced by EllipseData::findFeaturePoints(), and EllipseData::printParams().

static ShapeType_t getStaticType (  )  [inline, static]

Definition at line 34 of file EllipseData.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 53 of file EllipseData.h.

bool isMatchFor ( const ShapeRoot other  )  const [virtual]

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

Implements BaseData.

Definition at line 46 of file EllipseData.cc.

EllipseData& operator= ( const EllipseData  )  [private]

don't call

void printParams (  )  const [virtual]

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

Implements BaseData.

Definition at line 69 of file EllipseData.cc.

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

Project to ground.

Implements BaseData.

Definition at line 119 of file EllipseData.cc.

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

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

Implements BaseData.

Definition at line 182 of file EllipseData.cc.

void setCentroidPt ( const Point other  )  [inline]

Definition at line 40 of file EllipseData.h.

void setOrientation ( const AngPi  _orientation  ) 

Functions to set properties.

Definition at line 130 of file EllipseData.cc.

Referenced by EllipseData::updateProperties().

void setSemimajor ( float  _semimajor  ) 

Functions to set properties.

Definition at line 135 of file EllipseData.cc.

Referenced by EllipseData::updateProperties().

void setSemiminor ( float  _semiminor  ) 

Functions to set properties.

Definition at line 140 of file EllipseData.cc.

Referenced by EllipseData::updateProperties().

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

Update shape parameters after matching to another shape.

Implements BaseData.

Definition at line 54 of file EllipseData.cc.

void updateProperties ( const Point minorPt,
const Point majorPt 
)

updates major/minor axis and orientation from feature points

Definition at line 113 of file EllipseData.cc.

Referenced by EllipseData::applyTransform(), and EllipseData::projectToGround().


Member Data Documentation


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

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