Public Types | |
| enum | PathNameHint { AS_IS, FULL_PATH, RELATIVE_PATH, FILENAME_ONLY } |
Public Member Functions | |
| Output () | |
| Output (const char *name) | |
| virtual | ~Output () |
| void | setOptions (const ReaderWriter::Options *options) |
| const ReaderWriter::Options * | getOptions () const |
| void | open (const char *name) |
| Output & | indent () |
| std::string | wrapString (const std::string &str) |
| wrap a string with "" quotes and use \" for any internal quotes. | |
| void | setIndentStep (int step) |
| int | getIndentStep () const |
| void | setIndent (int indent) |
| int | getIndent () const |
| void | setNumIndicesPerLine (int num) |
| int | getNumIndicesPerLine () const |
| void | moveIn () |
| void | moveOut () |
| virtual bool | writeObject (const osg::Object &obj) |
| bool | getUniqueIDForObject (const osg::Object *obj, std::string &uniqueID) |
| bool | createUniqueIDForObject (const osg::Object *obj, std::string &uniqueID) |
| bool | registerUniqueIDForObject (const osg::Object *obj, std::string &uniqueID) |
| void | setPathNameHint (const PathNameHint pnh) |
| PathNameHint | getPathNameHint () const |
| virtual std::string | getFileNameForOutput (const std::string &filename) const |
| const std::string & | getFileName () const |
| void | setOutputTextureFiles (bool flag) |
| bool | getOutputTextureFiles () const |
| virtual std::string | getTextureFileNameForOutput () |
Protected Types | |
| typedef std::map< const osg::Object *, std::string > | UniqueIDToLabelMapping |
Protected Member Functions | |
| virtual void | init () |
Protected Attributes | |
| osg::ref_ptr< const ReaderWriter::Options > | _options |
| int | _indent |
| int | _indentStep |
| int | _numIndicesPerLine |
| UniqueIDToLabelMapping | _objectToUniqueIDMap |
| std::string | _filename |
| PathNameHint | _pathNameHint |
| bool | _outputTextureFiles |
| unsigned int | _textureFileNameNumber |
Used in output of .osg ASCII files to improve their readability.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wrap a string with "" quotes and use \" for any internal quotes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|