Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

SphereData Class Reference

#include <SphereData.h>

Inheritance diagram for SphereData:

Detailed Description

Definition at line 20 of file SphereData.h.

List of all members.

Public Member Functions

 SphereData (ShapeSpace &_space, const Point &c, float r)
 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
 Combine two shapes by taking weighted average depending on confidence level.
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.
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< Shape
< SphereData > > 
extractSpheres (const Sketch< bool > &sketch)
 Extraction.
static std::vector< Shape
< SphereData > > 
get_spheres (const Sketch< CMVision::uchar > &cam)
static std::vector< Shape
< SphereData > > 
get_spheres (const Sketch< CMVision::uchar > &cam, std::vector< bool > &Valid_Colors)
 Extraction.

Private Member Functions

Sketch< bool > * render () const
 Render into a sketch space and return pointer. (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,
float  r 
)

Constructor.

Definition at line 22 of file SphereData.cc.

SphereData ( const SphereData otherData  ) 

Copy constructor.

Definition at line 27 of file SphereData.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 76 of file SphereData.cc.

const Point& centerPt (  )  const

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< Shape< SphereData > > extractSpheres ( const Sketch< bool > &  sketch  )  [static]

Extraction.

Definition at line 165 of file SphereData.cc.

Referenced by SphereData::get_spheres().

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

Extraction.

Definition at line 199 of file SphereData.cc.

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

Declare all colors as valid.

Definition at line 192 of file SphereData.cc.

Point getCentroid ( void   )  const [virtual]

Centroid. (Virtual in BaseData.).

Implements BaseData.

Definition at line 40 of file SphereData.h.

virtual unsigned short getDimension (  )  const [virtual]

Implements BaseData.

Definition at line 69 of file SphereData.h.

float getRadius (  )  const

Properties functions.

Definition at line 73 of file SphereData.h.

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

static ShapeType_t getStaticType (  )  [static]

Definition at line 33 of file SphereData.h.

virtual bool isAdmissible (  )  const [virtual]

Combine two shapes by taking weighted average depending on confidence level.

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  )  const [virtual]

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

Reimplemented from BaseData.

Definition at line 80 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 33 of file SphereData.cc.

void mergeWith ( const ShapeRoot other  )  [virtual]

Definition at line 41 of file SphereData.cc.

SphereData& operator= ( const SphereData  )  [private]

don't call

void printParams ( void   )  const [virtual]

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

Implements BaseData.

Definition at line 59 of file SphereData.cc.

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

Project to ground.

Implements BaseData.

Definition at line 86 of file SphereData.cc.

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

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

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

Implements BaseData.

Definition at line 234 of file SphereData.cc.

void setCentroidPt ( const Point pt  ) 

Definition at line 42 of file SphereData.h.

void setRadius ( float  _radius  ) 

Set properties.

Definition at line 151 of file SphereData.cc.

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

Update shape parameters after matching to another shape.

Implements BaseData.

Definition at line 51 of file SphereData.cc.


Friends And Related Function Documentation

friend class Shape< SphereData > [friend]

Definition at line 37 of file SphereData.h.


Member Data Documentation


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

DualCoding 5.1CVS
Generated Mon May 9 04:56:31 2016 by Doxygen 1.6.3