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 11 of file CylinderData.h.

List of all members.

Public Member Functions

 CylinderData (ShapeSpace &_space, Point bc=Point(), float h=0, float r=0)
 Radius of the cylinder.
floatgetHeight ()
float getHeight () const
floatgetRadius ()
float getRadius () const
PointgetBaseCenter ()
Point getBaseCenter () 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 bool updateParams (const ShapeRoot &, bool)
 Update shape parameters after matching to another shape.
virtual short unsigned int getDimension () const
virtual Point getCentroid () const
 return the centroid of the shape in point format
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 ()

Private Attributes

Point baseCenter
float height
 Location of the center circle of the base of the cylinder.
float radius
 How tall the cylinder is.

Constructor & Destructor Documentation

CylinderData ( ShapeSpace _space,
Point  bc = Point(),
float  h = 0,
float  r = 0 
)

Radius of the cylinder.

Definition at line 57 of file CylinderData.cc.


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 39 of file CylinderData.cc.

DATASTUFF_H ( CylinderData   ) 
Point getBaseCenter (  )  const

Definition at line 24 of file CylinderData.h.

Point& getBaseCenter (  ) 

Definition at line 23 of file CylinderData.h.

Point getCentroid (  )  const [virtual]

return the centroid of the shape in point format

Implements BaseData.

Definition at line 51 of file CylinderData.cc.

virtual short unsigned int getDimension (  )  const [virtual]

Implements BaseData.

Definition at line 31 of file CylinderData.h.

float getHeight (  )  const

Definition at line 20 of file CylinderData.h.

float& getHeight (  ) 

Definition at line 19 of file CylinderData.h.

float getRadius (  )  const

Definition at line 22 of file CylinderData.h.

float& getRadius (  ) 

Definition at line 21 of file CylinderData.h.

static ShapeType_t getStaticType (  )  [static]

Definition at line 26 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 13 of file CylinderData.cc.

void printParams (  )  const [virtual]

Prints information about this shape.

Implements BaseData.

Definition at line 31 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 43 of file CylinderData.cc.

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

Render into a sketch space.

Implements BaseData.

Definition at line 47 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 26 of file CylinderData.cc.


Member Data Documentation

float height [private]

Location of the center circle of the base of the cylinder.

Definition at line 13 of file CylinderData.h.

Referenced by CylinderData::getHeight(), CylinderData::isMatchFor(), and CylinderData::printParams().

float radius [private]

How tall the cylinder is.

Definition at line 14 of file CylinderData.h.

Referenced by CylinderData::getRadius(), CylinderData::isMatchFor(), and CylinderData::printParams().


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

DualCoding 5.1CVS
Generated Fri Mar 16 05:23:51 2012 by Doxygen 1.6.3