Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

TargetData Class Reference

#include <TargetData.h>

Inheritance diagram for TargetData:

Detailed Description

Definition at line 17 of file TargetData.h.

List of all members.

Public Member Functions

 TargetData (ShapeSpace &_space, const EndPoint &_frontLeftPt, const EndPoint &_frontRightPt, const EndPoint &_backLeftPt, const EndPoint &_backRightPt, const EndPoint &_frontIntersect, const EndPoint &_backIntersect, const float _height)
 Constructor.
 TargetData (const TargetData &other)
 Copy constructor.
 DATASTUFF_H (TargetData)
Point getFrontCentroid () const
 Centroid. (Virtual in BaseData.).
Point getBackCentroid () const
Point getCentroid () const
 return the centroid of the shape in point format
BoundingBox2D getBoundingBox () const
virtual bool isMatchFor (const ShapeRoot &other) const
 Match points based on their parameters. (Virtual in BaseData.).
bool isMatchFor (const TargetData &other_target) const
virtual bool isAdmissible () const
 minimum length of a target
void update_derived_properties ()
 updates orientation and length from feature points
virtual bool updateParams (const ShapeRoot &other, bool force=false)
 Update shape parameters after matching to another shape.
virtual void mergeWith (const ShapeRoot &other)
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 the Target onto the target plane (ground plane lifted up by height).
virtual unsigned short getDimension () const
EndPointgetFrontLeftPt ()
EndPointgetFrontRightPt ()
const EndPointgetFrontLeftPt () const
const EndPointgetFrontRightPt () const
EndPointgetBackLeftPt ()
EndPointgetBackRightPt ()
const EndPointgetBackLeftPt () const
const EndPointgetBackRightPt () const
EndPointgetFrontIntersect ()
EndPointgetBackIntersect ()
const EndPointgetFrontIntersect () const
const EndPointgetBackIntersect () const
bool isFrontValid () const
bool isBackValid () const
AngSignPi getOrientation () const
float getLength () const
float getWidth () const
float getHeight () const
TargetDataoperator= (const TargetData &)
float perpendicularDistanceFrom (Point point)

Static Public Member Functions

static ShapeType_t getStaticType ()
static Shape< TargetDataextractLineTarget (std::string frontColor="yellow", std::string backColor="pink", std::string rightColor="blue", std::string occluderColor="orange", const float height=90.0f)
static Shape< TargetDataextractLineTarget (Sketch< bool > &frontSketch, Sketch< bool > &backSketch, Sketch< bool > &rightSketch, Sketch< bool > &occluderSketch, const float height=90.0f)
static Shape< TargetDataextractLineTarget (Shape< LineData > &camFrontLine, Shape< LineData > &camBackLine, Shape< LineData > &camRightLine, rgb color, const float height=90.0f)

Protected Attributes

LineData frontLine
LineData backLine
bool frontValid
bool backValid
EndPoint frontIntersect
EndPoint backIntersect
AngSignPi orientation
float length
float width
float height

Private Member Functions

Sketch< bool > * render () const
 Render into a sketch space and return reference. (Private.).

Constructor & Destructor Documentation

TargetData ( ShapeSpace _space,
const EndPoint _frontLeftPt,
const EndPoint _frontRightPt,
const EndPoint _backLeftPt,
const EndPoint _backRightPt,
const EndPoint _frontIntersect,
const EndPoint _backIntersect,
const float  _height 
)

Constructor.

Definition at line 25 of file TargetData.cc.

TargetData ( const TargetData other  ) 

Copy constructor.

Definition at line 30 of file TargetData.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 425 of file TargetData.cc.

DATASTUFF_H ( TargetData   ) 
Shape< TargetData > extractLineTarget ( Shape< LineData > &  camFrontLine,
Shape< LineData > &  camBackLine,
Shape< LineData > &  camRightLine,
rgb  color,
const float  height = 90.0f 
) [static]

Definition at line 548 of file TargetData.cc.

Shape< TargetData > extractLineTarget ( Sketch< bool > &  frontSketch,
Sketch< bool > &  backSketch,
Sketch< bool > &  rightSketch,
Sketch< bool > &  occluderSketch,
const float  height = 90.0f 
) [static]

