#include <OSGOSGSceneFileType.h>
Inheritance diagram for osg::OSGSceneFileType:

Public Types | |
| typedef std::vector< FieldContainerPtr > | FCPtrStore |
Public Member Functions | |
Destructor | |
| *virtual | ~OSGSceneFileType (void) |
| Destructor. | |
Get | |
| *virtual const Char8 * | getName (void) const |
Read | |
| *virtual NodePtr | read (std::istream &is, const Char8 *fileNameOrExtension) const |
Write | |
| *virtual bool | write (const NodePtr &node, std::ostream &os, const Char8 *fileNameOrExtension) const |
Static Public Member Functions | |
Class Get | |
| *static OSGSceneFileType & | the (void) |
Protected Member Functions | |
Constructors | |
| * | OSGSceneFileType (const Char8 *suffixArray[], UInt16 suffixByteCount, bool override, UInt32 overridePriority, UInt32 flags) |
| Constructor. | |
Static Protected Attributes | |
Member | |
| *static const Char8 * | _suffixA [] = { "osg" } |
| static OSGSceneFileType | _the |
| static OSGLoader * | _pFile = NULL |
Private Types | |
| typedef SceneFileType | Inherited |
Private Member Functions | |
| OSGSceneFileType (const OSGSceneFileType &source) | |
| prohibit default function (move to 'public' if needed) | |
| void | operator= (const OSGSceneFileType &source) |
| prohibit default function (move to 'public' if needed) | |
Definition at line 54 of file OSGOSGSceneFileType.h.
|
|
Reimplemented from osg::SceneFileType. Definition at line 59 of file OSGOSGSceneFileType.h. |
|
|
Definition at line 124 of file OSGOSGSceneFileType.h. |
|
|
Definition at line 78 of file OSGSceneFileType.h. 00079 { 00080 OSG_READ_SUPPORTED = 1, 00081 OSG_WRITE_SUPPORTED = 2 00082 };
|
|
|
Definition at line 175 of file OSGOSGSceneFileType.cpp.
|
|
||||||||||||||||||||||||
|
Definition at line 157 of file OSGOSGSceneFileType.cpp. 00161 : 00162 Inherited(suffixArray, 00163 suffixByteCount, 00164 override, 00165 overridePriority, 00166 flags) 00167 { 00168 return; 00169 }
|
|
|
|
|
|
Definition at line 86 of file OSGOSGSceneFileType.cpp. References _the. 00087 { 00088 return _the; 00089 }
|
|
|
Implements osg::SceneFileType. Definition at line 109 of file OSGOSGSceneFileType.cpp.
|
|
||||||||||||
|
Reimplemented from osg::SceneFileType. Definition at line 115 of file OSGOSGSceneFileType.cpp. References _pFile, osg::OSGLoader::getRootNode(), and osg::OSGLoader::scanStream(). 00116 { 00117 if(_pFile == NULL) 00118 _pFile = new OSGLoader; 00119 00120 _pFile->scanStream(is); 00121 00122 return _pFile->getRootNode(); 00123 }
|
|
||||||||||||||||
|
Reimplemented from osg::SceneFileType. Definition at line 125 of file OSGOSGSceneFileType.cpp. References FFATAL, and osg::OSGWriter::write(). 00127 { 00128 if(!os) 00129 { 00130 FFATAL(("Can not open output stream!\n")); 00131 return false; 00132 } 00133 00134 OSGWriter writer(os, 4); 00135 writer.write(root); 00136 00137 return true; 00138 }
|
|
|
|
|
|
Definition at line 115 of file OSGSceneFileType.cpp. References osg::SceneFileType::_options. Referenced by osg::SceneFileHandler::setOptions(). 00116 { 00117 _options = options; 00118 }
|
|
|
Definition at line 138 of file OSGSceneFileType.cpp. References osg::SceneFileType::_suffixList. Referenced by osg::SceneFileHandler::addSceneFileType(), and osg::SceneFileHandler::subSceneFileType(). 00139 { 00140 return _suffixList; 00141 }
|
|
|
Definition at line 145 of file OSGSceneFileType.cpp. References osg::SceneFileType::_override. Referenced by osg::SceneFileHandler::addSceneFileType(), and osg::SceneFileHandler::FindOverride::operator()(). 00146 { 00147 return _override; 00148 }
|
|
|
Definition at line 152 of file OSGSceneFileType.cpp. References osg::SceneFileType::_overridePriority. Referenced by osg::SceneFileHandler::addSceneFileType(), and osg::SceneFileHandler::FindOverride::operator()(). 00153 { 00154 return _overridePriority; 00155 }
|
|
|
Definition at line 159 of file OSGSceneFileType.cpp. References osg::SceneFileType::_flags. Referenced by osg::SceneFileHandler::getSuffixList(), and osg::SceneFileHandler::print(). 00160 { 00161 return _flags; 00162 }
|
|
|
Definition at line 166 of file OSGSceneFileType.cpp. References osg::SceneFileType::_options. Referenced by osg::SceneFileHandler::getOptions(). 00167 { 00168 return _options.c_str(); 00169 }
|
|
|
Definition at line 181 of file OSGSceneFileType.cpp. References FWARNING, and osg::NullFC. Referenced by osg::SceneFileHandler::read().
|
|
||||||||||||
|
Definition at line 197 of file OSGSceneFileType.cpp. References FWARNING. Referenced by osg::SceneFileHandler::write(). 00199 { 00200 FWARNING (("FILE INTERFACE NOT IMPLEMENTED!\n")); 00201 return false; 00202 }
|
|
|
Definition at line 121 of file OSGSceneFileType.cpp. References osg::SceneFileType::_suffixList, osg::SceneFileType::getName(), osg::LOG_DEBUG, osg::osgLog(), and osg::Log::stream(). 00122 { 00123 std::list<IDString>::iterator sI; 00124 00125 osgLog() << getName(); 00126 00127 if (_suffixList.empty()) 00128 osgLog() << "NONE"; 00129 else 00130 for (sI = _suffixList.begin(); sI != _suffixList.end(); sI++) 00131 osgLog().stream(OSG::LOG_DEBUG) << sI->str() << " "; 00132 00133 osgLog() << std::endl; 00134 }
|
|
|
Definition at line 67 of file OSGOSGSceneFileType.cpp. |
|
|
Referenced by the(). |
|
|
Definition at line 76 of file OSGOSGSceneFileType.cpp. Referenced by read(). |
|
|
Definition at line 152 of file OSGSceneFileType.h. Referenced by osg::SceneFileType::print(), osg::SceneFileType::SceneFileType(), and osg::SceneFileType::suffixList(). |
|
|
Definition at line 154 of file OSGSceneFileType.h. Referenced by osg::SceneFileType::doOverride(). |
|
|
Definition at line 155 of file OSGSceneFileType.h. Referenced by osg::SceneFileType::getOverridePriority(). |
|
|
Definition at line 156 of file OSGSceneFileType.h. Referenced by osg::SceneFileType::getFlags(). |
|
|
Definition at line 158 of file OSGSceneFileType.h. Referenced by osg::SceneFileType::getOptions(), and osg::SceneFileType::setOptions(). |
1.4.3