Public Types | |
enum | PathNameHint { AS_IS, FULL_PATH, RELATIVE_PATH, FILENAME_ONLY } |
Public Methods | |
Output () | |
Output (const char *name) | |
virtual | ~Output () |
void | open (const char *name) |
Output & | indent () |
const int | getIndentStep () const |
void | setIndentStep (int step) |
const int | getIndent () const |
void | setIndent (int indent) |
const int | getNumIndicesPerLine () const |
void | setNumIndicesPerLine (int num) |
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) |
const PathNameHint | getPathNameHint () const |
virtual const std::string | getFileNameForOutput (const std::string &filename) const |
Protected Types | |
typedef std::map< const osg::Object *, std::string > | UniqueIDToLabelMapping |
Protected Methods | |
Output (const Output &) | |
Output & | operator= (const Output &) |
virtual void | init () |
Protected Attributes | |
int | _indent |
int | _indentStep |
int | _numIndicesPerLine |
UniqueIDToLabelMapping | _objectToUniqueIDMap |
std::string | _filename |
PathNameHint | _pathNameHint |
Used in output of .osg ASCII files to improve their readability.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|