Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

ShapeSpace Class Reference

#include <ShapeSpace.h>

List of all members.


Detailed Description

Holds a collection of diverse shapes such as LineData or EllipseData.

Definition at line 31 of file ShapeSpace.h.


Public Member Functions

 ShapeSpace (SketchSpace *dualSkS, int init_id=70000, std::string const _name="", ReferenceFrameType_t _refFrameType=camcentric)
 Constructor for ShapeSpace; requires dual SketchSpace.
 ~ShapeSpace (void)
SketchSpacegetDualSpace (void) const
ReferenceFrameType_t getRefFrameType () const
void importShapes (std::vector< ShapeRoot > &foreign_shapes)
BaseDataimportShape (const ShapeRoot &foreign_shape)
void deleteShape (ShapeRoot &b)
void deleteShapes (std::vector< ShapeRoot > &shapes_vec)
template<typename T>
void deleteShapes ()
void clear ()
std::vector< ShapeRoot > & allShapes (void)
const std::vector< ShapeRoot > & allShapes (void) const
std::vector< ShapeRootallShapes (ShapeType_t type)
std::vector< ShapeRootallShapes (rgb color)
 operator std::vector< ShapeRoot > & ()
std::vector< ShapeRoot >::iterator begin ()
std::vector< ShapeRoot >::iterator end ()
std::string getShapeListForGUI (void)
void printParams (void)
void printSummary (void)
void applyTransform (const NEWMAT::Matrix &Tmat, const ReferenceFrameType_t newref=unspecified)
 Transformation and Location Utilities.
Point getCentroid (void)
 Transformation and Location Utilities.
Point getCentroidOfSubset (const std::vector< ShapeRoot > &subset)
 Transformation and Location Utilities.

Public Attributes

std::string name
 Name of the ShapeSpace.

Private Member Functions

ShapeRootaddShape (BaseData *p)
 ShapeSpace (const ShapeSpace &)
 never call this
ShapeSpaceoperator= (const ShapeSpace &)
 never call this
void deleteShapeType (ShapeType_t type)

Private Attributes

SketchSpacedualSpace
int id_counter
std::vector< ShapeRootshapeCache
ReferenceFrameType_t refFrameType

Friends

class SketchSpace
class ShapeRoot
class VisualRoutinesBehavior

Constructor & Destructor Documentation

ShapeSpace ( SketchSpace dualSkS,
int  init_id = 70000,
std::string const   _name = "",
ReferenceFrameType_t  _refFrameType = camcentric 
)

Constructor for ShapeSpace; requires dual SketchSpace.

Definition at line 31 of file ShapeSpace.cc.

~ShapeSpace ( void   ) 

Definition at line 41 of file ShapeSpace.cc.

ShapeSpace ( const ShapeSpace  )  [private]

never call this


Member Function Documentation

ShapeRoot & addShape ( BaseData p  )  [private]

Definition at line 46 of file ShapeSpace.cc.

Referenced by ShapeRoot::addShape(), and ShapeSpace::importShape().

ReferenceFrameType_t getRefFrameType (  )  const [inline]

void importShapes ( std::vector< ShapeRoot > &  foreign_shapes  ) 

BaseData * importShape ( const ShapeRoot foreign_shape  ) 

Definition at line 58 of file ShapeSpace.cc.

Referenced by ShapeSpace::importShapes(), and MapBuilder::importWorldToLocal().

void deleteShapes ( std::vector< ShapeRoot > &  shapes_vec  ) 

void deleteShapes (  )  [inline]

Definition at line 64 of file ShapeSpace.h.

const std::vector<ShapeRoot>& allShapes ( void   )  const [inline]

Definition at line 69 of file ShapeSpace.h.

std::vector< ShapeRoot > allShapes ( ShapeType_t  type  ) 

Definition at line 112 of file ShapeSpace.cc.

std::vector< ShapeRoot > allShapes ( rgb  color  ) 

Definition at line 122 of file ShapeSpace.cc.

operator std::vector< ShapeRoot > & (  )  [inline]

Definition at line 74 of file ShapeSpace.h.

std::vector<ShapeRoot>::iterator begin (  )  [inline]

Definition at line 75 of file ShapeSpace.h.

std::vector<ShapeRoot>::iterator end (  )  [inline]

Definition at line 76 of file ShapeSpace.h.

std::string getShapeListForGUI ( void   ) 

Definition at line 132 of file ShapeSpace.cc.

Referenced by VRmixin::processSketchRequest().

void printParams ( void   ) 

Definition at line 230 of file ShapeSpace.cc.

void printSummary ( void   ) 

Definition at line 255 of file ShapeSpace.cc.

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

Transformation and Location Utilities.

Definition at line 92 of file ShapeSpace.cc.

Referenced by MapBuilder::determineNextGazePoint(), MapBuilder::extendWorld(), and MapBuilder::importLocalToWorld().

Point getCentroid ( void   ) 

Transformation and Location Utilities.

Definition at line 99 of file ShapeSpace.cc.

Referenced by ShapeSpace::getCentroidOfSubset(), and ShapeSpace::getShapeListForGUI().

Point getCentroidOfSubset ( const std::vector< ShapeRoot > &  subset  ) 

Transformation and Location Utilities.

Definition at line 104 of file ShapeSpace.cc.

Referenced by ShapeSpace::getCentroid().

ShapeSpace& operator= ( const ShapeSpace  )  [private]

never call this

void deleteShapeType ( ShapeType_t  type  )  [private]

Definition at line 285 of file ShapeSpace.cc.

Referenced by ShapeSpace::deleteShapes().


Friends And Related Function Documentation

friend class SketchSpace [friend]

Definition at line 33 of file ShapeSpace.h.

friend class ShapeRoot [friend]

Definition at line 34 of file ShapeSpace.h.

Referenced by ShapeSpace::addShape().

friend class VisualRoutinesBehavior [friend]

Definition at line 35 of file ShapeSpace.h.


Member Data Documentation

std::string name

Name of the ShapeSpace.

Definition at line 39 of file ShapeSpace.h.

Referenced by MapBuilder::matchSrcToDst(), and DualCoding::operator<<().

SketchSpace* dualSpace [private]

Definition at line 42 of file ShapeSpace.h.

Referenced by ShapeSpace::getDualSpace().

int id_counter [private]

Definition at line 43 of file ShapeSpace.h.

Referenced by ShapeSpace::addShape().

Definition at line 46 of file ShapeSpace.h.

Referenced by ShapeSpace::getRefFrameType().


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

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