Attempts to fix compile problems under IRIX due to namespace problems.

This commit is contained in:
Robert Osfield
2004-01-29 15:47:51 +00:00
parent 965ed49427
commit dea75f5510
17 changed files with 24 additions and 10 deletions

View File

@@ -36,7 +36,7 @@ public:
uvarupdate=NULL; extvarupdate=NULL;
};
geoHeader(const geoHeader &geo,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) :
PositionAttitudeTransform(geo,copyop)
osg::PositionAttitudeTransform(geo,copyop)
{
// const geoHeaderGeo *ghg=static_cast<const geoHeaderGeo *> (&geo);
}

View File

@@ -234,7 +234,7 @@ class SeamFinder: public osg::NodeVisitor
{
public:
SeamFinder(int x, int y, int lod, TXPArchive::TileInfo& info, TXPArchive *archive ):
NodeVisitor(NodeVisitor::TRAVERSE_ALL_CHILDREN),
osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN),
_x(x), _y(y), _lod(lod), _info(info), _archive(archive)
{};

View File

@@ -295,7 +295,7 @@ bool TXPArchive::loadMaterials()
bool TXPArchive::loadTexture(int i)
{
if (_textures[i].get()) return true;
if (_textures[i].get()) return true;
trpgrImageHelper image_helper(this->GetEndian(),getDir(),materialTable,texTable);
@@ -622,6 +622,7 @@ osg::Group* TXPArchive::getTileContent(
osg::Group *tileGroup = _parser->parseScene(buf,_gstates,_models,realMinRange,realMaxRange,usedMaxRange);
tileCenter = _parser->getTileCenter();
#if 1
// Prune
unsigned int i = 0;
for (i = 0; i < _gstates.size(); i++)
@@ -633,7 +634,7 @@ osg::Group* TXPArchive::getTileContent(
{
if (_textures[i].valid() && (_textures[i]->referenceCount()==1)) _textures[i] = 0;
}
#endif
return tileGroup;
}

View File

@@ -7,6 +7,8 @@
#include "TXPNode.h"
using namespace osg;
bool TXPNode_readLocalData(osg::Object &obj, osgDB::Input &fr);
bool TXPNode_writeLocalData(const osg::Object &obj, osgDB::Output &fw);

View File

@@ -15,6 +15,7 @@
using namespace txp;
using namespace osg;

View File

@@ -3,12 +3,12 @@
using namespace txp;
TXPPagedLOD::TXPPagedLOD():
PagedLOD()
osg::PagedLOD()
{
}
TXPPagedLOD::TXPPagedLOD(const TXPPagedLOD& plod,const osg::CopyOp& copyop):
PagedLOD(plod,copyop),
osg::PagedLOD(plod,copyop),
_tileIdentifier(plod._tileIdentifier)
{
}

View File

@@ -4,6 +4,7 @@
#include "TileMapper.h"
using namespace txp;
using namespace osg;
TXPSeamLOD::TXPSeamLOD() :
Group()

View File

@@ -16,6 +16,7 @@
using namespace Producer;
using namespace osgProducer;
using namespace osg;
//////////////////////////////////////////////////////////////////////////////
//

View File

@@ -13,6 +13,7 @@
#include <osgSim/DOFTransform>
using namespace osgSim;
using namespace osg;
DOFTransform::DOFTransform():
_limitationFlags(0),

View File

@@ -15,6 +15,7 @@
#include <algorithm>
using namespace osgSim;
using namespace osg;
MultiSwitch::MultiSwitch():
_newChildDefaultValue(true),

View File

@@ -17,6 +17,7 @@
#include <osgUtil/IntersectVisitor>
using namespace osgSim;
using namespace osg;
VisibilityGroup::VisibilityGroup():
_volumeIntersectionMask(0xFFFFFFFF),