Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Content3d.h
1 //
2 // Content3d.h
3 //
4 // Header for the Content Management classes.
5 //
6 // Copyright (c) 2003-2011 Virtual Terrain Project.
7 // Free for all uses, see license.txt for details.
8 //
9 
10 #ifndef VTLIB_CONTENT3DH
11 #define VTLIB_CONTENT3DH
12 
18 
19 #include "vtdata/Content.h"
20 
25 class vtItem3d : public vtItem
26 {
27 public:
28  bool LoadModels();
29  void UpdateExtents();
30 
31  NodePtr m_pNode;
32 };
33 
39 {
40 public:
43 
44  // implementation
45  osg::Node *CreateNodeFromItemname(const char *itemname);
46  virtual vtItem *NewItem() { return new vtItem3d; }
47  void ReleaseContents();
48 
49  vtGroupPtr m_pGroup;
50 };
51  // group content
53 
54 #endif // VTLIB_CONTENT3DH
55