AnimatLab  2
Test
OsgMeshMgr.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace OsgAnimatSim
10 {
11 
18  class ANIMAT_OSG_PORT OsgMeshMgr
19  {
20  protected:
21  CStdMap<std::string, std::pair<std::string, osg::ref_ptr<osg::Node>> > m_aryMeshes;
22 
23  std::string FileCreateTime(std::string strFilename);
24  osg::Node *AddMesh(std::string strFilename);
25 
26  public:
27  OsgMeshMgr();
28  virtual ~OsgMeshMgr();
29 
30  osg::Node *LoadMesh(std::string strFilename);
31  void ReleaseMesh(std::string strFilename);
32  bool ContainesMesh(std::string strFilename);
33  bool FindMesh(std::string strFilename, std::pair<std::string, osg::ref_ptr<osg::Node>> &MeshPair, bool bThrowError = true);
34  };
35 
36 } //OsgAnimatSim
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
Vortex physical structure implementation.
Definition: OsgMeshMgr.h:18