Public Types |
| enum | WriteType { WRITE_UNKNOWN = 0,
WRITE_SCENE,
WRITE_IMAGE,
WRITE_OBJECT
} |
| enum | WriteImageHint {
WRITE_USE_IMAGE_HINT = 0,
WRITE_USE_EXTERNAL,
WRITE_INLINE_DATA,
WRITE_INLINE_FILE,
WRITE_EXTERNAL_FILE
} |
typedef std::map< const
osg::Array *, unsigned int > | ArrayMap |
typedef std::map< const
osg::Object *, unsigned int > | ObjectMap |
Public Member Functions |
| | OutputStream (const osgDB::Options *options) |
| virtual | ~OutputStream () |
| bool | isBinary () const |
| const std::string & | getSchemaName () const |
| const osgDB::Options * | getOptions () const |
| void | setWriteImageHint (WriteImageHint hint) |
| WriteImageHint | getWriteImageHint () const |
| OutputStream & | operator<< (bool b) |
| OutputStream & | operator<< (char c) |
| OutputStream & | operator<< (unsigned char c) |
| OutputStream & | operator<< (short s) |
| OutputStream & | operator<< (unsigned short s) |
| OutputStream & | operator<< (int i) |
| OutputStream & | operator<< (unsigned int i) |
| OutputStream & | operator<< (long l) |
| OutputStream & | operator<< (unsigned long l) |
| OutputStream & | operator<< (float f) |
| OutputStream & | operator<< (double d) |
| OutputStream & | operator<< (const std::string &s) |
| OutputStream & | operator<< (const char *s) |
| OutputStream & | operator<< (std::ostream &(*fn)(std::ostream &)) |
| OutputStream & | operator<< (std::ios_base &(*fn)(std::ios_base &)) |
| OutputStream & | operator<< (const ObjectGLenum &value) |
| OutputStream & | operator<< (const ObjectProperty &prop) |
| OutputStream & | operator<< (const ObjectMark &mark) |
| OutputStream & | operator<< (const osg::Vec2b &v) |
| OutputStream & | operator<< (const osg::Vec3b &v) |
| OutputStream & | operator<< (const osg::Vec4b &v) |
| OutputStream & | operator<< (const osg::Vec4ub &v) |
| OutputStream & | operator<< (const osg::Vec2s &v) |
| OutputStream & | operator<< (const osg::Vec3s &v) |
| OutputStream & | operator<< (const osg::Vec4s &v) |
| OutputStream & | operator<< (const osg::Vec2f &v) |
| OutputStream & | operator<< (const osg::Vec3f &v) |
| OutputStream & | operator<< (const osg::Vec4f &v) |
| OutputStream & | operator<< (const osg::Vec2d &v) |
| OutputStream & | operator<< (const osg::Vec3d &v) |
| OutputStream & | operator<< (const osg::Vec4d &v) |
| OutputStream & | operator<< (const osg::Quat &q) |
| OutputStream & | operator<< (const osg::Plane &p) |
| OutputStream & | operator<< (const osg::Matrixf &mat) |
| OutputStream & | operator<< (const osg::Matrixd &mat) |
| OutputStream & | operator<< (const osg::Array *a) |
| OutputStream & | operator<< (const osg::Image *img) |
| OutputStream & | operator<< (const osg::PrimitiveSet *p) |
| OutputStream & | operator<< (const osg::Object *obj) |
| OutputStream & | operator<< (const osg::ref_ptr< osg::Array > &ptr) |
| OutputStream & | operator<< (const osg::ref_ptr< osg::Image > &ptr) |
| OutputStream & | operator<< (const osg::ref_ptr< osg::PrimitiveSet > &ptr) |
| template<typename T > |
| OutputStream & | operator<< (const osg::ref_ptr< T > &ptr) |
| void | writeWrappedString (const std::string &str) |
| void | writeCharArray (const char *s, unsigned int size) |
| template<typename T > |
| void | writeSize (T size) |
| void | writeArray (const osg::Array *a) |
| void | writePrimitiveSet (const osg::PrimitiveSet *p) |
| void | writeImage (const osg::Image *img) |
| void | writeObject (const osg::Object *obj) |
| void | writeObjectFields (const osg::Object *obj) |
| void | setOutputIterator (OutputIterator *oi) |
| | set an output iterator, used directly when not using OutputStream with a traditional file releated stream.
|
| void | start (OutputIterator *outIterator, WriteType type) |
| | start writing to OutputStream treating it as a traditional file releated stream, handles headers and versioning
|
| void | compress (std::ostream *ostream) |
| void | writeSchema (std::ostream &fout) |
| void | throwException (const std::string &msg) |
| const OutputException * | getException () const |
Protected Member Functions |
| template<typename T > |
| void | writeArrayImplementation (const T *, int write_size, unsigned int numInRow=1) |
| unsigned int | findOrCreateArrayID (const osg::Array *array, bool &newID) |
| unsigned int | findOrCreateObjectID (const osg::Object *obj, bool &newID) |
Protected Attributes |
| ArrayMap | _arrayMap |
| ObjectMap | _objectMap |
| WriteImageHint | _writeImageHint |
| bool | _useSchemaData |
std::map< std::string,
std::string > | _inbuiltSchemaMap |
| std::vector< std::string > | _fields |
| std::string | _schemaName |
| std::string | _compressorName |
| std::stringstream | _compressSource |
| osg::ref_ptr< OutputIterator > | _out |
| osg::ref_ptr< OutputException > | _exception |
osg::ref_ptr< const
osgDB::Options > | _options |