CheckSceneryVisitor::CheckSceneryVisitor(osgDB::DatabasePager* dbp, osg::Vec3 &position, double range)
:osg::NodeVisitor(osg::NodeVisitor::NODE_VISITOR,
osg::NodeVisitor::TRAVERSE_ACTIVE_CHILDREN),
-_loaded(true), _position(position), _range(range), _dbp(dbp)
+_position(position), _range(range), _loaded(true), _dbp(dbp)
{
_viewMatrices.push_back(osg::Matrix::identity());
}
last_course(0.0),
last_coverage(0.0),
coverage(0.0),
- defined3D(false),
- reposition_count(0)
+ reposition_count(0),
+ defined3D(false)
{
cld_pos = SGGeoc();
field_root->addChild(field_transform.get());
// Constructor
TileEntry::TileEntry ( const SGBucket& b )
: tile_bucket( b ),
+ tileFileName(b.gen_index_str()),
_node( new osg::LOD ),
- is_inner_ring(false),
- tileFileName(b.gen_index_str())
+ is_inner_ring(false)
{
_node->setCullCallback(new TileCullCallback);
tileFileName += ".stg";
struct MakeTreesLeaf
{
MakeTreesLeaf(float range, Geometry* geometry, int varieties) :
- _range(range), _geometry(geometry), _varieties(varieties)
+ _range(range), _varieties(varieties), _geometry(geometry)
{}
MakeTreesLeaf(const MakeTreesLeaf& rhs) :
- _range(rhs._range), _geometry(rhs._geometry), _varieties(rhs._varieties) {}
+ _range(rhs._range), _varieties(rhs._varieties), _geometry(rhs._geometry) {}
LOD* operator() () const
{
LOD* result = new LOD;