Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

EllipseData Class Reference

#include <EllipseData.h>

Inheritance diagram for EllipseData:

Detailed Description

Definition at line 22 of file EllipseData.h.

List of all members.

Classes

class  AreaLessThan
 True if ellipse1 has less area than ellipse2. More...

Public Member Functions

 EllipseData (ShapeSpace &_space, const Point &c, const float _semimajor=25, const float _semiminor=15, const float _orientation=0)
 Constructor.
 DATASTUFF_H (EllipseData)
Point getCentroid () const
 Centroid. (Virtual in BaseData.).
void setCentroidPt (const Point &other)
std::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
BoundingBox2D getBoundingBox () const
 returns the bounding box of the ellipse
virtual bool isMatchFor (const ShapeRoot &other) const
 Match ellipses based on their parameters. (Virtual in BaseData.).
virtual bool isAdmissible () const
 Check whether ellipse is large enough to be admissible to the local map (i.e., probably not 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 fmat::Transform &Tmat, const ReferenceFrameType_t newref=unspecified)
 Transformations. (Virtual in BaseData.).
virtual void projectToGround (const fmat::Transform &camToBase, const PlaneEquation &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.
float getArea () const
 Properties functions.

void setOrientation (const AngPi _orientation)
 Set properties.
void setSemimajor (float _semimajor)
 Set properties.
void setSemiminor (float _semiminor)
 Set properties.

Static Public Member Functions

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

Private Member Functions

EllipseDataoperator= (const EllipseData &)
 don't call
Comparison predicates used by shape functions

virtual Sketch< bool > * render () const
 Render into a sketch space and return reference. (Private.).

Private Attributes

Point center_pt
float semimajor
float semiminor
AngPi orientation

Constructor & Destructor Documentation

EllipseData ( ShapeSpace _space,
const Point c,
const float  _semimajor = 25,
const float  _semiminor = 15,
const float  _orientation = 0 
)

Constructor.

Definition at line 27 of file EllipseData.cc.


Member Function Documentation

void applyTransform ( const fmat::Transform Tmat,
const ReferenceFrameType_t  newref = unspecified 
) [virtual]

Transformations. (Virtual in BaseData.).

Implements BaseData.

Definition at line 112 of file EllipseData.cc.

const Point& centerPt (  )  const

Center point access function.

Definition at line 69 of file EllipseData.h.

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

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

Extraction.

Ellipse extraction.

Definition at line 165 of file EllipseData.cc.

pair< Point, Point > findFeaturePoints (  )  const

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

Definition at line 97 of file EllipseData.cc.

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

float getArea (  )  const

Properties functions.

Definition at line 78 of file EllipseData.h.

BoundingBox2D getBoundingBox (  )  const [virtual]

returns the bounding box of the ellipse

Reimplemented from BaseData.

Definition at line 41 of file EllipseData.cc.

Point getCentroid (  )  const [virtual]

Centroid. (Virtual in BaseData.).

Implements BaseData.

Definition at line 39 of file EllipseData.h.

virtual unsigned short getDimension (  )  const [virtual]

Implements BaseData.

Definition at line 71 of file EllipseData.h.

AngPi getOrientation (  )  const

Properties functions.

Definition at line 75 of file EllipseData.h.

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

float getSemimajor (  )  const

Properties functions.

Definition at line 76 of file EllipseData.h.

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

float getSemiminor (  )  const

Properties functions.

Definition at line 77 of file EllipseData.h.

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

static ShapeType_t getStaticType (  )  [static]

Definition at line 34 of file EllipseData.h.

bool isAdmissible (  )  const [virtual]

Check whether ellipse is large enough to be admissible to the local map (i.e., probably not noise).

Reimplemented from BaseData.

Definition at line 69 of file EllipseData.cc.

bool isMatchFor ( const ShapeRoot other  )  const [virtual]

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

Implements BaseData.

Definition at line 61 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 87 of file EllipseData.cc.

void projectToGround ( const fmat::Transform camToBase,
const PlaneEquation groundplane 
) [virtual]

Project to ground.

Implements BaseData.

Definition at line 127 of file EllipseData.cc.

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

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

Implements BaseData.

Definition at line 192 of file EllipseData.cc.

void setCentroidPt ( const Point other  ) 

Definition at line 40 of file EllipseData.h.

void setOrientation ( const AngPi  _orientation  ) 

Set properties.

Functions to set properties.

Definition at line 137 of file EllipseData.cc.

Referenced by EllipseData::updateProperties().

void setSemimajor ( float  _semimajor  ) 

Set properties.

Functions to set properties.

Definition at line 142 of file EllipseData.cc.

Referenced by EllipseData::updateProperties().

void setSemiminor ( float  _semiminor  ) 

Set properties.

Functions to set properties.

Definition at line 147 of file EllipseData.cc.

Referenced by EllipseData::updateProperties().

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

Update shape parameters after matching to another shape.

Implements BaseData.

Definition at line 73 of file EllipseData.cc.

void updateProperties ( const Point minorPt,
const Point majorPt 
)

updates major/minor axis and orientation from feature points

Definition at line 121 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 5.1CVS
Generated Mon May 9 04:56:30 2016 by Doxygen 1.6.3