osgDB::ReaderWriter::Options Class Reference

Inheritance diagram for osgDB::ReaderWriter::Options:

osg::Object osg::Referenced osgDB::ImageOptions List of all members.

Public Types

 CACHE_NONE = 0
 do not cache objects of any type
 CACHE_NODES = 1
 cache nodes loaded via readNode(filename)
 CACHE_IMAGES = 2
 cache images loaded via readImage(filename)
 CACHE_HEIGHTFIELDS = 4
 cache heightfield loaded via readHeightField(filename)
 CACHE_ARCHIVES = 8
 cache heightfield loaded via readHeightField(filename)
 CACHE_OBJECTS = 16
 cache objects loaded via readObject(filename)
 CACHE_ALL
 cache on all read*(filename) calls
enum  CacheHintOptions {
  CACHE_NONE = 0, CACHE_NODES = 1, CACHE_IMAGES = 2, CACHE_HEIGHTFIELDS = 4,
  CACHE_ARCHIVES = 8, CACHE_OBJECTS = 16, CACHE_ALL
}
 bit mask for setting up which object types get cached by readObject/Image/HeightField/Node(filename) calls More...

Public Member Functions

 Options ()
 Options (const std::string &str)
 Options (const Options &options, const osg::CopyOp copyop=osg::CopyOp::SHALLOW_COPY)
 META_Object (osgDB, Options)
void setOptionString (const std::string &str)
const std::string & getOptionString () const
void setDatabasePath (const std::string &str)
FilePathListgetDatabasePathList ()
const FilePathListgetDatabasePathList () const
void setObjectCacheHint (CacheHintOptions useObjectCache)
CacheHintOptions getObjectCacheHint () const

Protected Member Functions

virtual ~Options ()

Protected Attributes

std::string _str
FilePathList _databasePaths
CacheHintOptions _objectCacheHint

Detailed Description

Options base class used for passing options into plugins to control their operation.


Member Enumeration Documentation

enum osgDB::ReaderWriter::Options::CacheHintOptions

bit mask for setting up which object types get cached by readObject/Image/HeightField/Node(filename) calls

Enumerator:
CACHE_NONE  do not cache objects of any type
CACHE_NODES  cache nodes loaded via readNode(filename)
CACHE_IMAGES  cache images loaded via readImage(filename)
CACHE_HEIGHTFIELDS  cache heightfield loaded via readHeightField(filename)
CACHE_ARCHIVES  cache heightfield loaded via readHeightField(filename)
CACHE_OBJECTS  cache objects loaded via readObject(filename)
CACHE_ALL  cache on all read*(filename) calls


Constructor & Destructor Documentation

osgDB::ReaderWriter::Options::Options (  )  [inline]

osgDB::ReaderWriter::Options::Options ( const std::string &  str  )  [inline]

osgDB::ReaderWriter::Options::Options ( const Options options,
const osg::CopyOp  copyop = osg::CopyOp::SHALLOW_COPY 
) [inline]

virtual osgDB::ReaderWriter::Options::~Options (  )  [inline, protected, virtual]


Member Function Documentation

const FilePathList& osgDB::ReaderWriter::Options::getDatabasePathList (  )  const [inline]

Get the const database path which is used a hint of where to look when loading models.

FilePathList& osgDB::ReaderWriter::Options::getDatabasePathList (  )  [inline]

Get the database path which is used a hint of where to look when loading models.

CacheHintOptions osgDB::ReaderWriter::Options::getObjectCacheHint (  )  const [inline]

Get whether the Registry::ObjectCache should be used by default.

const std::string& osgDB::ReaderWriter::Options::getOptionString (  )  const [inline]

Get the general Options string.

osgDB::ReaderWriter::Options::META_Object ( osgDB  ,
Options   
)

void osgDB::ReaderWriter::Options::setDatabasePath ( const std::string &  str  )  [inline]

Set the database path to use a hint of where to look when loading models.

void osgDB::ReaderWriter::Options::setObjectCacheHint ( CacheHintOptions  useObjectCache  )  [inline]

Set whether the Registry::ObjectCache should be used by default.

void osgDB::ReaderWriter::Options::setOptionString ( const std::string &  str  )  [inline]

Set the general Options string.


Member Data Documentation

FilePathList osgDB::ReaderWriter::Options::_databasePaths [protected]

CacheHintOptions osgDB::ReaderWriter::Options::_objectCacheHint [protected]

std::string osgDB::ReaderWriter::Options::_str [protected]


The documentation for this class was generated from the following file:
Generated on Sun Oct 1 13:17:09 2006 for openscenegraph by  doxygen 1.4.7