Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

DominoData Class Reference

Subclass of Brick that describes a Domino. More...

#include <DominoData.h>

Inheritance diagram for DominoData:

Detailed Description

Subclass of Brick that describes a Domino.

Definition at line 9 of file DominoData.h.

List of all members.

Public Types

enum  ObjectFeature {
  none = 0, center, lowEnd, highEnd,
  leftSide, rightSide
}
 

Helper function for domino construction.

More...

Public Member Functions

 DominoData (ShapeSpace &_space, int _lowValue, int _highValue, const fmat::SubVector< 3, const fmat::fmatReal > &_centroid, const fmat::Column< 3 > _extents, const fmat::SubMatrix< 3, 3, const fmat::fmatReal > &_orient)
 DATASTUFF_H (DominoData)
int getLowValue () const
int getHighValue () const
void setValues (int low, int high)
float getLength () const
float getWidth () const
float getHeight () const
rgb getLineColor () const
void setLineColor (rgb _lineColor)
virtual bool isMatchFor (const ShapeRoot &other) const
 Match dominoes based on their parameters. (Virtual in BaseData.).
void flipLeftRight ()
void computeGraspPoint (const ObjectFeature pos, Point &location, AngTwoPi &orient) const
 Compute an object grasp point based on some feature of the object, e.g., the low end of a domino.
void computeTargetPosition (const ObjectFeature pos, Point &location, AngTwoPi &orient) const
 Compute a point on the destination target based on some feature of the target, e.g., the left side of a domino.

Static Public Member Functions

static ShapeType_t getStaticType ()
 Copy constructor.

Protected Attributes

int lowValue
 number of dots on low side
int highValue
 number of dots on high side
float length
 length of the domino (longest dimension)
float width
 width of the domino (smaller than length);
float height
 height of the domino
rgb lineColor
 color of the dividing line

Member Enumeration Documentation

Helper function for domino construction.

Enumerator:
none 
center 
lowEnd 
highEnd 
leftSide 
rightSide 

Definition at line 42 of file DominoData.h.


Constructor & Destructor Documentation

DominoData ( ShapeSpace _space,
int  _lowValue,
int  _highValue,
const fmat::SubVector< 3, const fmat::fmatReal > &  _centroid,
const fmat::Column< 3 >  _extents,
const fmat::SubMatrix< 3, 3, const fmat::fmatReal > &  _orient 
)

Definition at line 12 of file DominoData.h.


Member Function Documentation

void computeGraspPoint ( const ObjectFeature  pos,
Point location,
AngTwoPi orient 
) const

Compute an object grasp point based on some feature of the object, e.g., the low end of a domino.

Definition at line 26 of file DominoData.cc.

Referenced by DominoData::computeTargetPosition().

void computeTargetPosition ( const ObjectFeature  pos,
Point location,
AngTwoPi orient 
) const

Compute a point on the destination target based on some feature of the target, e.g., the left side of a domino.

Definition at line 39 of file DominoData.cc.

DATASTUFF_H ( DominoData   ) 
void flipLeftRight (  ) 

Definition at line 7 of file DominoData.cc.

float getHeight (  )  const

Definition at line 32 of file DominoData.h.

int getHighValue (  )  const

Definition at line 27 of file DominoData.h.

float getLength (  )  const

Definition at line 30 of file DominoData.h.

rgb getLineColor (  )  const

Definition at line 34 of file DominoData.h.

int getLowValue (  )  const

Definition at line 26 of file DominoData.h.

static ShapeType_t getStaticType (  )  [static]

Copy constructor.

Reimplemented from BrickData.

Definition at line 24 of file DominoData.h.

float getWidth (  )  const

Definition at line 31 of file DominoData.h.

bool isMatchFor ( const ShapeRoot other  )  const [virtual]

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

Reimplemented from BrickData.

Definition at line 15 of file DominoData.cc.

void setLineColor ( rgb  _lineColor  ) 

Definition at line 35 of file DominoData.h.

void setValues ( int  low,
int  high 
)

Definition at line 28 of file DominoData.h.


Member Data Documentation

float height [protected]

height of the domino

Definition at line 59 of file DominoData.h.

Referenced by DominoData::getHeight().

int highValue [protected]

number of dots on high side

Definition at line 56 of file DominoData.h.

Referenced by DominoData::getHighValue(), DominoData::isMatchFor(), and DominoData::setValues().

float length [protected]

length of the domino (longest dimension)

Definition at line 57 of file DominoData.h.

Referenced by DominoData::getLength().

rgb lineColor [protected]

color of the dividing line

Definition at line 60 of file DominoData.h.

Referenced by DominoData::getLineColor(), and DominoData::setLineColor().

int lowValue [protected]

number of dots on low side

Definition at line 55 of file DominoData.h.

Referenced by DominoData::getLowValue(), DominoData::isMatchFor(), and DominoData::setValues().

float width [protected]

width of the domino (smaller than length);

Definition at line 58 of file DominoData.h.

Referenced by DominoData::getWidth().


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