Definition at line 530 of file TargetData.cc.

Shape< TargetData > extractLineTarget ( std::string  frontColor = "yellow",
std::string  backColor = "pink",
std::string  rightColor = "blue",
std::string  occluderColor = "orange",
const float  height = 90.0f 
) [static]

Definition at line 502 of file TargetData.cc.

Referenced by TargetData::extractLineTarget().

Point getBackCentroid (  )  const

Definition at line 43 of file TargetData.h.

Referenced by TargetData::update_derived_properties().

const EndPoint& getBackIntersect (  )  const

Definition at line 86 of file TargetData.h.

EndPoint& getBackIntersect (  ) 

Definition at line 84 of file TargetData.h.

const EndPoint& getBackLeftPt (  )  const

Definition at line 80 of file TargetData.h.

EndPoint& getBackLeftPt (  ) 
const EndPoint& getBackRightPt (  )  const

Definition at line 81 of file TargetData.h.

EndPoint& getBackRightPt (  ) 
BoundingBox2D getBoundingBox (  )  const [virtual]

Reimplemented from BaseData.

Definition at line 42 of file TargetData.cc.

Point getCentroid (  )  const [virtual]

return the centroid of the shape in point format

Implements BaseData.

Definition at line 44 of file TargetData.h.

Referenced by TargetData::printParams(), TargetData::render(), and TargetData::update_derived_properties().

virtual unsigned short getDimension (  )  const [virtual]

Implements BaseData.

Definition at line 71 of file TargetData.h.

Point getFrontCentroid (  )  const

Centroid. (Virtual in BaseData.).

Definition at line 42 of file TargetData.h.

Referenced by TargetData::getCentroid().

const EndPoint& getFrontIntersect (  )  const

Definition at line 85 of file TargetData.h.

EndPoint& getFrontIntersect (  ) 

Definition at line 83 of file TargetData.h.

const EndPoint& getFrontLeftPt (  )  const

Definition at line 75 of file TargetData.h.

EndPoint& getFrontLeftPt (  ) 
const EndPoint& getFrontRightPt (  )  const

Definition at line 76 of file TargetData.h.

EndPoint& getFrontRightPt (  ) 
float getHeight (  )  const

Definition at line 94 of file TargetData.h.

float getLength (  )  const

Definition at line 92 of file TargetData.h.

AngSignPi getOrientation (  )  const

Definition at line 91 of file TargetData.h.

static ShapeType_t getStaticType (  )  [static]

Definition at line 37 of file TargetData.h.

float getWidth (  )  const

Definition at line 93 of file TargetData.h.

virtual bool isAdmissible (  )  const [virtual]

minimum length of a target

Reimplemented from BaseData.

Definition at line 53 of file TargetData.h.

bool isBackValid (  )  const

Definition at line 89 of file TargetData.h.

bool isFrontValid (  )  const

Definition at line 88 of file TargetData.h.

bool isMatchFor ( const TargetData other_target  )  const

Definition at line 58 of file TargetData.cc.

bool isMatchFor ( const ShapeRoot other  )  const [virtual]

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

Implements BaseData.

Definition at line 48 of file TargetData.cc.

void mergeWith ( const ShapeRoot other  )  [virtual]

Definition at line 376 of file TargetData.cc.

TargetData & operator= ( const TargetData other  ) 

Definition at line 472 of file TargetData.cc.

float perpendicularDistanceFrom ( Point  point  ) 

Definition at line 491 of file TargetData.cc.

void printParams ( void   )  const [virtual]

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

Implements BaseData.

Definition at line 397 of file TargetData.cc.

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

Project the Target onto the target plane (ground plane lifted up by height).

Implements BaseData.

Definition at line 437 of file TargetData.cc.

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

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

Implements BaseData.

Definition at line 455 of file TargetData.cc.

void update_derived_properties (  ) 

updates orientation and length from feature points

Definition at line 65 of file TargetData.cc.

Referenced by TargetData::applyTransform(), TargetData::mergeWith(), TargetData::projectToGround(), TargetData::TargetData(), and TargetData::updateParams().

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

Update shape parameters after matching to another shape.

Implements BaseData.

Definition at line 309 of file TargetData.cc.


Member Data Documentation


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

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