OpenSceneGraph
|
Public Types | |
enum | ReadType { READ_UNKNOWN = 0, READ_SCENE, READ_IMAGE, READ_OBJECT } |
typedef std::map< unsigned int, osg::ref_ptr< osg::Array > > | ArrayMap |
typedef std::map< unsigned int, osg::ref_ptr< osg::Object > > | IdentifierMap |
Public Member Functions | |
InputStream (const osgDB::Options *options) | |
void | setFileVersion (const std::string &d, int v) |
int | getFileVersion (const std::string &d=std::string()) const |
bool | isBinary () const |
const osgDB::Options * | getOptions () const |
InputStream & | operator>> (bool &b) |
InputStream & | operator>> (char &c) |
InputStream & | operator>> (signed char &c) |
InputStream & | operator>> (unsigned char &c) |
InputStream & | operator>> (short &s) |
InputStream & | operator>> (unsigned short &s) |
InputStream & | operator>> (int &i) |
InputStream & | operator>> (unsigned int &i) |
InputStream & | operator>> (long &l) |
InputStream & | operator>> (unsigned long &l) |
InputStream & | operator>> (float &f) |
InputStream & | operator>> (double &d) |
InputStream & | operator>> (std::string &s) |
InputStream & | operator>> (std::istream &(*fn)(std::istream &)) |
InputStream & | operator>> (std::ios_base &(*fn)(std::ios_base &)) |
InputStream & | operator>> (ObjectGLenum &value) |
InputStream & | operator>> (ObjectProperty &prop) |
InputStream & | operator>> (ObjectMark &mark) |
InputStream & | operator>> (osg::Vec2b &v) |
InputStream & | operator>> (osg::Vec3b &v) |
InputStream & | operator>> (osg::Vec4b &v) |
InputStream & | operator>> (osg::Vec2ub &v) |
InputStream & | operator>> (osg::Vec3ub &v) |
InputStream & | operator>> (osg::Vec4ub &v) |
InputStream & | operator>> (osg::Vec2s &v) |
InputStream & | operator>> (osg::Vec3s &v) |
InputStream & | operator>> (osg::Vec4s &v) |
InputStream & | operator>> (osg::Vec2us &v) |
InputStream & | operator>> (osg::Vec3us &v) |
InputStream & | operator>> (osg::Vec4us &v) |
InputStream & | operator>> (osg::Vec2i &v) |
InputStream & | operator>> (osg::Vec3i &v) |
InputStream & | operator>> (osg::Vec4i &v) |
InputStream & | operator>> (osg::Vec2ui &v) |
InputStream & | operator>> (osg::Vec3ui &v) |
InputStream & | operator>> (osg::Vec4ui &v) |
InputStream & | operator>> (osg::Vec2f &v) |
InputStream & | operator>> (osg::Vec3f &v) |
InputStream & | operator>> (osg::Vec4f &v) |
InputStream & | operator>> (osg::Vec2d &v) |
InputStream & | operator>> (osg::Vec3d &v) |
InputStream & | operator>> (osg::Vec4d &v) |
InputStream & | operator>> (osg::Quat &q) |
InputStream & | operator>> (osg::Plane &p) |
InputStream & | operator>> (osg::Matrixf &mat) |
InputStream & | operator>> (osg::Matrixd &mat) |
InputStream & | operator>> (osg::BoundingBoxf &bb) |
InputStream & | operator>> (osg::BoundingBoxd &bb) |
InputStream & | operator>> (osg::BoundingSpheref &bs) |
InputStream & | operator>> (osg::BoundingSphered &bs) |
InputStream & | operator>> (osg::Image *&img) |
InputStream & | operator>> (osg::Array *&a) |
InputStream & | operator>> (osg::PrimitiveSet *&p) |
InputStream & | operator>> (osg::Object *&obj) |
InputStream & | operator>> (osg::ref_ptr< osg::Image > &ptr) |
InputStream & | operator>> (osg::ref_ptr< osg::Array > &ptr) |
InputStream & | operator>> (osg::ref_ptr< osg::PrimitiveSet > &ptr) |
template<typename T > | |
InputStream & | operator>> (osg::ref_ptr< T > &ptr) |
bool | matchString (const std::string &str) |
void | advanceToCurrentEndBracket () |
void | readWrappedString (std::string &str) |
void | readCharArray (char *s, unsigned int size) |
void | readComponentArray (char *s, unsigned int numElements, unsigned int numComponentsPerElements, unsigned int componentSizeInBytes) |
unsigned int | readSize () |
osg::Array * | readArray () |
osg::PrimitiveSet * | readPrimitiveSet () |
osg::Image * | readImage (bool readFromExternal=true) |
template<typename T > | |
T * | readObjectOfType () |
osg::Object * | readObject (osg::Object *existingObj=0) |
osg::Object * | readObjectFields (const std::string &className, unsigned int id, osg::Object *existingObj=0) |
void | setInputIterator (InputIterator *ii) |
set an input iterator, used directly when not using InputStream with a traditional file releated stream. | |
ReadType | start (InputIterator *) |
start reading from InputStream treating it as a traditional file releated stream, handles headers and versioning | |
void | decompress () |
void | readSchema (std::istream &fin) |
void | resetSchema () |
void | throwException (const std::string &msg) |
const InputException * | getException () const |
Public Attributes | |
ObjectProperty | PROPERTY |
ObjectMark | BEGIN_BRACKET |
ObjectMark | END_BRACKET |
Protected Types | |
typedef std::map< std::string, int > | VersionMap |
Protected Member Functions | |
void | checkStream () |
void | setWrapperSchema (const std::string &name, const std::string &properties) |
template<typename T > | |
void | readArrayImplementation (T *a, unsigned int numComponentsPerElements, unsigned int componentSizeInBytes) |
Protected Attributes | |
ArrayMap | _arrayMap |
IdentifierMap | _identifierMap |
VersionMap | _domainVersionMap |
int | _fileVersion |
bool | _useSchemaData |
bool | _forceReadingImage |
std::vector< std::string > | _fields |
osg::ref_ptr< InputIterator > | _in |
osg::ref_ptr< InputException > | _exception |
osg::ref_ptr< const osgDB::Options > | _options |
osg::ref_ptr< osg::Object > | _dummyReadObject |
std::stringstream * | _dataDecompress |