source: GTP/trunk/Lib/Vis/Preprocessing/src/SceneGraph.h @ 1002

Revision 1002, 885 bytes checked in by mattausch, 18 years ago (diff)

debug run: fixing memory holes

Line 
1#ifndef _SceneGraph_H__
2#define _SceneGraph_H__
3
4#include <string>
5using namespace std;
6
7#include "Containers.h"
8#include "AxisAlignedBox3.h"
9
10namespace GtpVisibilityPreprocessor {
11 
12/** Basic scene graph node, we are interested only in bounding boxes and topology
13    of the scene graph
14        */
15class SceneGraphNode {
16public:
17  ObjectContainer mGeometry;
18  SceneGraphNodeContainer mChildren;
19  AxisAlignedBox3 mBox;
20  ~SceneGraphNode();
21  void UpdateBox();
22};
23
24
25/** Scene graph class */
26class SceneGraph {
27
28public:
29
30        ~SceneGraph();
31
32  SceneGraphNode *mRoot;
33  bool Export(const string filename);
34 
35  int
36  CollectObjects(ObjectContainer *instances);
37 
38  int
39  AssignObjectIds();
40 
41  void
42  GetStatistics(int &intersectables, int &faces) const;
43
44  AxisAlignedBox3 GetBox() const { return mRoot->mBox; }
45 
46protected:
47};
48
49
50}
51
52#endif
Note: See TracBrowser for help on using the repository browser.