Choreonoid  1.8
SceneCollision.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BODY_SCENE_COLLISION_H
6 #define CNOID_BODY_SCENE_COLLISION_H
7 
8 #include "CollisionLinkPair.h"
9 #include <cnoid/SceneDrawables>
10 #include "exportdecl.h"
11 
12 namespace cnoid {
13 
14 class SceneRenderer;
15 
16 class CNOID_EXPORT SceneCollision : public SgLineSet
17 {
18 public:
19  SceneCollision(std::shared_ptr<std::vector<CollisionLinkPairPtr>> collisionPairs);
20  void setDirty() { isDirty = true; }
21  void render(SceneRenderer* renderer);
22 
23 private:
24  SceneCollision(const SceneCollision& org);
25 
26  std::shared_ptr<std::vector<CollisionLinkPairPtr>> collisionPairs;
27  SgVertexArrayPtr vertices_;
28  bool isDirty;
29 };
30 
32 
33 }
34 
35 #endif
cnoid::SgLineSet
Definition: SceneDrawables.h:660
cnoid::SceneCollisionPtr
ref_ptr< SceneCollision > SceneCollisionPtr
Definition: SceneCollision.h:31
cnoid::SceneCollision
Definition: SceneCollision.h:16
cnoid::ref_ptr< SgVertexArray >
CollisionLinkPair.h
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::SceneCollision::setDirty
void setDirty()
Definition: SceneCollision.h:20
cnoid::SceneRenderer
Definition: SceneRenderer.h:15