#include <deque>
#include "terrainsampler.hxx"
+
using simgear::PropertyList;
+using std::deque;
+using std::vector;
+using std::ostringstream;
+using std::string;
-#include "tiedpropertylist.hxx"
+#include <simgear/props/tiedpropertylist.hxx>
namespace Environment {
/**
SGPropertyNode_ptr _positionLongitudeNode;
deque<double> _elevations;
- TiedPropertyList _tiedProperties;
+ simgear::TiedPropertyList _tiedProperties;
};
AreaSampler::AreaSampler( SGPropertyNode_ptr rootNode ) :
}
}
+/*
double alt_low_min = 0.0;
double n_max = 0.0;
sum = 0.0;
break;
}
}
-
+*/
_altLayered = 0.5 * (_altMin + _altOffset);
#if 0
virtual ~TerrainSamplerImplementation ();
virtual void init ();
+ virtual InitStatus incrementalInit ();
virtual void postinit();
virtual void reinit ();
virtual void bind();
SGPropertyNode_ptr _rootNode;
bool _enabled;
- TiedPropertyList _tiedProperties;
+ simgear::TiedPropertyList _tiedProperties;
};
TerrainSamplerImplementation::TerrainSamplerImplementation( SGPropertyNode_ptr rootNode ) :
TerrainSamplerImplementation::~TerrainSamplerImplementation()
{
}
+
+SGSubsystem::InitStatus TerrainSamplerImplementation::incrementalInit()
+{
+ init();
+ return INIT_DONE;
+}
void TerrainSamplerImplementation::init()
{
if( subsys == NULL )
break;
remove_subsystem( subsystemName );
+ subsys->unbind();
+ delete subsys;
}
init();