ScXMLScxmlElt(3)
β¨ ScXMLScxmlElt β¨
okay bestie, welcome to the Coin manual page for ScXMLScxmlElt, straight out of the Coin library (yes that's the manual name, we're in section 3, we move) π
π NAME π
ScXMLScxmlElt β bestie, it implements the <scxml> SCXML element. that's the whole job. that's her whole thing. π
πΈ SYNOPSIS πΈ
#include <Inventor/scxml/ScXMLScxmlElt.h>
Inherits ScXMLElt.
π Public Member Functions π
virtual SoType getTypeId (void) constβ Returns the type identification of an object derived from a class inheritingSoBase. This is used for runtime type checking and downward"casting.void setIsReferenced (SbBool referenced)β sets whether this thing is referenced, fr.SbBool isReferenced (void) constβ asks her: are you referenced? yes or no.virtual void setInitialAttribute (const char *initial)β sets theinitialattribute.const char * getInitialAttribute (void) constβ hands you back theinitialattribute.virtual void setNameAttribute (const char *name)β sets thenameattribute.const char * getNameAttribute (void) constβ gives you thenameattribute.virtual void setXMLNSAttribute (const char *xmlns)β sets thexmlnsattribute.const char * getXMLNSAttribute (void) constβ returns thexmlnsattribute.virtual void setVersionAttribute (const char *version)β sets theversionattribute.const char * getVersionAttribute (void) constβ returns theversionattribute.virtual void setProfileAttribute (const char *profile)β sets theprofileattribute.const char * getProfileAttribute (void) constβ returns theprofileattribute.virtual void setExModeAttribute (const char *exmode)β sets theexmodeattribute.const char * getExModeAttribute (void) constβ returns theexmodeattribute.virtual SbBool handleXMLAttributes (void)β the callback the file reader hits once it's shoved all the XML attributes onto the object.virtual void copyContents (const ScXMLElt *rhs)β copies the contents over fromrhs.virtual const ScXMLElt * search (const char *attrname, const char *attrvalue) constβ hunts through the SCXML structure for an element with the given attribute value for the given attribute.virtual void setInitial (ScXMLInitialElt *initial)β sets the initial element.virtual ScXMLInitialElt * getInitial (void) constβ gets the initial element.virtual int getNumStates (void) constβ how many states we got.virtual ScXMLStateElt * getState (int idx) constβ grab state numberidx.virtual void addState (ScXMLStateElt *state)β add a state, periodt.virtual void removeState (ScXMLStateElt *state)β remove a state.virtual void clearAllStates (void)β wipe every state, no survivors.virtual int getNumParallels (void) constβ how many parallels.virtual ScXMLParallelElt * getParallel (int idx) constβ grab parallel numberidx.virtual void addParallel (ScXMLParallelElt *state)β add a parallel.virtual void removeParallel (ScXMLParallelElt *state)β remove a parallel.virtual void clearAllParallels (void)β bye bye parallels.virtual int getNumFinals (void) constβ how many finals.virtual ScXMLFinalElt * getFinal (int idx) constβ grab final numberidx.virtual void addFinal (ScXMLFinalElt *state)β add a final.virtual void removeFinal (ScXMLFinalElt *state)β remove a final.virtual void clearAllFinals (void)β all the finals, gone.virtual void setDataModel (ScXMLDataModelElt *datamodel)β set the data model.virtual ScXMLDataModelElt * getDataModel (void) constβ get the data model.virtual int getNumScripts (void) constβ how many scripts.virtual ScXMLScriptElt * getScript (int idx) constβ grab script numberidx.virtual void addScript (ScXMLScriptElt *state)β add a script.virtual void removeScript (ScXMLScriptElt *state)β remove a script.virtual void clearAllScripts (void)β scripts? deleted.virtual void execute (ScXMLStateMachine *statemachine) constβ run it againststatemachine.
π¦ Public Member Functions inherited from ScXMLElt π¦
void setXMLAttribute (const char *attribute, const char *value)const char * getXMLAttribute (const char *attribute) constScXMLElt * clone (void) constvirtual void setContainer (ScXMLElt *container)ScXMLElt * getContainer (void) constSbBool isContainedIn (const ScXMLElt *object) const
π§ 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 fromtype.
π Static Public Member Functions π
static ScXMLEltReader * getElementReader (void)static SoType getClassTypeId (void)static void * createInstance (void)static void initClass (void)static void cleanClass (void)
π Static Public Member Functions inherited from ScXMLElt π
static SoType getClassTypeId (void)static void initClass (void)static void cleanClass (void)
β 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.
π Protected Attributes π
SbBool referencedchar * initialchar * namechar * xmlnschar * versionchar * profilechar * exmode
π«Ά Additional Inherited Members π«Ά
Static Protected Member Functions inherited from ScXMLElt
static void registerClassType (const char *xmlns, const char *classname, SoType type)static void registerInvokeClassType (const char *xmlns, const char *targettype, const char *source, SoType type)
Static Protected Member Functions inherited from ScXMLObject
static void registerClassType (const char *xmlns, const char *classname, SoType type)static void registerInvokeClassType (const char *xmlns, const char *targettype, const char *source, SoType type)
π Detailed Description π
implements the <scxml> SCXML element.
An object of this type represents the root <scxml> SCXML element in a document. It has the following attributes:
initialnamexmlnsversion[REQUIRED] must contain"1.0"profileexmodeβ"lax"or"strict"
The <scxml> element can have child elements of the following types:
initialβ zero or one element of this type, depending on whether the"initial"attribute is set or not (one of them must be set, and only one), but only when the<scxml>element is the root element and not an external reference from another document.stateβ zero or more elementsparallelβ zero or more elementsfinalβ zero or more elementsdatamodelβ zero or one if the data model module is enabled
Since
Coin 3.0
π Member Function Documentation π
SoType ScXMLScxmlElt::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 ScXMLElt.
SbBool ScXMLScxmlElt::handleXMLAttributes (void ) [virtual]
This method is called when the file reader has set all the XML attributes on the object, and wants the object to handle them and report if the values were OK or if a read error should be produced.
Returns
TRUE if the attributes are OK, and FALSE on error.
This base class implementation does nothing and just returns TRUE.
Reimplemented from ScXMLElt.
void ScXMLScxmlElt::copyContents (const ScXMLElt * rhs) [virtual]
Reimplemented from ScXMLElt.
const ScXMLElt * ScXMLScxmlElt::search (const char * attrname, const char * attrvalue) const [virtual]
This method searches the SCXML structure for an element with the given attribute value for the given attribute.
Returns NULL if nothing was found.
This function needs to be reimplemented to traverse child elements.
Reimplemented from ScXMLElt.
π Author π
Generated automatically by Doxygen for Coin from the source code.
okay that's the whole page, no skips, no crumbs left behind π this was Version 4.0.10, dated Thu Jun 25 2026 00:00:00, and you can find her filed under ScXMLScxmlElt(3) in the Coin manual. slay, go build a state machine bestie π¦β¨
π¦ 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