38 #ifndef FCL_BROAD_PHASE_BRUTE_FORCE_H 39 #define FCL_BROAD_PHASE_BRUTE_FORCE_H 42 #include "fcl/broadphase/broadphase_collision_manager.h" 102 std::list<CollisionObject<S>*>
objs;
110 #include "fcl/broadphase/broadphase_bruteforce-inl.h" void registerObject(CollisionObject< S > *obj)
add one object to the manager
Definition: broadphase_bruteforce-inl.h:74
Main namespace.
Definition: broadphase_bruteforce-inl.h:45
void getObjects(std::vector< CollisionObject< S > * > &objs) const
return the objects managed by the manager
Definition: broadphase_bruteforce-inl.h:102
void distance(CollisionObject< S > *obj, void *cdata, DistanceCallBack< S > callback) const
perform distance computation between one object and all the objects belonging to the manager ...
Definition: broadphase_bruteforce-inl.h:123
size_t size() const
the number of objects managed by the manager
Definition: broadphase_bruteforce-inl.h:244
void clear()
clear the manager
Definition: broadphase_bruteforce-inl.h:95
bool(*)(CollisionObject< S > *o1, CollisionObject< S > *o2, void *cdata) CollisionCallBack
Callback for collision between two objects. Return value is whether can stop now. ...
Definition: broadphase_collision_manager.h:53
bool(*)(CollisionObject< S > *o1, CollisionObject< S > *o2, void *cdata, S &dist) DistanceCallBack
Callback for distance between two objects, Return value is whether can stop now, also return the mini...
Definition: broadphase_collision_manager.h:60
void update()
update the condition of manager
Definition: broadphase_bruteforce-inl.h:88
void collide(CollisionObject< S > *obj, void *cdata, CollisionCallBack< S > callback) const
perform collision test between one object and all the objects belonging to the manager ...
Definition: broadphase_bruteforce-inl.h:110
std::list< CollisionObject< S > * > objs
objects belonging to the manager are stored in a list structure
Definition: broadphase_bruteforce.h:102
void registerObjects(const std::vector< CollisionObject< S > * > &other_objs)
add objects to the manager
Definition: broadphase_bruteforce-inl.h:60
bool empty() const
whether the manager is empty
Definition: broadphase_bruteforce-inl.h:237
the object for collision or distance computation, contains the geometry and the transform information...
Definition: collision_object.h:51
Brute force N-body collision manager.
Definition: broadphase_bruteforce.h:49
void unregisterObject(CollisionObject< S > *obj)
remove one object from the manager
Definition: broadphase_bruteforce-inl.h:67
Base class for broad phase collision. It helps to accelerate the collision/distance between N objects...
Definition: broadphase_collision_manager.h:66
void setup()
initialize the manager, related with the specific type of manager
Definition: broadphase_bruteforce-inl.h:81