ScXMLDocument(3)
π NAME π
ScXMLDocument β bestie, this is the Coin manual page, section 3, and we're about to get so cozy with it. π
β¨ SYNOPSIS β¨
Okay so first things first, you gotta pull it in:
#include <Inventor/scxml/Document.h>
And guess what β it Inherits ScXMLObject. Family tree matters, iykyk. π¦
πΈ Public Member Functions πΈ
virtual SoType getTypeId (void) constβ hands you back the type identification of an object derived from a class inheritingSoBase. It's for runtime type checking and "downward" casting. Basically it's the "who even am I" function. πvoid setFilename (const char *filename)β sets the filename. That's it, that's the tweet. β¨const char * getFilename (void) constβ reads the filename back out. β¨virtual void setRoot (ScXMLScxmlElt *root)β sets the root. πScXMLScxmlElt * getRoot (void) constβ gets the root. πScXMLAbstractStateElt * getStateById (SbName id) constβ grabs a state by itsid. πScXMLDataElt * getDataById (SbName id) constβ grabs data by itsid. π
π«Ά Public Member Functions inherited from ScXMLObject π«Ά
SbBool isOfType (SoType type) constβ returnsTRUEif the type of this object is either of the same type or inherited from type. No cap, it's the vibe check for class lineage. π
β Static Public Member Functions β
static SoType getClassTypeId (void)β the class-level type id. πstatic void * createInstance (void)β makes you a fresh instance. β¨static void initClass (void)β sets the class up. β¨static void cleanClass (void)β tears the class back down. β¨static ScXMLDocument * readFile (const char *filename)β reads a document from a file. πstatic ScXMLDocument * readBuffer (const SbByteBuffer &buffer)β reads a document from a buffer. π§Ίstatic ScXMLDocument * readXMLData (cc_xml_doc *xmldoc)β reads a document from raw XML data. π
π Static Public Member Functions inherited from ScXMLObject π
static SoType getClassTypeId (void)β this static method returns theSoTypeobject associated with objects of this class. π«static void initClass (void)β sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. π οΈstatic void cleanClass (void)β does the opposite ofinitClass, deallocates any class specific resources and resets the class to an uninitialized state with respect to the Coin type system. π§Ή
π¦ Additional Inherited Members π¦
Static Protected Member Functions inherited from ScXMLObject
static void registerClassType (const char *xmlns, const char *classname, SoType type)β registers a class type. πstatic void registerInvokeClassType (const char *xmlns, const char *targettype, const char *source, SoType type)β registers an invoke class type. π
π Detailed Description π
The <ScXMLDocument class is a container class for a complete SCXML document. It's literally the whole-document holder, the main character of the file. π
π₯ Member Function Documentation π₯
SoType ScXMLDocument::getTypeId (void ) const [virtual]
Returns the type identification of an object derived from a class inheriting SoBase. This is used for runtime type checking and "downward" casting. π―
See also: SoBase::getTypeId() const
Implements: ScXMLObject.
πΈ Author πΈ
Generated automatically by Doxygen for Coin from the source code. (Not me hand-writing lore, bestie β the robots did it. π€β¨)
And that's a wrap, gorgeous! π
This was Version 4.0.10, dated Thu Jun 25 2026 00:00:00, straight from the ScXMLDocument(3) era of the Coin manual. Go forth and container-ize your SCXML documents, periodt. ππ¦π
π¦ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms