XRefObjFinder Class Reference
Inheritance diagram for XRefObjFinder:
Public Methods | |
XRefObjFinder () | |
virtual bool | Proc (INode * pNode) |
Public Attributes | |
TSTR* | m_buffer |
Constructor & Destructor Documentation
|
Definition at line 181 of file xrefutil.cpp. 00181 : m_buffer(NULL) {} |
Member Function Documentation
|
Reimplemented from NodeEnumerator. Definition at line 185 of file xrefutil.cpp. 00186 { 00187 TSTR workstring; 00188 00189 // NOTE: We dump all info into one big string 00190 // Not super realistic, and probably won't work with 00191 // a scene with lots of XRef objects, but in a real exporter 00192 // situation, you'd be dumping out to a file pointer anyway 00193 00194 if (!pNode || !m_buffer) return false; 00195 Object *obj = pNode->GetObjectRef(); 00196 if (obj && obj->SuperClassID()==SYSTEM_CLASS_ID && 00197 obj->ClassID()==Class_ID(XREFOBJ_CLASS_ID,0)) { 00198 IXRefObject *ix = (IXRefObject *)obj; 00199 // if pNode refs an XRef object, let's pull some info out of it 00200 workstring.printf("Node <%s> XREF <%s> filename:<%s> proxy:<%s> anim-off:<%s> update-mats:<%s> \x0D\x0A", 00201 pNode->GetName(), ix->GetCurObjName(), ix->GetCurFileName(), 00202 (ix->GetUseProxy()) ? "T" : "F", 00203 (ix->GetIgnoreAnim()) ? "T" : "F", 00204 (ix->GetUpdateMats()) ? "T" : "F"); 00205 m_buffer->append(workstring); 00206 } 00207 return true; 00208 } |
Member Data Documentation
|
Definition at line 179 of file xrefutil.cpp. |
The documentation for this class was generated from the following file:
Generated at Mon Nov 6 14:11:59 2000 by 1.2.3 written by Dimitri van Heesch, © 1997-2000