Added a bunch of files synched with 0.8.42
This commit is contained in:
76
src/osgDB/Input.cpp
Normal file
76
src/osgDB/Input.cpp
Normal file
@@ -0,0 +1,76 @@
|
||||
#include <osg/Object>
|
||||
|
||||
#include <osgDB/Registry>
|
||||
#include <osgDB/Input>
|
||||
|
||||
using namespace osgDB;
|
||||
|
||||
Input::Input()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Input::~Input()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
osg::Object* Input::getObjectForUniqueID(const std::string& uniqueID)
|
||||
{
|
||||
UniqueIDToObjectMapping::iterator fitr = _uniqueIDToObjectMap.find(uniqueID);
|
||||
if (fitr != _uniqueIDToObjectMap.end()) return (*fitr).second;
|
||||
else return NULL;
|
||||
}
|
||||
|
||||
|
||||
void Input::regisiterUniqueIDForObject(const std::string& uniqueID,osg::Object* obj)
|
||||
{
|
||||
_uniqueIDToObjectMap[uniqueID] = obj;
|
||||
}
|
||||
|
||||
|
||||
osg::Object* Input::readObjectOfType(const osg::Object& compObj)
|
||||
{
|
||||
return Registry::instance()->readObjectOfType(compObj,*this);
|
||||
}
|
||||
|
||||
osg::Object* Input::readObject()
|
||||
{
|
||||
return Registry::instance()->readObject(*this);
|
||||
}
|
||||
|
||||
|
||||
osg::Image* Input::readImage()
|
||||
{
|
||||
return Registry::instance()->readImage(*this);
|
||||
}
|
||||
|
||||
osg::Drawable* Input::readDrawable()
|
||||
{
|
||||
return Registry::instance()->readDrawable(*this);
|
||||
}
|
||||
|
||||
osg::StateAttribute* Input::readStateAttribute()
|
||||
{
|
||||
return Registry::instance()->readStateAttribute(*this);
|
||||
}
|
||||
|
||||
osg::Node* Input::readNode()
|
||||
{
|
||||
return Registry::instance()->readNode(*this);
|
||||
}
|
||||
|
||||
osg::Object* Input::readObject(const std::string& fileName)
|
||||
{
|
||||
return Registry::instance()->readObject(fileName);
|
||||
}
|
||||
|
||||
osg::Image* Input::readImage(const std::string& fileName)
|
||||
{
|
||||
return Registry::instance()->readImage(fileName);
|
||||
}
|
||||
|
||||
osg::Node* Input::readNode(const std::string& fileName)
|
||||
{
|
||||
return Registry::instance()->readNode(fileName);
|
||||
}
|
||||
Reference in New Issue
Block a user