Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

NaughtData Class Reference

#include <NaughtData.h>

Inheritance diagram for NaughtData:

Detailed Description

Definition at line 14 of file NaughtData.h.

List of all members.

Public Member Functions

 NaughtData (ShapeSpace &_space, const Point &_centroid, float _height=0, float _radius=0)
 Constructor.
 DATASTUFF_H (NaughtData)
Point getCentroid () const
 Centroid. (Virtual in BaseData.).
void setCentroidPt (const Point &other)
float getRadius () const
float getHeight () const
virtual bool isMatchFor (const ShapeRoot &other) const
 Shapes match if their coordinates agree. DOES NOT Assume type and color already checked.
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.).
virtual short unsigned int getDimension () const
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 plane using given matrix.
virtual Sketch< bool > * render () const
 Render into a sketch space.

Static Public Member Functions

static ShapeType_t getStaticType ()
static std::vector< Shape
< NaughtData > > 
extractNaughts (const Sketch< bool > &sketch, const fmat::Column< 3 > &dimensions)

Private Attributes

Point centroid
float height
float radius

Constructor & Destructor Documentation

NaughtData ( ShapeSpace _space,
const Point _centroid,
float  _height = 0,
float  _radius = 0 
)

Constructor.

Definition at line 27 of file NaughtData.cc.


Member Function Documentation

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

Transformations. (Virtual in BaseData.).

Implements BaseData.

Definition at line 63 of file NaughtData.cc.

DATASTUFF_H ( NaughtData   ) 
std::vector< Shape< NaughtData > > extractNaughts ( const Sketch< bool > &  sketch,
const fmat::Column< 3 > &  dimensions 
) [static]

Definition at line 75 of file NaughtData.cc.

Point getCentroid (  )  const [virtual]

Centroid. (Virtual in BaseData.).

Implements BaseData.

Definition at line 29 of file NaughtData.h.

virtual short unsigned int getDimension (  )  const [virtual]

Implements BaseData.

Definition at line 42 of file NaughtData.h.

float getHeight (  )  const

Definition at line 33 of file NaughtData.h.

float getRadius (  )  const

Definition at line 32 of file NaughtData.h.

static ShapeType_t getStaticType (  )  [static]

Definition at line 24 of file NaughtData.h.

bool isMatchFor ( const ShapeRoot other  )  const [virtual]

Shapes match if their coordinates agree. DOES NOT Assume type and color already checked.

Implements BaseData.

Definition at line 30 of file NaughtData.cc.

void printParams (  )  const [virtual]

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

Implements BaseData.

Definition at line 55 of file NaughtData.cc.

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

Project to ground plane using given matrix.

Implements BaseData.

Definition at line 67 of file NaughtData.cc.

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

Render into a sketch space.

Implements BaseData.

Definition at line 140 of file NaughtData.cc.

void setCentroidPt ( const Point other  ) 

Definition at line 30 of file NaughtData.h.

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

Update shape parameters after matching to another shape.

Implements BaseData.

Definition at line 44 of file NaughtData.cc.


Member Data Documentation


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

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