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