Revision 59,
1.3 KB
checked in by mattausch, 20 years ago
(diff) |
completely changed file structure plus software design
|
Line | |
---|
1 | #include "HierarchyInterface.h"
|
---|
2 |
|
---|
3 | //#include <windows.h>
|
---|
4 |
|
---|
5 | namespace GtpVisibility {
|
---|
6 |
|
---|
7 | //-----------------------------------------------------------------------
|
---|
8 | HierarchyInterface::HierarchyInterface():
|
---|
9 | mFrameId(1), mNumSceneNodes(0), mNumTraversedNodes(0),
|
---|
10 | mNumRenderedNodes(0), mSceneRoot(0), mCurrentTestIdx(0)
|
---|
11 | {
|
---|
12 | mDistanceQueue = new DistanceQueue(GreaterDistance<HierarchyNode *>(this));
|
---|
13 | }
|
---|
14 | //-----------------------------------------------------------------------
|
---|
15 | HierarchyInterface::~HierarchyInterface()
|
---|
16 | {
|
---|
17 | delete mDistanceQueue;
|
---|
18 | }
|
---|
19 | //-----------------------------------------------------------------------
|
---|
20 | void HierarchyInterface::SetSceneRoot(HierarchyNode *root)
|
---|
21 | {
|
---|
22 | mSceneRoot = root;
|
---|
23 | }
|
---|
24 | //-----------------------------------------------------------------------
|
---|
25 | void HierarchyInterface::InitFrame(HierarchyNode *root)
|
---|
26 | {
|
---|
27 | mFrameId = 0;
|
---|
28 | mNumTraversedNodes = 0;
|
---|
29 | mNumRenderedNodes = 0;
|
---|
30 |
|
---|
31 | SetSceneRoot(root);
|
---|
32 | mDistanceQueue->push(mSceneRoot);
|
---|
33 | }
|
---|
34 | //-----------------------------------------------------------------------
|
---|
35 | int HierarchyInterface::GetFrameId()
|
---|
36 | {
|
---|
37 | return mFrameId;
|
---|
38 | }
|
---|
39 | //-----------------------------------------------------------------------
|
---|
40 | DistanceQueue *HierarchyInterface::GetQueue()
|
---|
41 | {
|
---|
42 | return mDistanceQueue;
|
---|
43 | }
|
---|
44 | } // namespace GtpVisibility
|
---|
Note: See
TracBrowser
for help on using the repository browser.