Collision Checker
solver_entity_boost_factory.h
Go to the documentation of this file.
1 #ifndef CPP_COLLISION_INCLUDE_COLLISION_SOLVERS_BOOST_SOLVER_ENTITY_BOOST_FACTORY_H_
2 #define CPP_COLLISION_INCLUDE_COLLISION_SOLVERS_BOOST_SOLVER_ENTITY_BOOST_FACTORY_H_
8 
9 namespace collision {
10 namespace solvers {
11 namespace solverBoost {
13  const ISolverEntity_Boost *entity = obj->getBoostInterface();
14  if (!entity) return nullptr;
15  switch (entity->getBoostEntityType()) {
17  return new BoostCollisionObject(
18  static_cast<const CollisionObject *>(obj));
19  break;
20  default:
21  return nullptr;
22  break;
23  }
24 }
25 } // namespace solverBoost
26 } // namespace solvers
27 } // namespace collision
28 
29 #endif /* CPP_COLLISION_INCLUDE_COLLISION_SOLVERS_BOOST_SOLVER_ENTITY_BOOST_FACTORY_H_ \
30  */
virtual BOOST_COLLISION_ENTITY_TYPE getBoostEntityType(void) const
virtual const solvers::solverBoost::ISolverEntity_Boost * getBoostInterface(void) const
SolverEntity_Boost * createBoostSolverEntity(const CollisionObjectEx *obj)
Provides functionality to use different collision solvers.