OSG
3.4.0
|
#include <OutputStream.h>
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 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 |
Definition at line 56 of file OutputStream.h.
typedef std::map<const osg::Array*, unsigned int> osgDB::OutputStream::ArrayMap |
Definition at line 59 of file OutputStream.h.
typedef std::map<const osg::Object*, unsigned int> osgDB::OutputStream::ObjectMap |
Definition at line 60 of file OutputStream.h.
|
protected |
Definition at line 210 of file OutputStream.h.
|
protected |
Definition at line 204 of file OutputStream.h.
Definition at line 70 of file OutputStream.h.
Enumerator | |
---|---|
WRITE_UNKNOWN | |
WRITE_SCENE | |
WRITE_IMAGE | |
WRITE_OBJECT |
Definition at line 62 of file OutputStream.h.
osgDB::OutputStream::OutputStream | ( | const osgDB::Options * | options | ) |
|
virtual |
void osgDB::OutputStream::compress | ( | std::ostream * | ostream | ) |
|
protected |
|
protected |
|
inline |
Definition at line 187 of file OutputStream.h.
int osgDB::OutputStream::getFileVersion | ( | const std::string & | d = std::string() | ) | const |
|
inline |
Definition at line 87 of file OutputStream.h.
|
inline |
Definition at line 86 of file OutputStream.h.
|
inline |
Definition at line 90 of file OutputStream.h.
|
inline |
|
inline |
Definition at line 93 of file OutputStream.h.
|
inline |
Definition at line 94 of file OutputStream.h.
|
inline |
Definition at line 95 of file OutputStream.h.
|
inline |
Definition at line 96 of file OutputStream.h.
|
inline |
Definition at line 97 of file OutputStream.h.
|
inline |
Definition at line 98 of file OutputStream.h.
|
inline |
Definition at line 99 of file OutputStream.h.
|
inline |
Definition at line 100 of file OutputStream.h.
|
inline |
Definition at line 101 of file OutputStream.h.
|
inline |
Definition at line 102 of file OutputStream.h.
|
inline |
Definition at line 103 of file OutputStream.h.
|
inline |
Definition at line 104 of file OutputStream.h.
|
inline |
Definition at line 105 of file OutputStream.h.
|
inline |
Definition at line 106 of file OutputStream.h.
|
inline |
Definition at line 107 of file OutputStream.h.
|
inline |
Definition at line 108 of file OutputStream.h.
|
inline |
Definition at line 110 of file OutputStream.h.
|
inline |
Definition at line 111 of file OutputStream.h.
|
inline |
Definition at line 112 of file OutputStream.h.
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec2b & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec3b & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec4b & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec2ub & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec3ub & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec4ub & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec2s & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec3s & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec4s & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec2us & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec3us & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec4us & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec2i & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec3i & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec4i & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec2ui & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec3ui & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec4ui & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec2f & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec3f & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec4f & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec2d & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec3d & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Vec4d & | v | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Quat & | q | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Plane & | p | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Matrixf & | mat | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::Matrixd & | mat | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::BoundingBoxf & | bb | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::BoundingBoxd & | bb | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::BoundingSpheref & | bb | ) |
OutputStream& osgDB::OutputStream::operator<< | ( | const osg::BoundingSphered & | bb | ) |
|
inline |
Definition at line 147 of file OutputStream.h.
|
inline |
|
inline |
Definition at line 149 of file OutputStream.h.
|
inline |
Definition at line 150 of file OutputStream.h.
|
inline |
Definition at line 152 of file OutputStream.h.
|
inline |
|
inline |
Definition at line 154 of file OutputStream.h.
|
inline |
Definition at line 156 of file OutputStream.h.
|
inline |
Definition at line 82 of file OutputStream.h.
|
inline |
set an output iterator, used directly when not using OutputStream with a traditional file releated stream.
Definition at line 175 of file OutputStream.h.
|
inline |
Definition at line 89 of file OutputStream.h.
void osgDB::OutputStream::start | ( | OutputIterator * | outIterator, |
WriteType | type | ||
) |
start writing to OutputStream treating it as a traditional file releated stream, handles headers and versioning
|
inline |
Definition at line 221 of file OutputStream.h.
void osgDB::OutputStream::writeArray | ( | const osg::Array * | a | ) |
|
protected |
|
inline |
Definition at line 160 of file OutputStream.h.
void osgDB::OutputStream::writeImage | ( | const osg::Image * | img | ) |
void osgDB::OutputStream::writeObject | ( | const osg::Object * | obj | ) |
void osgDB::OutputStream::writeObjectFields | ( | const osg::Object * | obj | ) |
void osgDB::OutputStream::writeObjectFields | ( | const osg::Object * | obj, |
const std::string & | compoundName | ||
) |
void osgDB::OutputStream::writePrimitiveSet | ( | const osg::PrimitiveSet * | p | ) |
void osgDB::OutputStream::writeSchema | ( | std::ostream & | fout | ) |
|
inline |
Definition at line 164 of file OutputStream.h.
|
inline |
|
protected |
Definition at line 201 of file OutputStream.h.
|
protected |
Definition at line 214 of file OutputStream.h.
|
protected |
Definition at line 215 of file OutputStream.h.
|
protected |
Definition at line 205 of file OutputStream.h.
|
protected |
Definition at line 217 of file OutputStream.h.
|
protected |
Definition at line 212 of file OutputStream.h.
|
protected |
Definition at line 211 of file OutputStream.h.
|
protected |
Definition at line 202 of file OutputStream.h.
|
protected |
Definition at line 218 of file OutputStream.h.
|
protected |
Definition at line 216 of file OutputStream.h.
|
protected |
Definition at line 213 of file OutputStream.h.
|
protected |
Definition at line 208 of file OutputStream.h.
|
protected |
Definition at line 207 of file OutputStream.h.
|
protected |
Definition at line 206 of file OutputStream.h.
ObjectMark osgDB::OutputStream::BEGIN_BRACKET |
Definition at line 191 of file OutputStream.h.
ObjectMark osgDB::OutputStream::END_BRACKET |
Definition at line 192 of file OutputStream.h.
ObjectProperty osgDB::OutputStream::PROPERTY |
Definition at line 190 of file OutputStream.h.