14 #ifndef OSGDB_PLUGIN_IMAGE_WRITER
15 #define OSGDB_PLUGIN_IMAGE_WRITER 1
17 #include <osgDB/Export>
50 ExternalFileWriter(
const std::string & srcDirectory,
const std::string & destDirectory,
bool keepRelativePaths,
unsigned int allowUpDirs=0);
66 ObjectData(
const std::string & absolutePath,
const std::string & relativePath,
bool written) : absolutePath(absolutePath), relativePath(relativePath), written(written) {}
74 typedef std::map<const osg::Object*, ObjectData>
ObjectsSet;
77 const ObjectsSet &
getObjects()
const {
return _objects; }
83 typedef std::multimap<unsigned int, const osg::Object*>
SearchMap;
95 void generateObjectName(std::string & out_relativePath, std::string & out_absolutePath,
int type);
97 bool absoluteObjectPathExists(
const std::string & path);
106 #endif // OSGDB_PLUGIN_IMAGE_WRITER
const unsigned int _allowUpDirs
const std::string _srcDirectory
const std::string _destDirectory
ObjectData(const std::string &absolutePath, const std::string &relativePath, bool written)
const ObjectsSet & getObjects() const
Returns the written objects.
bool written
Says if write succeeded or not.
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum type
ObjectIndex _lastGeneratedObjectIndex
unsigned int ObjectIndex
Integer type used for indices of unnamed objects.
std::map< const osg::Object *, ObjectData > ObjectsSet
std::multimap< unsigned int, const osg::Object * > SearchMap
SearchMap _searchMap
Map used to search by absolute file path.