Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

CrossData Class Reference

#include <CrossData.h>

Inheritance diagram for CrossData:

Detailed Description

Definition at line 18 of file CrossData.h.

List of all members.

Public Types

enum  ObjectFeature {
  none = 0, arm1, arm2, arm3,
  arm4
}

Public Member Functions

 CrossData (ShapeSpace &_space, const LineData &line1, const LineData &line2, const fmat::Column< 3 > &extents)
 Constructor.
 ~CrossData ()
 Destructor.
 DATASTUFF_H (CrossData)
Point getCentroid () const
 get and set for basic parameters (center, armWidth,
void setCentroid (const Point &other)
float getArmWidth () const
void setArmWidth (float newWidth)
float getcrossHeight () const
void setcrossHeight (float newHeight)
float getArmSemiLength () const
const LineDatagetLine1 () const
 Line1. (Virtual in BaseData.).
void setLine1 (const LineData &newLine1)
const LineDatagetLine2 () const
 Line2. (Virtual in BaseData.).
void setLine2 (const LineData &newLine2)
virtual BoundingBox2D getBoundingBox () const
 Returns the bounding box of the Cross object in the camera reference frame; not the same as getTopLeft() etc.
Point getTopLeft () const
 Bounding box points.
Point getTopRight () const
Point getBottomLeft () const
Point getBottomRight () const
virtual bool isMatchFor (const ShapeRoot &other) const
 Match Cross objects based on their parameters. (Virtual in BaseData.).
bool isMatchFor (const CrossData &other) const
virtual bool updateParams (const ShapeRoot &other, bool force=false)
 Updates cross given a new cross.
virtual bool updateParams (const CrossData &ground_cross, bool force)
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 unsigned short getDimension () const
std::vector< PointcomputeGraspPoints () 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 ()

Private Member Functions

virtual Sketch< bool > * render () const
 Render into a sketch space and return pointer. (Private.).
CrossDataoperator= (const CrossData &)
 don't call

Private Attributes

Point center
float armWidth
float crossHeight
LineData line1
LineData line2

Friends

class ShapeSpace
class Shape< CrossData >

Member Enumeration Documentation

Enumerator:
none 
arm1 
arm2 
arm3 
arm4 

Definition at line 91 of file CrossData.h.


Constructor & Destructor Documentation

CrossData ( ShapeSpace _space,
const LineData line1,
const LineData line2,
const fmat::Column< 3 > &  extents 
)

Constructor.

Definition at line 10 of file CrossData.cc.

~CrossData (  ) 

Destructor.

Definition at line 36 of file CrossData.h.


Member Function Documentation

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

Transformations. (Virtual in BaseData.).

Implements BaseData.

Definition at line 137 of file CrossData.cc.

std::vector< Point > computeGraspPoints (  )  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 163 of file CrossData.cc.

DATASTUFF_H ( CrossData   ) 
float getArmSemiLength (  )  const

Definition at line 52 of file CrossData.h.

float getArmWidth (  )  const

Definition at line 46 of file CrossData.h.

Point getBottomLeft (  )  const

Definition at line 64 of file CrossData.cc.

Point getBottomRight (  )  const

Definition at line 78 of file CrossData.cc.

BoundingBox2D getBoundingBox (  )  const [virtual]

Returns the bounding box of the Cross object in the camera reference frame; not the same as getTopLeft() etc.

Reimplemented from BaseData.

Definition at line 18 of file CrossData.cc.

Point getCentroid (  )  const [virtual]

get and set for basic parameters (center, armWidth,

Implements BaseData.

Definition at line 43 of file CrossData.h.

float getcrossHeight (  )  const

Definition at line 49 of file CrossData.h.

virtual unsigned short getDimension (  )  const [virtual]

Implements BaseData.

Definition at line 88 of file CrossData.h.

const LineData& getLine1 (  )  const

Line1. (Virtual in BaseData.).

Definition at line 55 of file CrossData.h.

const LineData& getLine2 (  )  const

Line2. (Virtual in BaseData.).

Definition at line 59 of file CrossData.h.

static ShapeType_t getStaticType (  )  [static]

Definition at line 38 of file CrossData.h.

Point getTopLeft (  )  const

Bounding box points.

Definition at line 38 of file CrossData.cc.

Point getTopRight (  )  const

Definition at line 51 of file CrossData.cc.

bool isMatchFor ( const CrossData other  )  const

Definition at line 104 of file CrossData.cc.

bool isMatchFor ( const ShapeRoot other  )  const [virtual]

Match Cross objects based on their parameters. (Virtual in BaseData.).

Implements BaseData.

Definition at line 93 of file CrossData.cc.

CrossData& operator= ( const CrossData  )  [private]

don't call

void printParams (  )  const [virtual]

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

Implements BaseData.

Definition at line 128 of file CrossData.cc.

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

Project to ground.

Implements BaseData.

Definition at line 144 of file CrossData.cc.

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

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

Implements BaseData.

Definition at line 153 of file CrossData.cc.

void setArmWidth ( float  newWidth  ) 

Definition at line 47 of file CrossData.h.

void setCentroid ( const Point other  ) 

Definition at line 44 of file CrossData.h.

void setcrossHeight ( float  newHeight  ) 

Definition at line 50 of file CrossData.h.

void setLine1 ( const LineData newLine1  ) 

Definition at line 56 of file CrossData.h.

void setLine2 ( const LineData newLine2  ) 

Definition at line 60 of file CrossData.h.

bool updateParams ( const CrossData ground_cross,
bool  force 
) [virtual]

Definition at line 118 of file CrossData.cc.

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

Updates cross given a new cross.

Implements BaseData.

Definition at line 113 of file CrossData.cc.


Friends And Related Function Documentation

friend class Shape< CrossData > [friend]

Definition at line 28 of file CrossData.h.

friend class ShapeSpace [friend]

Reimplemented from BaseData.

Definition at line 27 of file CrossData.h.


Member Data Documentation

float armWidth [private]

Definition at line 22 of file CrossData.h.

Referenced by CrossData::getArmWidth(), and CrossData::setArmWidth().

Point center [private]

Definition at line 21 of file CrossData.h.

Referenced by CrossData::getCentroid(), and CrossData::setCentroid().

float crossHeight [private]

Definition at line 23 of file CrossData.h.

Referenced by CrossData::getcrossHeight(), and CrossData::setcrossHeight().

LineData line1 [private]
LineData line2 [private]

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