Homepage Demos Overview Downloads Tutorials 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, 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)
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 ()
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)
 Transformation and Location Utilities.
Point getCentroid (void)
 Transformation and Location Utilities.
Point getCentroidOfSubset (const std::vector< ShapeRoot > &subset)
 Transformation and Location Utilities.

Public Attributes

string name
 Name of the ShapeSpace.

Private Member Functions

ShapeRootaddShape (BaseData *p)
 ShapeSpace (const ShapeSpace &)
 never call this
ShapeSpaceoperator= (const ShapeSpace &)
 never call this

Private Attributes

SketchSpacedualSpace
int id_counter
vector< ShapeRootshapeCache
ReferenceFrameType_t refFrameType

Friends

class SketchSpace
class ShapeRoot
class VisualRoutinesBehavior


Constructor & Destructor Documentation

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

Constructor for ShapeSpace; requires dual SketchSpace.

Definition at line 26 of file ShapeSpace.cc.

~ShapeSpace ( void   ) 

Definition at line 36 of file ShapeSpace.cc.

ShapeSpace ( const ShapeSpace  )  [private]

never call this


Member Function Documentation

ShapeRoot & addShape ( BaseData p  )  [private]

Definition at line 41 of file ShapeSpace.cc.

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

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

Definition at line 117 of file ShapeSpace.cc.

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

Definition at line 107 of file ShapeSpace.cc.

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

Definition at line 68 of file ShapeSpace.h.

void applyTransform ( const NEWMAT::Matrix &  Tmat  ) 

Transformation and Location Utilities.

Definition at line 87 of file ShapeSpace.cc.

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

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

Definition at line 74 of file ShapeSpace.h.

void deleteShape ( ShapeRoot b  ) 

Definition at line 63 of file ShapeSpace.cc.

Referenced by ShapeRoot::deleteShape().

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

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

Definition at line 75 of file ShapeSpace.h.

Point getCentroid ( void   ) 

Transformation and Location Utilities.

Definition at line 94 of file ShapeSpace.cc.

Referenced by ShapeSpace::getShapeListForGUI().

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

Transformation and Location Utilities.

Referenced by ShapeSpace::getCentroid().

ReferenceFrameType_t getRefFrameType (  )  const [inline]

Definition at line 57 of file ShapeSpace.h.

Referenced by BaseData::getRefFrameType(), PointData::PointData(), and BlobData::render().

string getShapeListForGUI ( void   ) 

Definition at line 127 of file ShapeSpace.cc.

Referenced by VRmixin::processSketchRequest().

BaseData * importShape ( const ShapeRoot foreign_shape  ) 

Definition at line 53 of file ShapeSpace.cc.

Referenced by MapBuilder::importWorldToLocal().

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

operator std::vector (  )  [inline]

Definition at line 73 of file ShapeSpace.h.

ShapeSpace& operator= ( const ShapeSpace  )  [private]

never call this

void printParams ( void   ) 

Definition at line 220 of file ShapeSpace.cc.

void printSummary ( void   ) 

Definition at line 249 of file ShapeSpace.cc.


Friends And Related Function Documentation

friend class ShapeRoot [friend]

Definition at line 34 of file ShapeSpace.h.

Referenced by ShapeSpace::addShape().

friend class SketchSpace [friend]

Definition at line 33 of file ShapeSpace.h.

friend class VisualRoutinesBehavior [friend]

Definition at line 35 of file ShapeSpace.h.


Member Data Documentation

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().

string name

Name of the ShapeSpace.

Definition at line 39 of file ShapeSpace.h.

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

Definition at line 46 of file ShapeSpace.h.

Referenced by ShapeSpace::getRefFrameType().


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

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