Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

GraphicsData Class Reference

Graphical display of a collection of lines, ellipses, particles, and text objects. More...

#include <GraphicsData.h>

Inheritance diagram for GraphicsData:

Detailed Description

Graphical display of a collection of lines, ellipses, particles, and text objects.

Definition at line 17 of file GraphicsData.h.

List of all members.

Classes

class  AxisAngleElement
class  BoundingBoxElement
class  CircleElement
class  EllipseElement
class  GraphicsElement
class  LineElement
class  LocalizationParticleElement
class  PointElement
class  PolygonElement
class  TextElement

Public Types

enum  GraphicsElementType {
  lineGType, polygonGType, ellipseGType, textGType,
  locParticleGType, axisAngleGType, pointGType, boundingGType
}
typedef std::pair< float, floatxyPair
typedef fmat::Column< 3 > xyzPair

Public Member Functions

 GraphicsData (ShapeSpace &_space)
 DATASTUFF_H (GraphicsData)
virtual ~GraphicsData ()
void add (const GraphicsElement *element)
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.
Point getCentroid () const
 return the centroid of the shape in point format
virtual void printParams () const
 Prints information about this shape.
void applyTransform (const fmat::Transform &Tmat, const ReferenceFrameType_t newref=unspecified)
 Apply a transformation matrix to the shape.
virtual void projectToGround (const fmat::Transform &camToBase, const PlaneEquation &groundplane)
 Project to ground plane using given matrix.
virtual unsigned short getDimension () const

Static Public Member Functions

static ShapeType_t getStaticType ()

Public Attributes

std::vector< const
GraphicsElement * > 
elements

Private Member Functions

virtual Sketch< bool > * render () const
 Render into a sketch space.

Member Typedef Documentation

typedef std::pair<float,float> xyPair

Definition at line 19 of file GraphicsData.h.

typedef fmat::Column<3> xyzPair

Definition at line 20 of file GraphicsData.h.


Member Enumeration Documentation

Enumerator:
lineGType 
polygonGType 
ellipseGType 
textGType 
locParticleGType 
axisAngleGType 
pointGType 
boundingGType 

Definition at line 22 of file GraphicsData.h.


Constructor & Destructor Documentation

GraphicsData ( ShapeSpace _space  ) 

Definition at line 12 of file GraphicsData.cc.

~GraphicsData (  )  [virtual]

Definition at line 18 of file GraphicsData.cc.


Member Function Documentation

void add ( const GraphicsElement element  ) 

Definition at line 27 of file GraphicsData.cc.

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

Apply a transformation matrix to the shape.

Implements BaseData.

Definition at line 179 of file GraphicsData.h.

DATASTUFF_H ( GraphicsData   ) 
Point getCentroid (  )  const [virtual]

return the centroid of the shape in point format

Implements BaseData.

Definition at line 177 of file GraphicsData.h.

virtual unsigned short getDimension (  )  const [virtual]

Implements BaseData.

Definition at line 182 of file GraphicsData.h.

static ShapeType_t getStaticType (  )  [static]

Definition at line 167 of file GraphicsData.h.

virtual 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 175 of file GraphicsData.h.

void printParams (  )  const [virtual]

Prints information about this shape.

Implements BaseData.

Definition at line 31 of file GraphicsData.cc.

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

Project to ground plane using given matrix.

Implements BaseData.

Definition at line 180 of file GraphicsData.h.

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

Render into a sketch space.

Implements BaseData.

Definition at line 36 of file GraphicsData.cc.

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

Update shape parameters after matching to another shape.

Implements BaseData.

Definition at line 176 of file GraphicsData.h.


Member Data Documentation

std::vector<const GraphicsElement*> elements

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