OpenSceneGraph
|
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) | |
void | setFileVersion (const std::string &d, int v) |
int | getFileVersion (const std::string &d=std::string()) const |
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<< (signed 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::Vec2ub &v) |
OutputStream & | operator<< (const osg::Vec3ub &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::Vec2us &v) |
OutputStream & | operator<< (const osg::Vec3us &v) |
OutputStream & | operator<< (const osg::Vec4us &v) |
OutputStream & | operator<< (const osg::Vec2i &v) |
OutputStream & | operator<< (const osg::Vec3i &v) |
OutputStream & | operator<< (const osg::Vec4i &v) |
OutputStream & | operator<< (const osg::Vec2ui &v) |
OutputStream & | operator<< (const osg::Vec3ui &v) |
OutputStream & | operator<< (const osg::Vec4ui &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::BoundingBoxf &bb) |
OutputStream & | operator<< (const osg::BoundingBoxd &bb) |
OutputStream & | operator<< (const osg::BoundingSpheref &bb) |
OutputStream & | operator<< (const osg::BoundingSphered &bb) |
OutputStream & | operator<< (const osg::Image *img) |
OutputStream & | operator<< (const osg::Array *a) |
OutputStream & | operator<< (const osg::PrimitiveSet *p) |
OutputStream & | operator<< (const osg::Object *obj) |
OutputStream & | operator<< (const osg::ref_ptr< osg::Image > &ptr) |
OutputStream & | operator<< (const osg::ref_ptr< osg::Array > &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 | writeObjectFields (const osg::Object *obj, const std::string &compoundName) |
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 |
Public Attributes | |
ObjectProperty | PROPERTY |
ObjectMark | BEGIN_BRACKET |
ObjectMark | END_BRACKET |
Protected Types | |
typedef std::map< std::string, int > | VersionMap |
typedef std::map< std::string, std::string > | SchemaMap |
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 |
VersionMap | _domainVersionMap |
WriteImageHint | _writeImageHint |
bool | _useSchemaData |
bool | _useRobustBinaryFormat |
SchemaMap | _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 |