hpp::corbaServer::ObjectMap Class Reference

#include <hpp/corbaserver/object-map.hh>

Collaboration diagram for hpp::corbaServer::ObjectMap:
[legend]

Classes

struct  PolyhedronData
 

Public Member Functions

void createBox (const std::string boxName, value_type x, value_type y, value_type z) throw (Error)
 
void createSphere (const std::string name, value_type radius) throw (Error)
 
void createCylinder (const std::string name, value_type radius, value_type length) throw (Error)
 
void createPolyhedron (const std::string polyhedronName) throw (hpp::Error)
 
std::size_t addPoint (const std::string polyhedronName, value_type x, value_type y, value_type z) throw (hpp::Error)
 
std::size_t addTriangle (const std::string polyhedronName, std::size_t pt1, std::size_t pt2, std::size_t pt3) throw (hpp::Error)
 
CollisionGeometryPtr_t geometry (const std::string name) throw (Error)
 

Protected Types

enum  GeomType {
  Shape = 1,
  Polyhedron = 2,
  BothGeomType = 3
}
 
enum  ThrowType {
  NoThrow,
  ThrowIfItExists,
  ThrowIfItDoesNotExist
}
 
typedef std::map< std::string, PolyhedronDataPolyhedronMap_t
 
typedef std::map< std::string, BasicShapePtr_tShapeMap_t
 

Protected Member Functions

template<GeomType geomType, ThrowType throwType>
bool nameExists (const std::string &name) const throw (hpp::Error)
 

Protected Attributes

ShapeMap_t shapeMap_
 Map of basic shapes. More...
 
PolyhedronMap_t polyhedronMap_
 Map of polyhedra in construction. More...
 

Member Typedef Documentation

typedef std::map<std::string, PolyhedronData> hpp::corbaServer::ObjectMap::PolyhedronMap_t
protected
typedef std::map<std::string, BasicShapePtr_t> hpp::corbaServer::ObjectMap::ShapeMap_t
protected

Member Enumeration Documentation

Enumerator
Shape 
Polyhedron 
BothGeomType 
Enumerator
NoThrow 
ThrowIfItExists 
ThrowIfItDoesNotExist 

Member Function Documentation

std::size_t hpp::corbaServer::ObjectMap::addPoint ( const std::string  polyhedronName,
value_type  x,
value_type  y,
value_type  z 
)
throw (hpp::Error
)
std::size_t hpp::corbaServer::ObjectMap::addTriangle ( const std::string  polyhedronName,
std::size_t  pt1,
std::size_t  pt2,
std::size_t  pt3 
)
throw (hpp::Error
)
void hpp::corbaServer::ObjectMap::createBox ( const std::string  boxName,
value_type  x,
value_type  y,
value_type  z 
)
throw (Error
)
void hpp::corbaServer::ObjectMap::createCylinder ( const std::string  name,
value_type  radius,
value_type  length 
)
throw (Error
)
void hpp::corbaServer::ObjectMap::createPolyhedron ( const std::string  polyhedronName)
throw (hpp::Error
)
void hpp::corbaServer::ObjectMap::createSphere ( const std::string  name,
value_type  radius 
)
throw (Error
)
CollisionGeometryPtr_t hpp::corbaServer::ObjectMap::geometry ( const std::string  name)
throw (Error
)
template<GeomType geomType, ThrowType throwType>
bool hpp::corbaServer::ObjectMap::nameExists ( const std::string &  name) const
throw (hpp::Error
)
protected

Member Data Documentation

PolyhedronMap_t hpp::corbaServer::ObjectMap::polyhedronMap_
protected

Map of polyhedra in construction.

ShapeMap_t hpp::corbaServer::ObjectMap::shapeMap_
protected

Map of basic shapes.