source: GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityEnvironment.cpp @ 971

Revision 971, 1.5 KB checked in by mattausch, 18 years ago (diff)

added stuff for view cell ziping (not working yet!)

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