Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

CylinderData Class Reference

Vertical standing cylinder. More...

#include <CylinderData.h>

Inheritance diagram for CylinderData:

Detailed Description

Vertical standing cylinder.

Definition at line 14 of file CylinderData.h.

List of all members.

Public Member Functions

 CylinderData (ShapeSpace &_space, Point _centroid, float _height=0, float _radius=0, fmat::Quaternion _orientation=fmat::Quaternion())
 Constructor.
float getHeight () const
float getRadius () const
const fmat::Quaternion getOrientation () const
 DATASTUFF_H (CylinderData)
virtual bool isMatchFor (const ShapeRoot &) const
 Shapes match if their coordinates agree. DOES NOT Assume type and color already checked.
virtual Point getCentroid () const
 return the centroid of the shape in point format
virtual bool updateParams (const ShapeRoot &, bool)
 Update shape parameters after matching to another shape.
virtual BoundingBox2D getBoundingBox () const
 Returns the bounding box of the cylinder.
virtual short unsigned int getDimension () const
virtual void printParams () const
 Prints information about this shape.
virtual void applyTransform (const fmat::Transform &, ReferenceFrameType_t)
 Apply a transformation matrix to the shape.
virtual void projectToGround (const fmat::Transform &, const PlaneEquation &)
 Project to ground plane using given matrix.
virtual Sketch< bool > * render () const
 Render into a sketch space.

Static Public Member Functions

static ShapeType_t getStaticType ()
static std::vector< Shape
< CylinderData > > 
extractCylinders (const Sketch< uchar > &sketch, const std::set< color_index > &colors, const std::map< color_index, coordinate_t > &assumedHeights, const std::map< color_index, int > &minCylinderAreas, int maxcylinders, std::vector< GazePoint > &addGazePts)
 Import cylinders of specified colors from Sketch<uchar> as a vector of Shape<CylinderData>

Protected Attributes

Point centroid
float height
float radius
fmat::Quaternion orientation

Constructor & Destructor Documentation

CylinderData ( ShapeSpace _space,
Point  _centroid,
float  _height = 0,
float  _radius = 0,
fmat::Quaternion  _orientation = fmat::Quaternion() 
)

Constructor.

Definition at line 15 of file CylinderData.cc.

Referenced by CylinderData::extractCylinders().


Member Function Documentation

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

Apply a transformation matrix to the shape.

Implements BaseData.

Definition at line 56 of file CylinderData.cc.

DATASTUFF_H ( CylinderData   ) 
std::vector< Shape< CylinderData > > extractCylinders ( const Sketch< uchar > &  sketch,
const std::set< color_index > &  colors,
const std::map< color_index, coordinate_t > &  assumedHeights,
const std::map< color_index, int > &  minCylinderAreas,
int  maxcylinders,
std::vector< GazePoint > &  addGazePts 
) [static]

Import cylinders of specified colors from Sketch<uchar> as a vector of Shape<CylinderData>

Definition at line 123 of file CylinderData.cc.

BoundingBox2D getBoundingBox (  )  const [virtual]

Returns the bounding box of the cylinder.

Reimplemented from BaseData.

Definition at line 40 of file CylinderData.cc.

Point getCentroid (  )  const [virtual]

return the centroid of the shape in point format

Implements BaseData.

Definition at line 36 of file CylinderData.cc.

Referenced by CylinderData::render().

virtual short unsigned int getDimension (  )  const [virtual]

Implements BaseData.

Definition at line 40 of file CylinderData.h.

float getHeight (  )  const

Definition at line 25 of file CylinderData.h.

const fmat::Quaternion getOrientation (  )  const

Definition at line 27 of file CylinderData.h.

float getRadius (  )  const

Definition at line 26 of file CylinderData.h.

static ShapeType_t getStaticType (  )  [static]

Definition at line 29 of file CylinderData.h.

bool isMatchFor ( const ShapeRoot other  )  const [virtual]

Shapes match if their coordinates agree. DOES NOT Assume type and color already checked.

Implements BaseData.

Definition at line 21 of file CylinderData.cc.

void printParams (  )  const [virtual]

Prints information about this shape.

Implements BaseData.

Definition at line 47 of file CylinderData.cc.

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

Project to ground plane using given matrix.

Implements BaseData.

Definition at line 60 of file CylinderData.cc.

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

Render into a sketch space.

Implements BaseData.

Definition at line 80 of file CylinderData.cc.

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

Update shape parameters after matching to another shape.

Implements BaseData.

Definition at line 38 of file CylinderData.cc.


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