|
void | readCommandLine (osg::ArgumentParser &commandLine) |
| read the command line arguments. More...
|
|
void | addFileExtensionAlias (const std::string mapExt, const std::string toExt) |
| register an .fileextension alias to mapExt toExt, the later should be the extension name of the readerwriter plugin library. More...
|
|
bool | readPluginAliasConfigurationFile (const std::string &file) |
| Reads a file that configures extension mappings. More...
|
|
void | addMimeTypeExtensionMapping (const std::string fromMimeType, const std::string toExt) |
| Registers a mapping of a mime-type to an extension. More...
|
|
MimeTypeExtensionMap & | getMimeTypeExtensionMap () |
|
const MimeTypeExtensionMap & | getMimeTypeExtensionMap () const |
|
void | addReaderWriter (ReaderWriter *rw) |
|
void | removeReaderWriter (ReaderWriter *rw) |
|
void | addImageProcessor (ImageProcessor *ip) |
|
void | removeImageProcessor (ImageProcessor *ip) |
|
std::string | createLibraryNameForFile (const std::string &fileName) |
| create the platform specific library name associated with file. More...
|
|
std::string | createLibraryNameForExtension (const std::string &ext) |
| create the platform specific library name associated with file extension. More...
|
|
std::string | createLibraryNameForNodeKit (const std::string &name) |
| create the platform specific library name associated with nodekit library name. More...
|
|
LoadStatus | loadLibrary (const std::string &fileName) |
| find the library in the OSG_LIBRARY_PATH and load it. More...
|
|
bool | closeLibrary (const std::string &fileName) |
| close the attached library with specified name. More...
|
|
void | closeAllLibraries () |
| close all libraries. More...
|
|
ReaderWriter * | getReaderWriterForExtension (const std::string &ext) |
| get a reader writer which handles specified extension. More...
|
|
ReaderWriter * | getReaderWriterForMimeType (const std::string &mimeType) |
| gets a reader/writer that handles the extension mapped to by one of the registered mime-types. More...
|
|
ReaderWriterList & | getReaderWriterList () |
| get list of all registered ReaderWriters. More...
|
|
const ReaderWriterList & | getReaderWriterList () const |
| get const list of all registered ReaderWriters. More...
|
|
void | getReaderWriterListForProtocol (const std::string &protocol, ReaderWriterList &results) const |
| get a list of registered ReaderWriters which can handle given protocol
|
|
ReaderWriter * | getReaderWriterForProtocolAndExtension (const std::string &protocol, const std::string &extension) |
|
ImageProcessor * | getImageProcessor () |
| get a image processor if available. More...
|
|
ImageProcessor * | getImageProcessorForExtension (const std::string &ext) |
| get a image processor which is associated specified extension. More...
|
|
ImageProcessorList & | getImageProcessorList () |
| get list of all registered ImageProcessors. More...
|
|
const ImageProcessorList & | getImageProcessorList () const |
| get const list of all registered ImageProcessors. More...
|
|
void | setFindFileCallback (FindFileCallback *cb) |
| Set the Registry callback to use in place of the default findFile calls. More...
|
|
FindFileCallback * | getFindFileCallback () |
| Get the findFile callback. More...
|
|
const FindFileCallback * | getFindFileCallback () const |
| Get the const findFile callback. More...
|
|
std::string | findDataFile (const std::string &fileName, const Options *options, CaseSensitivity caseSensitivity) |
|
std::string | findDataFileImplementation (const std::string &fileName, const Options *options, CaseSensitivity caseSensitivity) |
|
std::string | findLibraryFile (const std::string &fileName, const Options *options, CaseSensitivity caseSensitivity) |
|
std::string | findLibraryFileImplementation (const std::string &fileName, const Options *options, CaseSensitivity caseSensitivity) |
|
void | setReadFileCallback (ReadFileCallback *cb) |
| Set the Registry callback to use in place of the default readFile calls. More...
|
|
ReadFileCallback * | getReadFileCallback () |
| Get the readFile callback. More...
|
|
const ReadFileCallback * | getReadFileCallback () const |
| Get the const readFile callback. More...
|
|
ReaderWriter::ReadResult | openArchive (const std::string &fileName, ReaderWriter::ArchiveStatus status, unsigned int indexBlockSizeHint, const Options *options) |
|
ReaderWriter::ReadResult | openArchiveImplementation (const std::string &fileName, ReaderWriter::ArchiveStatus status, unsigned int indexBlockSizeHint, const Options *options) |
|
ReaderWriter::ReadResult | readObject (const std::string &fileName, const Options *options, bool buildKdTreeIfRequired=true) |
|
ReaderWriter::ReadResult | readObjectImplementation (const std::string &fileName, const Options *options) |
|
ReaderWriter::ReadResult | readImage (const std::string &fileName, const Options *options) |
|
ReaderWriter::ReadResult | readImageImplementation (const std::string &fileName, const Options *options) |
|
ReaderWriter::ReadResult | readHeightField (const std::string &fileName, const Options *options) |
|
ReaderWriter::ReadResult | readHeightFieldImplementation (const std::string &fileName, const Options *options) |
|
ReaderWriter::ReadResult | readNode (const std::string &fileName, const Options *options, bool buildKdTreeIfRequired=true) |
|
ReaderWriter::ReadResult | readNodeImplementation (const std::string &fileName, const Options *options) |
|
ReaderWriter::ReadResult | readShader (const std::string &fileName, const Options *options) |
|
ReaderWriter::ReadResult | readShaderImplementation (const std::string &fileName, const Options *options) |
|
ReaderWriter::ReadResult | readScript (const std::string &fileName, const Options *options) |
|
ReaderWriter::ReadResult | readScriptImplementation (const std::string &fileName, const Options *options) |
|
void | setWriteFileCallback (WriteFileCallback *cb) |
| Set the Registry callback to use in place of the default writeFile calls. More...
|
|
WriteFileCallback * | getWriteFileCallback () |
| Get the writeFile callback. More...
|
|
const WriteFileCallback * | getWriteFileCallback () const |
| Get the const writeFile callback. More...
|
|
ReaderWriter::WriteResult | writeObject (const osg::Object &obj, const std::string &fileName, const Options *options) |
|
ReaderWriter::WriteResult | writeObjectImplementation (const osg::Object &obj, const std::string &fileName, const Options *options) |
|
ReaderWriter::WriteResult | writeImage (const osg::Image &obj, const std::string &fileName, const Options *options) |
|
ReaderWriter::WriteResult | writeImageImplementation (const osg::Image &obj, const std::string &fileName, const Options *options) |
|
ReaderWriter::WriteResult | writeHeightField (const osg::HeightField &obj, const std::string &fileName, const Options *options) |
|
ReaderWriter::WriteResult | writeHeightFieldImplementation (const osg::HeightField &obj, const std::string &fileName, const Options *options) |
|
ReaderWriter::WriteResult | writeNode (const osg::Node &node, const std::string &fileName, const Options *options) |
|
ReaderWriter::WriteResult | writeNodeImplementation (const osg::Node &node, const std::string &fileName, const Options *options) |
|
ReaderWriter::WriteResult | writeShader (const osg::Shader &obj, const std::string &fileName, const Options *options) |
|
ReaderWriter::WriteResult | writeShaderImplementation (const osg::Shader &obj, const std::string &fileName, const Options *options) |
|
ReaderWriter::WriteResult | writeScript (const osg::Script &obj, const std::string &fileName, const Options *options) |
|
ReaderWriter::WriteResult | writeScriptImplementation (const osg::Script &obj, const std::string &fileName, const Options *options) |
|
void | _buildKdTreeIfRequired (ReaderWriter::ReadResult &result, const Options *options) |
|
void | setFileLocationCallback (FileLocationCallback *cb) |
| Set the callback to use inform to the DatabasePager whether a file is located on local or remote file system. More...
|
|
FileLocationCallback * | getFileLocationCallback () const |
| Get the callback to use inform to the DatabasePager whether a file is located on local or remote file system. More...
|
|
void | setBuildKdTreesHint (Options::BuildKdTreesHint hint) |
| Set whether the KdTrees should be built for geometry in the loader model. More...
|
|
Options::BuildKdTreesHint | getBuildKdTreesHint () const |
| Get whether the KdTrees should be built for geometry in the loader model. More...
|
|
void | setKdTreeBuilder (osg::KdTreeBuilder *builder) |
| Set the KdTreeBuilder visitor that is used to build KdTree on loaded models. More...
|
|
osg::KdTreeBuilder * | getKdTreeBuilder () |
| Get the KdTreeBuilder visitor that is used to build KdTree on loaded models. More...
|
|
void | setFileCache (FileCache *fileCache) |
| Set the FileCache that is used to manage local storage of files downloaded from the internet. More...
|
|
FileCache * | getFileCache () |
| Get the FileCache that is used to manage local storage of files downloaded from the internet. More...
|
|
const FileCache * | getFileCache () const |
| Get the const FileCache that is used to manage local storage of files downloaded from the internet. More...
|
|
void | setAuthenticationMap (AuthenticationMap *authenticationMap) |
| Set the password map to be used by plugins when access files from secure locations. More...
|
|
AuthenticationMap * | getAuthenticationMap () |
| Get the password map to be used by plugins when access files from secure locations. More...
|
|
const AuthenticationMap * | getAuthenticationMap () const |
| Get the password map to be used by plugins when access files from secure locations. More...
|
|
void | setCreateNodeFromImage (bool flag) |
|
bool | getCreateNodeFromImage () const |
|
void | setOptions (Options *opt) |
|
Options * | getOptions () |
|
const Options * | getOptions () const |
|
void | initFilePathLists () |
| initialize both the Data and Library FilePaths, by default called by the constructor, so it should only be required if you want to force the re-reading of environmental variables. More...
|
|
void | initDataFilePathList () |
| initialize the Data FilePath by reading the OSG_FILE_PATH environmental variable. More...
|
|
void | setDataFilePathList (const FilePathList &filepath) |
| Set the data file path using a list of paths stored in a FilePath, which is used when search for data files. More...
|
|
void | setDataFilePathList (const std::string &paths) |
| Set the data file path using a single string delimited either with ';' (Windows) or ':' (All other platforms), which is used when search for data files. More...
|
|
FilePathList & | getDataFilePathList () |
| get the data file path which is used when search for data files. More...
|
|
const FilePathList & | getDataFilePathList () const |
| get the const data file path which is used when search for data files. More...
|
|
void | initLibraryFilePathList () |
| initialize the Library FilePath by reading the OSG_LIBRARY_PATH and the appropriate system environmental variables
|
|
void | setLibraryFilePathList (const FilePathList &filepath) |
| Set the library file path using a list of paths stored in a FilePath, which is used when search for data files. More...
|
|
void | setLibraryFilePathList (const std::string &paths) |
| Set the library file path using a single string delimited either with ';' (Windows) or ':' (All other platforms), which is used when search for data files. More...
|
|
FilePathList & | getLibraryFilePathList () |
| get the library file path which is used when search for library (dso/dll's) files. More...
|
|
const FilePathList & | getLibraryFilePathList () const |
| get the const library file path which is used when search for library (dso/dll's) files. More...
|
|
void | setObjectCache (ObjectCache *objectCache) |
| Set the ObjectCache that is used to manage local storage of files downloaded from the internet. More...
|
|
ObjectCache * | getObjectCache () |
| Get the ObjectCache that is used to manage local storage of files downloaded from the internet. More...
|
|
const ObjectCache * | getObjectCache () const |
| Get the const ObjectCache that is used to manage local storage of files downloaded from the internet. More...
|
|
void | setExpiryDelay (double expiryDelay) |
| set hint to viewer code calling removeExpiredObjectsInCache to specify how long it should give before expiring objects in Registry cache,
|
|
double | getExpiryDelay () const |
|
void | updateTimeStampOfObjectsInCacheWithExternalReferences (const osg::FrameStamp &frameStamp) |
| For each object in the cache which has an reference count greater than 1 (and therefore referenced by elsewhere in the application) set the time stamp for that object in the cache to specified time. More...
|
|
void | removeExpiredObjectsInCache (const osg::FrameStamp &frameStamp) |
| Removed object in the cache which have a time stamp at or before the specified expiry time. More...
|
|
void | clearObjectCache () |
| Remove all objects in the cache regardless of having external references or expiry times. More...
|
|
void | addEntryToObjectCache (const std::string &filename, osg::Object *object, double timestamp=0.0) |
| Add a filename,object,timestamp triple to the Registry::ObjectCache. More...
|
|
void | removeFromObjectCache (const std::string &fileName) |
| Remove Object from cache. More...
|
|
osg::Object * | getFromObjectCache (const std::string &fileName) |
| Get an Object from the object cache.
|
|
osg::ref_ptr< osg::Object > | getRefFromObjectCache (const std::string &fileName) |
| Get an ref_ptr<Object> from the object cache.
|
|
void | addToArchiveCache (const std::string &fileName, osgDB::Archive *archive) |
| Add archive to archive cache so that future calls reference this archive. More...
|
|
void | removeFromArchiveCache (const std::string &fileName) |
| Remove Archive from cache. More...
|
|
osgDB::Archive * | getFromArchiveCache (const std::string &fileName) |
| Get an Archive from the archive cache. More...
|
|
osg::ref_ptr< osgDB::Archive > | getRefFromArchiveCache (const std::string &fileName) |
| Get an ref_ptr<Archive> from the archive cache. More...
|
|
void | clearArchiveCache () |
| Remove all archives from the archive cache. More...
|
|
void | releaseGLObjects (osg::State *state=0) |
| If State is non-zero, this function releases OpenGL objects for the specified graphics context. More...
|
|
DynamicLibrary * | getLibrary (const std::string &fileName) |
| get the attached library with specified name. More...
|
|
void | setSharedStateManager (SharedStateManager *SharedStateManager) |
| Set the SharedStateManager. More...
|
|
SharedStateManager * | getOrCreateSharedStateManager () |
| Get the SharedStateManager, creating one if one is not already created. More...
|
|
SharedStateManager * | getSharedStateManager () |
| Get the SharedStateManager. More...
|
|
void | addArchiveExtension (const std::string ext) |
| Add an Archive extension. More...
|
|
void | registerProtocol (const std::string &protocol) |
| registers a protocol
|
|
bool | isProtocolRegistered (const std::string &protocol) |
| returns true, if named protocol is registered
|
|
ObjectWrapperManager * | getObjectWrapperManager () |
| Get the ObjectWrapperManager that is used to store all the ObjectWrappers. More...
|
|
DeprecatedDotOsgWrapperManager * | getDeprecatedDotOsgObjectWrapperManager () |
| Get the ObjectWrapperManager that is used to store all the ObjectWrappers. More...
|
|
const ArchiveExtensionList & | getArchiveExtensions () const |
|
| Referenced (bool threadSafeRefUnref) |
|
| Referenced (const Referenced &) |
|
Referenced & | operator= (const Referenced &) |
|
virtual void | setThreadSafeRefUnref (bool threadSafe) |
| Set whether to use a mutex to ensure ref() and unref() are thread safe. More...
|
|
bool | getThreadSafeRefUnref () const |
| Get whether a mutex is used to ensure ref() and unref() are thread safe. More...
|
|
bool | getThreadSafeRefUnref () const |
|
OpenThreads::Mutex * | getRefMutex () const |
| Get the mutex used to ensure thread safety of ref()/unref(). More...
|
|
OpenThreads::Mutex * | getRefMutex () const |
|
int | ref () const |
| Increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
|
|
int | unref () const |
| Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
|
|
int | unref_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
|
|
int | referenceCount () const |
| Return the number of pointers currently referencing this object. More...
|
|
ObserverSet * | getObserverSet () const |
| Get the ObserverSet if one is attached, otherwise return NULL. More...
|
|
ObserverSet * | getOrCreateObserverSet () const |
| Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet. More...
|
|
void | addObserver (Observer *observer) const |
| Add a Observer that is observing this object, notify the Observer when this object gets deleted. More...
|
|
void | removeObserver (Observer *observer) const |
| Remove Observer that is observing this object. More...
|
|