OpenSceneGraph
3.5.1
|
#include <osg/ref_ptr>
#include <osg/Notify>
#include <osg/Object>
#include <osgDB/InputStream>
#include <osgDB/OutputStream>
#include <string>
#include <sstream>
#include <limits.h>
Namespaces | |
osgDB | |
The osgDB library provides support for reading and writing scene graphs, providing a plugin framework and file utility classes. | |
Macros | |
#define | OSGDB__SERIALIZER |
#define | OBJECT_CAST static_cast |
#define | BEGIN_USER_TABLE(NAME, CLASS) |
#define | ADD_USER_VALUE(VALUE) lookup->add(#VALUE, MyClass::VALUE) |
#define | END_USER_TABLE() } |
#define | USER_READ_FUNC(NAME, FUNCNAME) |
#define | USER_WRITE_FUNC(NAME, FUNCNAME) |
#define | ADD_SERIALIZER(S) wrapper->addSerializer( (S) ) |
#define | ADD_USER_SERIALIZER(PROP) |
#define | ADD_BOOL_SERIALIZER(PROP, DEF) |
#define | ADD_CHAR_SERIALIZER(PROP, DEF) |
#define | ADD_UCHAR_SERIALIZER(PROP, DEF) |
#define | ADD_SHORT_SERIALIZER(PROP, DEF) |
#define | ADD_USHORT_SERIALIZER(PROP, DEF) |
#define | ADD_HEXSHORT_SERIALIZER(PROP, DEF) |
#define | ADD_INT_SERIALIZER(PROP, DEF) |
#define | ADD_INT_SERIALIZER_NO_SET(PROP, DEF) |
#define | ADD_UINT_SERIALIZER(PROP, DEF) |
#define | ADD_UINT_SERIALIZER_NO_SET(PROP, DEF) |
#define | ADD_GLINT_SERIALIZER(PROP, DEF) |
#define | ADD_HEXINT_SERIALIZER(PROP, DEF) |
#define | ADD_FLOAT_SERIALIZER(PROP, DEF) |
#define | ADD_DOUBLE_SERIALIZER(PROP, DEF) |
#define | ADD_REF_BOOL_SERIALIZER(PROP, DEF) |
#define | ADD_REF_CHAR_SERIALIZER(PROP, DEF) |
#define | ADD_REF_UCHAR_SERIALIZER(PROP, DEF) |
#define | ADD_REF_SHORT_SERIALIZER(PROP, DEF) |
#define | ADD_REF_USHORT_SERIALIZER(PROP, DEF) |
#define | ADD_REF_HEXSHORT_SERIALIZER(PROP, DEF) |
#define | ADD_REF_INT_SERIALIZER(PROP, DEF) |
#define | ADD_REF_UINT_SERIALIZER(PROP, DEF) |
#define | ADD_REF_GLINT_SERIALIZER(PROP, DEF) |
#define | ADD_REF_HEXINT_SERIALIZER(PROP, DEF) |
#define | ADD_REF_FLOAT_SERIALIZER(PROP, DEF) |
#define | ADD_REF_DOUBLE_SERIALIZER(PROP, DEF) |
#define | ADD_VEC2B_SERIALIZER(PROP, DEF) |
#define | ADD_VEC2UB_SERIALIZER(PROP, DEF) |
#define | ADD_VEC2S_SERIALIZER(PROP, DEF) |
#define | ADD_VEC2US_SERIALIZER(PROP, DEF) |
#define | ADD_VEC2I_SERIALIZER(PROP, DEF) |
#define | ADD_VEC2UI_SERIALIZER(PROP, DEF) |
#define | ADD_VEC2F_SERIALIZER(PROP, DEF) |
#define | ADD_VEC2D_SERIALIZER(PROP, DEF) |
#define | ADD_VEC2_SERIALIZER(PROP, DEF) ADD_VEC2F_SERIALIZER(PROP, DEF) |
#define | ADD_VEC3B_SERIALIZER(PROP, DEF) |
#define | ADD_VEC3UB_SERIALIZER(PROP, DEF) |
#define | ADD_VEC3S_SERIALIZER(PROP, DEF) |
#define | ADD_VEC3US_SERIALIZER(PROP, DEF) |
#define | ADD_VEC3I_SERIALIZER(PROP, DEF) |
#define | ADD_VEC3UI_SERIALIZER(PROP, DEF) |
#define | ADD_VEC3F_SERIALIZER(PROP, DEF) |
#define | ADD_VEC3D_SERIALIZER(PROP, DEF) |
#define | ADD_VEC3_SERIALIZER(PROP, DEF) ADD_VEC3F_SERIALIZER(PROP, DEF) |
#define | ADD_VEC4B_SERIALIZER(PROP, DEF) |
#define | ADD_VEC4UB_SERIALIZER(PROP, DEF) |
#define | ADD_VEC4S_SERIALIZER(PROP, DEF) |
#define | ADD_VEC4US_SERIALIZER(PROP, DEF) |
#define | ADD_VEC4I_SERIALIZER(PROP, DEF) |
#define | ADD_VEC4UI_SERIALIZER(PROP, DEF) |
#define | ADD_VEC4F_SERIALIZER(PROP, DEF) |
#define | ADD_VEC4D_SERIALIZER(PROP, DEF) |
#define | ADD_VEC4_SERIALIZER(PROP, DEF) ADD_VEC4F_SERIALIZER(PROP, DEF) |
#define | ADD_QUAT_SERIALIZER(PROP, DEF) |
#define | ADD_PLANE_SERIALIZER(PROP, DEF) |
#define | ADD_MATRIXF_SERIALIZER(PROP, DEF) |
#define | ADD_MATRIXD_SERIALIZER(PROP, DEF) |
#define | ADD_MATRIX_SERIALIZER(PROP, DEF) |
#define | ADD_BOUNDINGBOXF_SERIALIZER(PROP, DEF) |
#define | ADD_BOUNDINGBOXD_SERIALIZER(PROP, DEF) |
#define | ADD_BOUNDINGSPHEREF_SERIALIZER(PROP, DEF) |
#define | ADD_BOUNDINGSPHERED_SERIALIZER(PROP, DEF) |
#define | ADD_GLENUM_SERIALIZER(PROP, TYPE, DEF) |
#define | ADD_GLENUM_SERIALIZER_NO_SET(PROP, TYPE, DEF) |
#define | ADD_STRING_SERIALIZER(PROP, DEF) |
#define | ADD_OBJECT_SERIALIZER(PROP, TYPE, DEF) |
#define | ADD_OBJECT_SERIALIZER_NO_SET(PROP, TYPE, DEF) |
#define | ADD_IMAGE_SERIALIZER(PROP, TYPE, DEF) |
#define | ADD_LIST_SERIALIZER(PROP, TYPE) |
#define | ADD_VECTOR_SERIALIZER(PROP, TYPE, ELEMENTTYPE, NUMELEMENTSONROW) |
#define | ADD_ISAVECTOR_SERIALIZER(PROP, ELEMENTTYPE, NUMELEMENTSONROW) wrapper->addSerializer( new osgDB::IsAVectorSerializer< MyClass >( #PROP, ELEMENTTYPE, NUMELEMENTSONROW), osgDB::BaseSerializer::RW_VECTOR ) |
#define | BEGIN_ENUM_SERIALIZER(PROP, DEF) |
#define | BEGIN_ENUM_SERIALIZER2(PROP, TYPE, DEF) |
#define | BEGIN_ENUM_SERIALIZER3(PROP, DEF) |
#define | BEGIN_ENUM_SERIALIZER4(PROPERTIES_CLASS, PROP, DEF) |
#define | BEGIN_ENUM_SERIALIZER_NO_SET(PROP, DEF) |
#define | ADD_ENUM_VALUE(VALUE) serializer->add(#VALUE, MyClass::VALUE) |
#define | ADD_ENUM_CLASS_VALUE(CLASS, VALUE) serializer->add(#VALUE, CLASS::VALUE) |
#define | END_ENUM_SERIALIZER() wrapper->addSerializer(serializer.get(), osgDB::BaseSerializer::RW_ENUM); } |
#define | BEGIN_BITFLAGS_SERIALIZER(PROP, DEF) |
defaults to uint bitfield type. More... | |
#define | BEGIN_UINT_BITFLAGS_SERIALIZER(PROP, DEF) |
#define | BEGIN_INT_BITFLAGS_SERIALIZER(PROP, DEF) |
#define | ADD_BITFLAG_VALUE(VALUE_NAME, VALUE) serializer->add(#VALUE_NAME, VALUE) |
#define | END_BITFLAGS_SERIALIZER() wrapper->addSerializer(serializer.get(), osgDB::BaseSerializer::RW_INT); } |
#define | UPDATE_TO_VERSION(VER) wrapper->setUpdatedVersion( (VER) ); |
#define | UPDATE_TO_VERSION_SCOPED(VER) osgDB::UpdateWrapperVersionProxy uwvp(wrapper, (VER)); |
#define | REMOVE_SERIALIZER(PROP) wrapper->markSerializerAsRemoved( #PROP ); |
#define | ADD_MAP_SERIALIZER(PROP, TYPE, KEYTYPE, ELEMENTTYPE) |
#define | ADD_METHOD_OBJECT(METHODNAME, METHODOBJECTCLASS) wrapper->addMethodObject(METHODNAME, new METHODOBJECTCLASS()); |
#define | ADD_METHOD(METHODNAME) |
#define | SET_USAGE(VALUE) wrapper->getLastSerializer()->setUsage(VALUE) |
Typedefs | |
typedef std::vector< std::string > | osgDB::StringList |
Functions | |
OSGDB_EXPORT void | osgDB::split (const std::string &src, StringList &list, char separator=' ') |
#define ADD_BITFLAG_VALUE | ( | VALUE_NAME, | |
VALUE | |||
) | serializer->add(#VALUE_NAME, VALUE) |
#define ADD_BOOL_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_BOUNDINGBOXD_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_BOUNDINGBOXF_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_BOUNDINGSPHERED_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_BOUNDINGSPHEREF_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_CHAR_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_DOUBLE_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_ENUM_CLASS_VALUE | ( | CLASS, | |
VALUE | |||
) | serializer->add(#VALUE, CLASS::VALUE) |
#define ADD_ENUM_VALUE | ( | VALUE | ) | serializer->add(#VALUE, MyClass::VALUE) |
#define ADD_FLOAT_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_GLENUM_SERIALIZER | ( | PROP, | |
TYPE, | |||
DEF | |||
) |
#define ADD_GLENUM_SERIALIZER_NO_SET | ( | PROP, | |
TYPE, | |||
DEF | |||
) |
#define ADD_GLINT_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_HEXINT_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_HEXSHORT_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_IMAGE_SERIALIZER | ( | PROP, | |
TYPE, | |||
DEF | |||
) |
#define ADD_INT_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_INT_SERIALIZER_NO_SET | ( | PROP, | |
DEF | |||
) |
#define ADD_ISAVECTOR_SERIALIZER | ( | PROP, | |
ELEMENTTYPE, | |||
NUMELEMENTSONROW | |||
) | wrapper->addSerializer( new osgDB::IsAVectorSerializer< MyClass >( #PROP, ELEMENTTYPE, NUMELEMENTSONROW), osgDB::BaseSerializer::RW_VECTOR ) |
#define ADD_LIST_SERIALIZER | ( | PROP, | |
TYPE | |||
) |
#define ADD_MAP_SERIALIZER | ( | PROP, | |
TYPE, | |||
KEYTYPE, | |||
ELEMENTTYPE | |||
) |
#define ADD_MATRIX_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_MATRIXD_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_MATRIXF_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_METHOD | ( | METHODNAME | ) |
#define ADD_METHOD_OBJECT | ( | METHODNAME, | |
METHODOBJECTCLASS | |||
) | wrapper->addMethodObject(METHODNAME, new METHODOBJECTCLASS()); |
#define ADD_OBJECT_SERIALIZER | ( | PROP, | |
TYPE, | |||
DEF | |||
) |
#define ADD_OBJECT_SERIALIZER_NO_SET | ( | PROP, | |
TYPE, | |||
DEF | |||
) |
#define ADD_PLANE_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_QUAT_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_REF_BOOL_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_REF_CHAR_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_REF_DOUBLE_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_REF_FLOAT_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_REF_GLINT_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_REF_HEXINT_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_REF_HEXSHORT_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_REF_INT_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_REF_SHORT_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_REF_UCHAR_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_REF_UINT_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_REF_USHORT_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_SERIALIZER | ( | S | ) | wrapper->addSerializer( (S) ) |
#define ADD_SHORT_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_STRING_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_UCHAR_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_UINT_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_UINT_SERIALIZER_NO_SET | ( | PROP, | |
DEF | |||
) |
#define ADD_USER_SERIALIZER | ( | PROP | ) |
#define ADD_USER_VALUE | ( | VALUE | ) | lookup->add(#VALUE, MyClass::VALUE) |
#define ADD_USHORT_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC2_SERIALIZER | ( | PROP, | |
DEF | |||
) | ADD_VEC2F_SERIALIZER(PROP, DEF) |
#define ADD_VEC2B_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC2D_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC2F_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC2I_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC2S_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC2UB_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC2UI_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC2US_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC3_SERIALIZER | ( | PROP, | |
DEF | |||
) | ADD_VEC3F_SERIALIZER(PROP, DEF) |
#define ADD_VEC3B_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC3D_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC3F_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC3I_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC3S_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC3UB_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC3UI_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC3US_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC4_SERIALIZER | ( | PROP, | |
DEF | |||
) | ADD_VEC4F_SERIALIZER(PROP, DEF) |
#define ADD_VEC4B_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC4D_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC4F_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC4I_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC4S_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC4UB_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC4UI_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VEC4US_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define ADD_VECTOR_SERIALIZER | ( | PROP, | |
TYPE, | |||
ELEMENTTYPE, | |||
NUMELEMENTSONROW | |||
) |
#define BEGIN_BITFLAGS_SERIALIZER | ( | PROP, | |
DEF | |||
) |
defaults to uint bitfield type.
#define BEGIN_ENUM_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define BEGIN_ENUM_SERIALIZER2 | ( | PROP, | |
TYPE, | |||
DEF | |||
) |
#define BEGIN_ENUM_SERIALIZER3 | ( | PROP, | |
DEF | |||
) |
#define BEGIN_ENUM_SERIALIZER4 | ( | PROPERTIES_CLASS, | |
PROP, | |||
DEF | |||
) |
#define BEGIN_ENUM_SERIALIZER_NO_SET | ( | PROP, | |
DEF | |||
) |
#define BEGIN_INT_BITFLAGS_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define BEGIN_UINT_BITFLAGS_SERIALIZER | ( | PROP, | |
DEF | |||
) |
#define BEGIN_USER_TABLE | ( | NAME, | |
CLASS | |||
) |
#define END_BITFLAGS_SERIALIZER | ( | ) | wrapper->addSerializer(serializer.get(), osgDB::BaseSerializer::RW_INT); } |
#define END_ENUM_SERIALIZER | ( | ) | wrapper->addSerializer(serializer.get(), osgDB::BaseSerializer::RW_ENUM); } |
#define END_USER_TABLE | ( | ) | } |
#define OBJECT_CAST static_cast |
#define OSGDB__SERIALIZER |
#define REMOVE_SERIALIZER | ( | PROP | ) | wrapper->markSerializerAsRemoved( #PROP ); |
#define SET_USAGE | ( | VALUE | ) | wrapper->getLastSerializer()->setUsage(VALUE) |
#define UPDATE_TO_VERSION | ( | VER | ) | wrapper->setUpdatedVersion( (VER) ); |
#define UPDATE_TO_VERSION_SCOPED | ( | VER | ) | osgDB::UpdateWrapperVersionProxy uwvp(wrapper, (VER)); |
#define USER_READ_FUNC | ( | NAME, | |
FUNCNAME | |||
) |
#define USER_WRITE_FUNC | ( | NAME, | |
FUNCNAME | |||
) |
Generated at Wed Nov 11 2015 22:14:24 for the OpenSceneGraph by doxygen 1.8.10. |