509 lines
30 KiB
HTML
509 lines
30 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>class OSGDB_EXPORT osgDB::Registry</TITLE>
|
|
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.10">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
|
|
<H2>class OSGDB_EXPORT <A HREF="#DOC.DOCU">osgDB::Registry</A></H2></H2><BLOCKQUOTE> Registry is a singleton factory which stores the reader/writers which are linked in at runtime for reading non-native file formats.</BLOCKQUOTE>
|
|
<HR>
|
|
|
|
<H2>Inheritance:</H2>
|
|
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=65>
|
|
<param name=classes value="Mosg::Referenced,M,CRegistry,MRegistry.html">
|
|
<param name=before value="M,M">
|
|
<param name=after value="Md_,M">
|
|
<param name=indent value="0,1">
|
|
<param name=arrowdir value="down">
|
|
</APPLET>
|
|
<HR>
|
|
|
|
<DL>
|
|
<P><DL>
|
|
<DT><H3>Public Methods</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>static <!1><A HREF="Registry.html">Registry</A>* <B><A HREF="#DOC.2.38.1">instance</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.38.2">readCommandLine</A></B>(std::vector<std::string>& commandLine)
|
|
<DD><I>read the command line string list, removing any matched control sequences</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.38.3">addFileExtensionAlias</A></B>(const std::string mapExt, const std::string toExt)
|
|
<DD><I>register an fileextension alias to mapExt toExt, the later should the the extension name of the readerwriter plugin library.</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.38.4">addDotOsgWrapper</A></B>(<!1><A HREF="DotOsgWrapper.html">DotOsgWrapper</A>* wrapper)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.38.5">removeDotOsgWrapper</A></B>(<!1><A HREF="DotOsgWrapper.html">DotOsgWrapper</A>* wrapper)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.38.6">addReaderWriter</A></B>(<!1><A HREF="ReaderWriter.html">ReaderWriter</A>* rw)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.38.7">removeReaderWriter</A></B>(<!1><A HREF="ReaderWriter.html">ReaderWriter</A>* rw)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>std::string <B><A HREF="#DOC.2.38.8">createLibraryNameForFile</A></B>(const std::string& fileName)
|
|
<DD><I>create the platform specific library name associated with file</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>std::string <B><A HREF="#DOC.2.38.9">createLibraryNameForExt</A></B>(const std::string& ext)
|
|
<DD><I>create the platform specific library name associated with file extension</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>std::string <B><A HREF="#DOC.2.38.10">createLibraryNameForNodeKit</A></B>(const std::string& name)
|
|
<DD><I>create the platform specific library name associated with nodekit library name</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.38.11">loadLibrary</A></B>(const std::string& fileName)
|
|
<DD><I>find the library in the SG_LIBRARY_PATH and load it</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.38.12">closeLibrary</A></B>(const std::string& fileName)
|
|
<DD><I>close the attached library with specified name</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::Object* <B><A HREF="#DOC.2.38.13">readObjectOfType</A></B>(const osg::Object& compObj, <!1><A HREF="Input.html">Input</A>& fr)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::Object* <B><A HREF="#DOC.2.38.14">readObject</A></B>(<!1><A HREF="Input.html">Input</A>& fr)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::Image* <B><A HREF="#DOC.2.38.15">readImage</A></B>(<!1><A HREF="Input.html">Input</A>& fr)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::Drawable* <B><A HREF="#DOC.2.38.16">readDrawable</A></B>(<!1><A HREF="Input.html">Input</A>& fr)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::StateAttribute* <B><A HREF="#DOC.2.38.17">readStateAttribute</A></B>(<!1><A HREF="Input.html">Input</A>& fr)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::Node* <B><A HREF="#DOC.2.38.18">readNode</A></B>(<!1><A HREF="Input.html">Input</A>& fr)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.38.19">writeObject</A></B>(const osg::Object& obj, <!1><A HREF="Output.html">Output</A>& fw)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>ReaderWriter::ReadResult <B><A HREF="#DOC.2.38.20">readObject</A></B>(const std::string& fileName)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>ReaderWriter::WriteResult <B><A HREF="#DOC.2.38.21">writeObject</A></B>(const osg::Object& obj, const std::string& fileName)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>ReaderWriter::ReadResult <B><A HREF="#DOC.2.38.22">readImage</A></B>(const std::string& fileName)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>ReaderWriter::WriteResult <B><A HREF="#DOC.2.38.23">writeImage</A></B>(const osg::Image& obj, const std::string& fileName)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>ReaderWriter::ReadResult <B><A HREF="#DOC.2.38.24">readNode</A></B>(const std::string& fileName)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>ReaderWriter::WriteResult <B><A HREF="#DOC.2.38.25">writeNode</A></B>(const osg::Node& node, const std::string& fileName)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.38.26">setCreateNodeFromImage</A></B>(bool flag)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.38.27">getCreateNodeFromImage</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.38.28">setOptions</A></B>(ReaderWriter::Options* opt)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>ReaderWriter::Options* <B><A HREF="#DOC.2.38.29">getOptions</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const ReaderWriter::Options* <B><A HREF="#DOC.2.38.30">getOptions</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.38.31">initFilePathLists</A></B>()
|
|
<DD><I>initilize 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</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.38.32">initDataFilePathList</A></B>()
|
|
<DD><I>initilize the Data FilePath by reading the OSG_FILE_PATH environmental variable</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.38.33">setDataFilePathList</A></B>(const <!1><A HREF="FilePathList.html">FilePathList</A>& filepath)
|
|
<DD><I>Set the data file path using a list of paths stored in a FilePath, which is used when search for data files</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.38.34">setDataFilePathList</A></B>(const std::string& paths)
|
|
<DD><I>Set the data file path using a single string deliminated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="FilePathList.html">FilePathList</A>& <B><A HREF="#DOC.2.38.35">getDataFilePathList</A></B>()
|
|
<DD><I>get the data file path which is used when search for data files</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="FilePathList.html">FilePathList</A>& <B><A HREF="#DOC.2.38.36">getDataFilePathList</A></B>() const
|
|
<DD><I>get the const data file path which is used when search for data files</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.38.37">initLibraryFilePathList</A></B>()
|
|
<DD><I>initilize the Library FilePath by reading the OSG_LIBRARY_PATH and the appropriate system environmental variables</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.38.38">setLibraryFilePathList</A></B>(const <!1><A HREF="FilePathList.html">FilePathList</A>& filepath)
|
|
<DD><I>Set the library file path using a list of paths stored in a FilePath, which is used when search for data files</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.38.39">setLibraryFilePathList</A></B>(const std::string& paths)
|
|
<DD><I>Set the library file path using a single string deliminated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="FilePathList.html">FilePathList</A>& <B><A HREF="#DOC.2.38.40">getLibraryFilePathList</A></B>()
|
|
<DD><I>get the library file path which is used when search for library (dso/dll's) files</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="FilePathList.html">FilePathList</A>& <B><A HREF="#DOC.2.38.41">getLibraryFilePathList</A></B>() const
|
|
<DD><I>get the const library file path which is used when search for library (dso/dll's) files</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>static void <B><A HREF="#DOC.2.38.42">convertStringPathIntoFilePathList</A></B>(const std::string& paths, <!1><A HREF="FilePathList.html">FilePathList</A>& filepath)
|
|
<DD><I>convert a string containing a list of paths deliminated either with ';' (Windows) or ':' (All other platforms) into FilePath represetation</I>
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Protected Fields</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.38.51">_createNodeFromImage</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Registry.html#DOC.2.38.44">DotOsgWrapperMap</A> <B><A HREF="#DOC.2.38.54">_objectWrapperMap</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Registry.html#DOC.2.38.44">DotOsgWrapperMap</A> <B><A HREF="#DOC.2.38.55">_imageWrapperMap</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Registry.html#DOC.2.38.44">DotOsgWrapperMap</A> <B><A HREF="#DOC.2.38.56">_drawableWrapperMap</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Registry.html#DOC.2.38.44">DotOsgWrapperMap</A> <B><A HREF="#DOC.2.38.57">_stateAttrWrapperMap</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Registry.html#DOC.2.38.44">DotOsgWrapperMap</A> <B><A HREF="#DOC.2.38.58">_nodeWrapperMap</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Registry.html#DOC.2.38.44">DotOsgWrapperMap</A> <B><A HREF="#DOC.2.38.59">_classNameWrapperMap</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Registry.html#DOC.2.38.45">ReaderWriterList</A> <B><A HREF="#DOC.2.38.60">_rwList</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Registry.html#DOC.2.38.46">DynamicLibraryList</A> <B><A HREF="#DOC.2.38.61">_dlList</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.38.62">_openingLibrary</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Registry.html#DOC.2.38.47">ExtensionAliasMap</A> <B><A HREF="#DOC.2.38.63">_extAliasMap</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr<ReaderWriter::Options> <B><A HREF="#DOC.2.38.64">_options</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="FilePathList.html">FilePathList</A> <B><A HREF="#DOC.2.38.65">_dataFilePath</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="FilePathList.html">FilePathList</A> <B><A HREF="#DOC.2.38.66">_libraryFilePath</A></B>
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Protected Methods</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <B><A HREF="#DOC.2.38.43">~Registry</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.38.48">Registry</A></B>()
|
|
<DD><I>constructor is private, as its a singleton, preventing construction other than via the instance() method and therefore ensuring only one copy is ever constructed</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>DynamicLibraryList::iterator <B><A HREF="#DOC.2.38.49">getLibraryItr</A></B>(const std::string& fileName)
|
|
<DD><I>get the attached library with specified name</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="DynamicLibrary.html">DynamicLibrary</A>* <B><A HREF="#DOC.2.38.50">getLibrary</A></B>(const std::string& fileName)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::Object* <B><A HREF="#DOC.2.38.52">readObject</A></B>(<!1><A HREF="Registry.html#DOC.2.38.44">DotOsgWrapperMap</A>& dowMap, <!1><A HREF="Input.html">Input</A>& fr)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.38.53">eraseWrapper</A></B>(<!1><A HREF="Registry.html#DOC.2.38.44">DotOsgWrapperMap</A>& wrappermap, <!1><A HREF="DotOsgWrapper.html">DotOsgWrapper</A>* wrapper)
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Protected Members</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::map<std::string,osg::ref_ptr<<!1><A HREF="DotOsgWrapper.html">DotOsgWrapper</A>> > <B><A HREF="#DOC.2.38.44">DotOsgWrapperMap</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::vector<osg::ref_ptr<<!1><A HREF="ReaderWriter.html">ReaderWriter</A>> > <B><A HREF="#DOC.2.38.45">ReaderWriterList</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::vector<osg::ref_ptr<<!1><A HREF="DynamicLibrary.html">DynamicLibrary</A>> > <B><A HREF="#DOC.2.38.46">DynamicLibraryList</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::map<std::string,std::string> <B><A HREF="#DOC.2.38.47">ExtensionAliasMap</A></B>
|
|
</DL></P>
|
|
|
|
</DL>
|
|
|
|
<A NAME="DOC.DOCU"></A>
|
|
<HR>
|
|
<H2>Documentation</H2>
|
|
<BLOCKQUOTE>
|
|
Registry is a singleton factory which stores
|
|
the reader/writers which are linked in
|
|
at runtime for reading non-native file formats.
|
|
|
|
<P>The RegisterDotOsgWrapperProxy can be used to automatically register
|
|
DotOsgWrappers, at runtime with the Registry. A DotOsgWrapper encapsulates
|
|
the functions that can read and write to the .osg for each osg::Object.
|
|
|
|
<P>The RegisterReaderWriterProxy can be used to automatically
|
|
register at runtime a reader/writer with the Registry.</BLOCKQUOTE>
|
|
<DL>
|
|
|
|
<A NAME="instance"></A>
|
|
<A NAME="DOC.2.38.1"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static <!1><A HREF="Registry.html">Registry</A>* instance()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="readCommandLine"></A>
|
|
<A NAME="DOC.2.38.2"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void readCommandLine(std::vector<std::string>& commandLine)</B></TT>
|
|
<DD>read the command line string list, removing any matched control sequences
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="addFileExtensionAlias"></A>
|
|
<A NAME="DOC.2.38.3"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void addFileExtensionAlias(const std::string mapExt, const std::string toExt)</B></TT>
|
|
<DD>register an fileextension alias to mapExt toExt, the later
|
|
should the the extension name of the readerwriter plugin library.
|
|
For example to map .tif files to the tiff loader, use
|
|
addExtAlias("tif","tiff") which will enable .tif to be read
|
|
by the libdb_tiff readerwriter plugin.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="addDotOsgWrapper"></A>
|
|
<A NAME="DOC.2.38.4"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void addDotOsgWrapper(<!1><A HREF="DotOsgWrapper.html">DotOsgWrapper</A>* wrapper)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="removeDotOsgWrapper"></A>
|
|
<A NAME="DOC.2.38.5"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void removeDotOsgWrapper(<!1><A HREF="DotOsgWrapper.html">DotOsgWrapper</A>* wrapper)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="addReaderWriter"></A>
|
|
<A NAME="DOC.2.38.6"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void addReaderWriter(<!1><A HREF="ReaderWriter.html">ReaderWriter</A>* rw)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="removeReaderWriter"></A>
|
|
<A NAME="DOC.2.38.7"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void removeReaderWriter(<!1><A HREF="ReaderWriter.html">ReaderWriter</A>* rw)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="createLibraryNameForFile"></A>
|
|
<A NAME="DOC.2.38.8"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>std::string createLibraryNameForFile(const std::string& fileName)</B></TT>
|
|
<DD>create the platform specific library name associated with file
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="createLibraryNameForExt"></A>
|
|
<A NAME="DOC.2.38.9"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>std::string createLibraryNameForExt(const std::string& ext)</B></TT>
|
|
<DD>create the platform specific library name associated with file extension
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="createLibraryNameForNodeKit"></A>
|
|
<A NAME="DOC.2.38.10"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>std::string createLibraryNameForNodeKit(const std::string& name)</B></TT>
|
|
<DD>create the platform specific library name associated with nodekit library name
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="loadLibrary"></A>
|
|
<A NAME="DOC.2.38.11"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool loadLibrary(const std::string& fileName)</B></TT>
|
|
<DD>find the library in the SG_LIBRARY_PATH and load it
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="closeLibrary"></A>
|
|
<A NAME="DOC.2.38.12"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool closeLibrary(const std::string& fileName)</B></TT>
|
|
<DD>close the attached library with specified name
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="readObjectOfType"></A>
|
|
<A NAME="DOC.2.38.13"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::Object* readObjectOfType(const osg::Object& compObj, <!1><A HREF="Input.html">Input</A>& fr)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="readObject"></A>
|
|
<A NAME="DOC.2.38.14"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::Object* readObject(<!1><A HREF="Input.html">Input</A>& fr)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="readImage"></A>
|
|
<A NAME="DOC.2.38.15"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::Image* readImage(<!1><A HREF="Input.html">Input</A>& fr)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="readDrawable"></A>
|
|
<A NAME="DOC.2.38.16"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::Drawable* readDrawable(<!1><A HREF="Input.html">Input</A>& fr)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="readStateAttribute"></A>
|
|
<A NAME="DOC.2.38.17"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::StateAttribute* readStateAttribute(<!1><A HREF="Input.html">Input</A>& fr)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="readNode"></A>
|
|
<A NAME="DOC.2.38.18"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::Node* readNode(<!1><A HREF="Input.html">Input</A>& fr)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="writeObject"></A>
|
|
<A NAME="DOC.2.38.19"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool writeObject(const osg::Object& obj, <!1><A HREF="Output.html">Output</A>& fw)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="readObject"></A>
|
|
<A NAME="DOC.2.38.20"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>ReaderWriter::ReadResult readObject(const std::string& fileName)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="writeObject"></A>
|
|
<A NAME="DOC.2.38.21"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>ReaderWriter::WriteResult writeObject(const osg::Object& obj, const std::string& fileName)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="readImage"></A>
|
|
<A NAME="DOC.2.38.22"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>ReaderWriter::ReadResult readImage(const std::string& fileName)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="writeImage"></A>
|
|
<A NAME="DOC.2.38.23"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>ReaderWriter::WriteResult writeImage(const osg::Image& obj, const std::string& fileName)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="readNode"></A>
|
|
<A NAME="DOC.2.38.24"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>ReaderWriter::ReadResult readNode(const std::string& fileName)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="writeNode"></A>
|
|
<A NAME="DOC.2.38.25"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>ReaderWriter::WriteResult writeNode(const osg::Node& node, const std::string& fileName)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setCreateNodeFromImage"></A>
|
|
<A NAME="DOC.2.38.26"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setCreateNodeFromImage(bool flag)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getCreateNodeFromImage"></A>
|
|
<A NAME="DOC.2.38.27"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool getCreateNodeFromImage() const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setOptions"></A>
|
|
<A NAME="DOC.2.38.28"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setOptions(ReaderWriter::Options* opt)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getOptions"></A>
|
|
<A NAME="DOC.2.38.29"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>ReaderWriter::Options* getOptions()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getOptions"></A>
|
|
<A NAME="DOC.2.38.30"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const ReaderWriter::Options* getOptions() const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="initFilePathLists"></A>
|
|
<A NAME="DOC.2.38.31"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void initFilePathLists()</B></TT>
|
|
<DD>initilize 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
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="initDataFilePathList"></A>
|
|
<A NAME="DOC.2.38.32"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void initDataFilePathList()</B></TT>
|
|
<DD>initilize the Data FilePath by reading the OSG_FILE_PATH environmental variable
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setDataFilePathList"></A>
|
|
<A NAME="DOC.2.38.33"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setDataFilePathList(const <!1><A HREF="FilePathList.html">FilePathList</A>& filepath)</B></TT>
|
|
<DD>Set the data file path using a list of paths stored in a FilePath, which is used when search for data files
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setDataFilePathList"></A>
|
|
<A NAME="DOC.2.38.34"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setDataFilePathList(const std::string& paths)</B></TT>
|
|
<DD>Set the data file path using a single string deliminated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getDataFilePathList"></A>
|
|
<A NAME="DOC.2.38.35"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="FilePathList.html">FilePathList</A>& getDataFilePathList()</B></TT>
|
|
<DD>get the data file path which is used when search for data files
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getDataFilePathList"></A>
|
|
<A NAME="DOC.2.38.36"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="FilePathList.html">FilePathList</A>& getDataFilePathList() const </B></TT>
|
|
<DD>get the const data file path which is used when search for data files
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="initLibraryFilePathList"></A>
|
|
<A NAME="DOC.2.38.37"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void initLibraryFilePathList()</B></TT>
|
|
<DD>initilize the Library FilePath by reading the OSG_LIBRARY_PATH
|
|
and the appropriate system environmental variables
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setLibraryFilePathList"></A>
|
|
<A NAME="DOC.2.38.38"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setLibraryFilePathList(const <!1><A HREF="FilePathList.html">FilePathList</A>& filepath)</B></TT>
|
|
<DD>Set the library file path using a list of paths stored in a FilePath, which is used when search for data files
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setLibraryFilePathList"></A>
|
|
<A NAME="DOC.2.38.39"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setLibraryFilePathList(const std::string& paths)</B></TT>
|
|
<DD>Set the library file path using a single string deliminated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getLibraryFilePathList"></A>
|
|
<A NAME="DOC.2.38.40"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="FilePathList.html">FilePathList</A>& getLibraryFilePathList()</B></TT>
|
|
<DD>get the library file path which is used when search for library (dso/dll's) files
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getLibraryFilePathList"></A>
|
|
<A NAME="DOC.2.38.41"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="FilePathList.html">FilePathList</A>& getLibraryFilePathList() const </B></TT>
|
|
<DD>get the const library file path which is used when search for library (dso/dll's) files
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="convertStringPathIntoFilePathList"></A>
|
|
<A NAME="DOC.2.38.42"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static void convertStringPathIntoFilePathList(const std::string& paths, <!1><A HREF="FilePathList.html">FilePathList</A>& filepath)</B></TT>
|
|
<DD>convert a string containing a list of paths deliminated either with ';' (Windows) or ':' (All other platforms) into FilePath represetation
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="~Registry"></A>
|
|
<A NAME="DOC.2.38.43"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~Registry()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="DotOsgWrapperMap"></A>
|
|
<A NAME="DOC.2.38.44"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::map<std::string,osg::ref_ptr<<!1><A HREF="DotOsgWrapper.html">DotOsgWrapper</A>> > DotOsgWrapperMap</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="ReaderWriterList"></A>
|
|
<A NAME="DOC.2.38.45"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::vector<osg::ref_ptr<<!1><A HREF="ReaderWriter.html">ReaderWriter</A>> > ReaderWriterList</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="DynamicLibraryList"></A>
|
|
<A NAME="DOC.2.38.46"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::vector<osg::ref_ptr<<!1><A HREF="DynamicLibrary.html">DynamicLibrary</A>> > DynamicLibraryList</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="ExtensionAliasMap"></A>
|
|
<A NAME="DOC.2.38.47"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::map<std::string,std::string> ExtensionAliasMap</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="Registry"></A>
|
|
<A NAME="DOC.2.38.48"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Registry()</B></TT>
|
|
<DD>constructor is private, as its a singleton, preventing
|
|
construction other than via the instance() method and
|
|
therefore ensuring only one copy is ever constructed
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getLibraryItr"></A>
|
|
<A NAME="DOC.2.38.49"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>DynamicLibraryList::iterator getLibraryItr(const std::string& fileName)</B></TT>
|
|
<DD>get the attached library with specified name
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getLibrary"></A>
|
|
<A NAME="DOC.2.38.50"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="DynamicLibrary.html">DynamicLibrary</A>* getLibrary(const std::string& fileName)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_createNodeFromImage"></A>
|
|
<A NAME="DOC.2.38.51"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool _createNodeFromImage</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="readObject"></A>
|
|
<A NAME="DOC.2.38.52"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::Object* readObject(<!1><A HREF="Registry.html#DOC.2.38.44">DotOsgWrapperMap</A>& dowMap, <!1><A HREF="Input.html">Input</A>& fr)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="eraseWrapper"></A>
|
|
<A NAME="DOC.2.38.53"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void eraseWrapper(<!1><A HREF="Registry.html#DOC.2.38.44">DotOsgWrapperMap</A>& wrappermap, <!1><A HREF="DotOsgWrapper.html">DotOsgWrapper</A>* wrapper)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_objectWrapperMap"></A>
|
|
<A NAME="DOC.2.38.54"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Registry.html#DOC.2.38.44">DotOsgWrapperMap</A> _objectWrapperMap</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_imageWrapperMap"></A>
|
|
<A NAME="DOC.2.38.55"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Registry.html#DOC.2.38.44">DotOsgWrapperMap</A> _imageWrapperMap</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_drawableWrapperMap"></A>
|
|
<A NAME="DOC.2.38.56"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Registry.html#DOC.2.38.44">DotOsgWrapperMap</A> _drawableWrapperMap</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_stateAttrWrapperMap"></A>
|
|
<A NAME="DOC.2.38.57"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Registry.html#DOC.2.38.44">DotOsgWrapperMap</A> _stateAttrWrapperMap</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_nodeWrapperMap"></A>
|
|
<A NAME="DOC.2.38.58"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Registry.html#DOC.2.38.44">DotOsgWrapperMap</A> _nodeWrapperMap</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_classNameWrapperMap"></A>
|
|
<A NAME="DOC.2.38.59"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Registry.html#DOC.2.38.44">DotOsgWrapperMap</A> _classNameWrapperMap</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_rwList"></A>
|
|
<A NAME="DOC.2.38.60"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Registry.html#DOC.2.38.45">ReaderWriterList</A> _rwList</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_dlList"></A>
|
|
<A NAME="DOC.2.38.61"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Registry.html#DOC.2.38.46">DynamicLibraryList</A> _dlList</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_openingLibrary"></A>
|
|
<A NAME="DOC.2.38.62"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool _openingLibrary</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_extAliasMap"></A>
|
|
<A NAME="DOC.2.38.63"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Registry.html#DOC.2.38.47">ExtensionAliasMap</A> _extAliasMap</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_options"></A>
|
|
<A NAME="DOC.2.38.64"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr<ReaderWriter::Options> _options</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_dataFilePath"></A>
|
|
<A NAME="DOC.2.38.65"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="FilePathList.html">FilePathList</A> _dataFilePath</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_libraryFilePath"></A>
|
|
<A NAME="DOC.2.38.66"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="FilePathList.html">FilePathList</A> _libraryFilePath</B></TT>
|
|
<DL><DT><DD></DL><P></DL>
|
|
|
|
<HR><DL><DT><B>This class has no child classes.</B></DL>
|
|
|
|
<DL><DT><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I> <I><A HREF="HIER.html">HTML hierarchy of classes</A> or <A HREF="HIERjava.html">Java</A></I></P><HR>
|
|
<BR>
|
|
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
|
|
</BODY>
|
|
</HTML>
|