1 | #include "VisibilityEnvironment.h"
|
---|
2 | //#include "common.h"
|
---|
3 | //#include "Environment.h"
|
---|
4 |
|
---|
5 |
|
---|
6 | namespace GtpVisibility {
|
---|
7 |
|
---|
8 | //-----------------------------------------------------------------------
|
---|
9 | VisibilityEnvironment::VisibilityEnvironment()
|
---|
10 | {
|
---|
11 | // HACK: loading debug stream should not happen here
|
---|
12 | //GtpVisibilityPreprocessor::Debug.open("debug.log");
|
---|
13 | }
|
---|
14 | //-----------------------------------------------------------------------
|
---|
15 | VisibilityEnvironment::~VisibilityEnvironment()
|
---|
16 | {
|
---|
17 | //GtpVisibilityPreprocessor::Environment::DelSingleton();
|
---|
18 | }
|
---|
19 | //-----------------------------------------------------------------------
|
---|
20 | bool VisibilityEnvironment::LoadEnvironment(std::string filename)
|
---|
21 | {
|
---|
22 | //-- parse environment
|
---|
23 | return false;//GtpVisibilityPreprocessor::Environment::GetSingleton()->ReadEnvFile(filename.c_str());
|
---|
24 | }
|
---|
25 | //-----------------------------------------------------------------------
|
---|
26 | std::string VisibilityEnvironment::getSceneFileName()
|
---|
27 | {
|
---|
28 | char str[200];
|
---|
29 | //GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("Scene.filename", str);
|
---|
30 | return str;
|
---|
31 | }
|
---|
32 | //-----------------------------------------------------------------------
|
---|
33 | std::string VisibilityEnvironment::getViewCellsFileName()
|
---|
34 | {
|
---|
35 | char str[200];
|
---|
36 | //GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("ViewCells.filename", str);
|
---|
37 |
|
---|
38 | return str;
|
---|
39 | }
|
---|
40 | //-----------------------------------------------------------------------
|
---|
41 | /*GtpVisibilityPreprocessor::Environment *VisibilityEnvironment::GetPreprocessorEnvironment()
|
---|
42 | {
|
---|
43 | return GtpVisibilityPreprocessor::Environment::GetSingleton();
|
---|
44 | }*/
|
---|
45 |
|
---|
46 | } // namespace GtpVisibility
|
---|