Homepage Demos Overview Downloads Tutorials Reference
Credits

BrickData Class Reference

#include <BrickData.h>

Inheritance diagram for BrickData:

Inheritance graph
[legend]
List of all members.

Detailed Description

Definition at line 25 of file BrickData.h.

Public Member Functions

 BrickData (ShapeSpace &_space, const EndPoint &GFL, const EndPoint &GFR, const EndPoint &GBL, const EndPoint &GBR, const EndPoint &TFL, const EndPoint &TFR, const EndPoint &TBL, const EndPoint &TBR)
 Constructor.
 DATASTUFF_H (BrickData)
Point getCentroid () const
 Centroid. (Virtual in BaseData.).
EndPoint getGFL ()
EndPoint getGFR ()
EndPoint getGBL ()
EndPoint getGBR ()
EndPoint getTFL ()
EndPoint getTFR ()
EndPoint getTBL ()
EndPoint getTBR ()
virtual bool isMatchFor (const ShapeRoot &other) const
 Match bricks based on their parameters. (Virtual in BaseData.).
virtual void mergeWith (const ShapeRoot &other)
virtual bool isAdmissible () const
 Shapes are admissible to the local map if they're large enough not to be noise.
virtual bool updateParams (const ShapeRoot &other, bool force=false)
 Update shape parameters after matching to another shape.
virtual void printParams () const
 Print information about this shape. (Virtual in BaseData.).
void applyTransform (const NEWMAT::Matrix &Tmat)
 Transformations. (Virtual in BaseData.).
virtual void projectToGround (const NEWMAT::Matrix &camToBase, const NEWMAT::ColumnVector &groundplane)
 Project to ground.
virtual unsigned short getDimension () const

Static Public Member Functions

static ShapeType_t getStaticType ()
 Copy constructor.
static std::vector< Shape<
BrickData > > 
findBricks (ShapeSpace &ShS, std::vector< Shape< LineData > > lines)
 Extraction.
static std::vector< Shape<
BrickData > > 
findBricksFromBlobs (ShapeSpace &ShS, std::vector< Shape< BlobData > > blobs1, std::vector< Shape< BlobData > > blobs2, std::vector< Shape< BlobData > > blobs3)
static Shape< BrickDataextractBrick (ShapeSpace &space, vector< Shape< BlobData > > &blobs)
static vector< PointfindOrthogonalBoundingBox (ShapeSpace &space, Shape< BlobData > blob, Point centroid, Shape< LineData > parallel)

Private Member Functions

Sketch< bool > * render () const
 Render into a sketch space and return reference. (Private.).
BrickDataoperator= (const BrickData &)
 don't call

Static Private Member Functions

static int addBrickWithTwoSides (ShapeSpace &ShS, std::vector< Point > &corners1, std::vector< Point > &corners2, std::vector< std::vector< Point > > &blobs3, std::vector< Shape< BrickData > > &result, float distanceThresh)

Private Attributes

EndPoint GFL
EndPoint GFR
EndPoint GBL
EndPoint GBR
EndPoint TFL
EndPoint TFR
EndPoint TBL
EndPoint TBR
Point centroid


Constructor & Destructor Documentation

BrickData ( ShapeSpace _space,
const EndPoint GFL,
const EndPoint GFR,
const EndPoint GBL,
const EndPoint GBR,
const EndPoint TFL,
const EndPoint TFR,
const EndPoint TBL,
const EndPoint TBR 
)

Constructor.

Definition at line 25 of file BrickData.cc.

Referenced by BrickData::extractBrick().


Member Function Documentation

int addBrickWithTwoSides ( ShapeSpace ShS,
std::vector< Point > &  corners1,
std::vector< Point > &  corners2,
std::vector< std::vector< Point > > &  blobs3,
std::vector< Shape< BrickData > > &  result,
float  distanceThresh 
) [static, private]

Definition at line 412 of file BrickData.cc.

Referenced by BrickData::findBricksFromBlobs().

void applyTransform ( const NEWMAT::Matrix &  Tmat  )  [virtual]

Transformations. (Virtual in BaseData.).

Implements BaseData.

Definition at line 99 of file BrickData.cc.

DATASTUFF_H ( BrickData   ) 

Shape< BrickData > extractBrick ( ShapeSpace space,
vector< Shape< BlobData > > &  blobs 
) [static]

Definition at line 609 of file BrickData.cc.

std::vector< Shape< BrickData > > findBricks ( ShapeSpace ShS,
std::vector< Shape< LineData > >  lines 
) [static]

Extraction.

Definition at line 172 of file BrickData.cc.

std::vector< Shape< BrickData > > findBricksFromBlobs ( ShapeSpace ShS,
std::vector< Shape< BlobData > >  blobs1,
std::vector< Shape< BlobData > >  blobs2,
std::vector< Shape< BlobData > >  blobs3 
) [static]

Definition at line 319 of file BrickData.cc.

vector< Point > findOrthogonalBoundingBox ( ShapeSpace space,
Shape< BlobData blob,
Point  centroid,
Shape< LineData parallel 
) [static]

Definition at line 1080 of file BrickData.cc.

Referenced by BrickData::extractBrick().

Point getCentroid (  )  const [inline, virtual]

Centroid. (Virtual in BaseData.).

Implements BaseData.

Definition at line 53 of file BrickData.h.

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

Implements BaseData.

Definition at line 83 of file BrickData.h.

EndPoint getGBL (  )  [inline]

Definition at line 57 of file BrickData.h.

EndPoint getGBR (  )  [inline]

Definition at line 58 of file BrickData.h.

EndPoint getGFL (  )  [inline]

Definition at line 55 of file BrickData.h.

EndPoint getGFR (  )  [inline]

Definition at line 56 of file BrickData.h.

static ShapeType_t getStaticType (  )  [inline, static]

Copy constructor.

Definition at line 49 of file BrickData.h.

EndPoint getTBL (  )  [inline]

Definition at line 61 of file BrickData.h.

EndPoint getTBR (  )  [inline]

Definition at line 62 of file BrickData.h.

EndPoint getTFL (  )  [inline]

Definition at line 59 of file BrickData.h.

EndPoint getTFR (  )  [inline]

Definition at line 60 of file BrickData.h.

virtual bool isAdmissible (  )  const [inline, virtual]

Shapes are admissible to the local map if they're large enough not to be noise.

Reimplemented from BaseData.

Definition at line 69 of file BrickData.h.

bool isMatchFor ( const ShapeRoot other  )  const [virtual]

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

Implements BaseData.

Definition at line 40 of file BrickData.cc.

void mergeWith ( const ShapeRoot other  )  [virtual]

Definition at line 49 of file BrickData.cc.

BrickData& operator= ( const BrickData  )  [private]

don't call

void printParams (  )  const [virtual]

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

Implements BaseData.

Definition at line 76 of file BrickData.cc.

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

Project to ground.

Implements BaseData.

Definition at line 110 of file BrickData.cc.

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

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

Implements BaseData.

Definition at line 145 of file BrickData.cc.

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

Update shape parameters after matching to another shape.

Implements BaseData.

Definition at line 59 of file BrickData.cc.


Member Data Documentation


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

DualCoding 3.0beta
Generated Wed Oct 4 00:02:25 2006 by Doxygen 1.4.7