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 GtpVisibilityPreprocessor::Environment::GetSingleton()->ReadEnvFile(filename.c_str());
|
---|
24 | return false;
|
---|
25 | }
|
---|
26 | //-----------------------------------------------------------------------
|
---|
27 | std::string VisibilityEnvironment::getSceneFileName()
|
---|
28 | {
|
---|
29 | char str[200];
|
---|
30 | //GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("Scene.filename", str);
|
---|
31 | return str;
|
---|
32 | }
|
---|
33 | //-----------------------------------------------------------------------
|
---|
34 | std::string VisibilityEnvironment::getViewCellsFileName()
|
---|
35 | {
|
---|
36 | char str[200];
|
---|
37 | //GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("ViewCells.filename", str);
|
---|
38 |
|
---|
39 | return str;
|
---|
40 | }
|
---|
41 | //-----------------------------------------------------------------------
|
---|
42 | /*GtpVisibilityPreprocessor::Environment *VisibilityEnvironment::GetPreprocessorEnvironment()
|
---|
43 | {
|
---|
44 | return GtpVisibilityPreprocessor::Environment::GetSingleton();
|
---|
45 | }*/
|
---|
46 |
|
---|
47 | } // namespace GtpVisibility
|
---|