Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

TargetData Class Reference

#include <TargetData.h>

Inheritance diagram for TargetData:

List of all members.


Detailed Description

Definition at line 17 of file TargetData.h.


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
BoundingBox 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 NEWMAT::Matrix &Tmat, const ReferenceFrameType_t newref=unspecified)
 Transformations. (Virtual in BaseData.).
virtual void projectToGround (const NEWMAT::Matrix &camToBase, const NEWMAT::ColumnVector &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 ()
bool isBackValid ()
AngSignPi getOrientation ()
float getLength ()
float getWidth ()
float getHeight ()
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  )  [inline]

Copy constructor.

Definition at line 30 of file TargetData.h.


Member Function Documentation

static ShapeType_t getStaticType (  )  [inline, static]

Definition at line 37 of file TargetData.h.

DATASTUFF_H ( TargetData   ) 

Point getFrontCentroid (  )  const [inline]

Centroid. (Virtual in BaseData.).

Definition at line 42 of file TargetData.h.

Referenced by TargetData::getCentroid().

Point getBackCentroid (  )  const [inline]

Definition at line 43 of file TargetData.h.

Referenced by TargetData::update_derived_properties().

Point getCentroid (  )  const [inline, 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().

BoundingBox getBoundingBox (  )  const [virtual]

Reimplemented from BaseData.

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

bool isMatchFor ( const TargetData other_target  )  const

Definition at line 56 of file TargetData.cc.

virtual bool isAdmissible (  )  const [inline, virtual]

minimum length of a target

Reimplemented from BaseData.

Definition at line 53 of file TargetData.h.

void update_derived_properties (  ) 

updates orientation and length from feature points

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

void mergeWith ( const ShapeRoot other  )  [virtual]

Definition at line 374 of file TargetData.cc.

void printParams ( void   )  const [virtual]

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

Implements BaseData.

Definition at line 395 of file TargetData.cc.

void applyTransform ( const NEWMAT::Matrix &  Tmat,
const ReferenceFrameType_t  newref = unspecified 
) [virtual]

Transformations. (Virtual in BaseData.).

Implements BaseData.

Definition at line 423 of file TargetData.cc.

void projectToGround ( const NEWMAT::Matrix &  camToBase,
const NEWMAT::ColumnVector &  groundplane 
) [virtual]

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

Implements BaseData.

Definition at line 435 of file TargetData.cc.

virtual unsigned short getDimension (  )  const [inline, virtual]

Implements BaseData.

Definition at line 71 of file TargetData.h.

EndPoint& getFrontLeftPt (  )  [inline]

EndPoint& getFrontRightPt (  )  [inline]

const EndPoint& getFrontLeftPt (  )  const [inline]

Definition at line 75 of file TargetData.h.

const EndPoint& getFrontRightPt (  )  const [inline]

Definition at line 76 of file TargetData.h.

EndPoint& getBackLeftPt (  )  [inline]

EndPoint& getBackRightPt (  )  [inline]

const EndPoint& getBackLeftPt (  )  const [inline]

Definition at line 80 of file TargetData.h.

const EndPoint& getBackRightPt (  )  const [inline]

Definition at line 81 of file TargetData.h.

EndPoint& getFrontIntersect (  )  [inline]

Definition at line 83 of file TargetData.h.

EndPoint& getBackIntersect (  )  [inline]

Definition at line 84 of file TargetData.h.

const EndPoint& getFrontIntersect (  )  const [inline]

Definition at line 85 of file TargetData.h.

const EndPoint& getBackIntersect (  )  const [inline]

Definition at line 86 of file TargetData.h.

bool isFrontValid (  )  [inline]

Definition at line 88 of file TargetData.h.

bool isBackValid (  )  [inline]

Definition at line 89 of file TargetData.h.

AngSignPi getOrientation (  )  [inline]

Definition at line 91 of file TargetData.h.

float getLength (  )  [inline]

Definition at line 92 of file TargetData.h.

float getWidth (  )  [inline]

Definition at line 93 of file TargetData.h.

float getHeight (  )  [inline]

Definition at line 94 of file TargetData.h.

TargetData & operator= ( const TargetData other  ) 

Definition at line 470 of file TargetData.cc.

float perpendicularDistanceFrom ( Point  point  ) 

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

Referenced by TargetData::extractLineTarget(), and MapBuilder::getCamTargets().

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

Definition at line 528 of file TargetData.cc.

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

Definition at line 546 of file TargetData.cc.

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

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

Implements BaseData.

Definition at line 453 of file TargetData.cc.


Member Data Documentation


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

DualCoding 4.0
Generated Thu Nov 22 00:54:07 2007 by Doxygen 1.5.4