source: GTP/trunk/App/Demos/Vis/FriendlyCulling/src/BvhLoader.h @ 3266

Revision 3266, 931 bytes checked in by mattausch, 16 years ago (diff)
Line 
1// This file has been written by Jiri Bittner, October 2006
2
3#ifndef __BVHLOADER_H
4#define __BVHLOADER_H
5
6#include "Bvh.h"
7
8class igzstream;
9
10
11namespace CHCDemoEngine
12{
13
14/** Loads or creates a bounding volume hierarchy.
15*/
16class BvhFactory
17{
18public:
19        /** Creates a bvh.
20                the static part of the hierarchy is loaded from disc.
21                the dynamic part of the hierarchy is created from scratch.
22        */
23        Bvh *Create(const std::string &staticBvhFilename,
24                        const SceneEntityContainer &staticEntities,
25                                const SceneEntityContainer &dynamicEntities,
26                                int maxDepthForTestingChildren);
27
28        /** Creates a bvh from scratch.
29        */
30        Bvh *Create(
31                        const SceneEntityContainer &staticEntities,
32                                const SceneEntityContainer &dynamicEntities,
33                                int maxDepthForTestingChildren);
34
35protected:
36       
37        BvhNode *LoadNextNode(igzstream &stream, BvhInterior *parent);
38};
39
40}
41
42#endif // __BVHLOADER_H
Note: See TracBrowser for help on using the repository browser.