Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

ShapeSpace Class Reference

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

#include <ShapeSpace.h>


Detailed Description

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

Definition at line 30 of file ShapeSpace.h.

List of all members.

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 (std::vector< Shape< T > > &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)
ShapeRoot getShapeFromId (int id)
 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 fmat::Transform &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 44 of file ShapeSpace.cc.

~ShapeSpace ( void   ) 

Definition at line 54 of file ShapeSpace.cc.

ShapeSpace ( const ShapeSpace  )  [private]

never call this


Member Function Documentation

ShapeRoot & addShape ( BaseData p  )  [private]

Definition at line 59 of file ShapeSpace.cc.

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

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

Definition at line 136 of file ShapeSpace.cc.

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

Definition at line 126 of file ShapeSpace.cc.

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

Definition at line 71 of file ShapeSpace.h.

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

Transformation and Location Utilities.

Definition at line 106 of file ShapeSpace.cc.

std::vector<ShapeRoot>::iterator begin (  ) 

Definition at line 79 of file ShapeSpace.h.

void clear (  ) 

Definition at line 100 of file ShapeSpace.cc.

Referenced by VRmixin::projectToGround(), and VRmixin::~VRmixin().

void deleteShapes (  ) 

Definition at line 66 of file ShapeSpace.h.

Referenced by ShapeSpace::deleteShapes().

void deleteShapes ( std::vector< Shape< T > > &  shapes_vec  ) 

Definition at line 63 of file ShapeSpace.h.

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

Definition at line 95 of file ShapeSpace.cc.

Referenced by AgentData::extractAgents().

void deleteShapeType ( ShapeType_t  type  )  [private]

Definition at line 491 of file ShapeSpace.cc.

Referenced by ShapeSpace::deleteShapes().

std::vector<ShapeRoot>::iterator end (  ) 

Definition at line 80 of file ShapeSpace.h.

Point getCentroid ( void   ) 

Transformation and Location Utilities.

Definition at line 113 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 118 of file ShapeSpace.cc.

Referenced by ShapeSpace::getCentroid().

ShapeRoot getShapeFromId ( int  id  ) 

Definition at line 146 of file ShapeSpace.cc.

std::string getShapeListForGUI ( void   ) 

Definition at line 158 of file ShapeSpace.cc.

Referenced by VRmixin::processSketchRequest().

BaseData * importShape ( const ShapeRoot foreign_shape  ) 

Definition at line 72 of file ShapeSpace.cc.

Referenced by ShapeSpace::importShapes().

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

Definition at line 66 of file ShapeSpace.cc.

Referenced by VRmixin::projectToGround().

operator std::vector< ShapeRoot > & (  ) 

Definition at line 78 of file ShapeSpace.h.

ShapeSpace& operator= ( const ShapeSpace  )  [private]

never call this

void printParams ( void   ) 

Definition at line 436 of file ShapeSpace.cc.

void printSummary ( void   ) 

Definition at line 461 of file ShapeSpace.cc.


Friends And Related Function Documentation

friend class ShapeRoot [friend]

Definition at line 33 of file ShapeSpace.h.

Referenced by ShapeSpace::addShape(), and ShapeSpace::getShapeFromId().

friend class SketchSpace [friend]

Definition at line 32 of file ShapeSpace.h.

friend class VisualRoutinesBehavior [friend]

Definition at line 34 of file ShapeSpace.h.


Member Data Documentation

SketchSpace* dualSpace [private]

Definition at line 41 of file ShapeSpace.h.

Referenced by ShapeSpace::getDualSpace().

int id_counter [private]

Definition at line 42 of file ShapeSpace.h.

Referenced by ShapeSpace::addShape().

std::string name

Name of the ShapeSpace.

Definition at line 38 of file ShapeSpace.h.

Definition at line 45 of file ShapeSpace.h.

Referenced by ShapeSpace::getRefFrameType().


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