OpenSceneGraph
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
osgDB::Output Class Reference

deprecated. More...

Inheritance diagram for osgDB::Output:
Inheritance graph
[legend]
Collaboration diagram for osgDB::Output:
Collaboration graph
[legend]

Public Types

enum  PathNameHint { AS_IS, FULL_PATH, RELATIVE_PATH, FILENAME_ONLY }
 

Public Member Functions

 Output (const char *name)
 
void setOptions (const Options *options)
 
const OptionsgetOptions () const
 
void setWriteOutDefaultValues (bool flag)
 
bool getWriteOutDefaultValues () const
 
void open (const char *name)
 
Outputindent ()
 
std::string wrapString (const char *str)
 wrap a string with "" quotes and use " for any internal quotes. More...
 
std::string wrapString (const std::string &str)
 wrap a string with "" quotes and use " for any internal quotes. More...
 
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)
 
virtual void writeBeginObject (const std::string &name)
 
virtual void writeEndObject ()
 
virtual void writeUseID (const std::string &id)
 
virtual void writeUniqueID (const std::string &id)
 
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 ()
 
void setOutputShaderFiles (bool flag)
 
bool getOutputShaderFiles () const
 
virtual std::string getShaderFileNameForOutput ()
 
void setExternalFileWritten (const std::string &filename, bool hasBeenWritten=true)
 
bool getExternalFileWritten (const std::string &filename) const
 
- Public Member Functions inherited from osgDB::ofstream
 ofstream (const char *filename, std::ios_base::openmode mode=std::ios_base::out)
 
void open (const char *filename, std::ios_base::openmode mode=std::ios_base::out)
 

Protected Types

typedef std::map< const osg::Object *, std::string > UniqueIDToLabelMapping
 
typedef std::map< std::string, bool > ExternalFileWrittenMap
 

Protected Member Functions

virtual void init ()
 

Protected Attributes

osg::ref_ptr< const Options_options
 
int _indent
 
int _indentStep
 
int _numIndicesPerLine
 
UniqueIDToLabelMapping _objectToUniqueIDMap
 
std::string _filename
 
PathNameHint _pathNameHint
 
bool _outputTextureFiles
 
unsigned int _textureFileNameNumber
 
bool _outputShaderFiles
 
unsigned int _shaderFileNameNumber
 
bool _writeOutDefaultValues
 
ExternalFileWrittenMap _externalFileWritten
 

Detailed Description

deprecated.

Member Function Documentation

◆ wrapString() [1/2]

std::string osgDB::Output::wrapString ( const char *  str)

wrap a string with "" quotes and use " for any internal quotes.

◆ wrapString() [2/2]

std::string osgDB::Output::wrapString ( const std::string &  str)

wrap a string with "" quotes and use " for any internal quotes.


The documentation for this class was generated from the following file: