ScXMLStateElt(3)
π ScXMLStateElt ππ
okay so bestie, welcome to another page of the Coin manual β that's section 3, the library-functions zone, iykyk β and today's main character is ScXMLStateElt. She implements the <state> SCXML element. That's the whole vibe. π¦
β¨ NAME β¨
ScXMLStateElt β implements the <state> SCXML element. π
π SYNOPSIS π
#include <Inventor/scxml/ScXMLStateElt.h>
Inherits ScXMLAbstractStateElt. πΈ
π Public Member Functions π
virtual SoType getTypeId (void) constβ hands you the type identification for an object derived from a class that inheritsSoBase. It's what powers runtime type checking and"downward"casting. π―ScXMLStateElt (void)β the constructor.virtual ~ScXMLStateElt (void)β the destructor.virtual void setSrcAttribute (const char *src)β sets thesrcthing.const char * getSrcAttribute (void) constβ gets thesrcthing back out.virtual void setInitialAttribute (const char *initial)β sets theinitialthing.const char * getInitialAttribute (void) constβ gets theinitialthing back out.virtual SbBool handleXMLAttributes (void)β handles the XML attributes.virtual void copyContents (const ScXMLElt *rhs)β copies the contents.virtual const ScXMLElt * search (const char *attrname, const char *attrvalue) constβ searches for stuff. πvirtual void setOnEntry (ScXMLOnEntryElt *onentry)β sets the on-entry element.virtual ScXMLOnEntryElt * getOnEntry (void) constβ gets the on-entry element.virtual void setOnExit (ScXMLOnExitElt *onexit)β sets the on-exit element.virtual ScXMLOnExitElt * getOnExit (void) constβ gets the on-exit element.virtual int getNumTransitions (void) constβ how many transitions we got.virtual ScXMLTransitionElt * getTransition (int idx) constβ grab transition number idx.virtual void addTransition (ScXMLTransitionElt *transition)β add a transition.virtual void removeTransition (ScXMLTransitionElt *transition)β remove a transition.virtual void clearAllTransitions (void)β nuke every transition. πvirtual void setInitial (ScXMLInitialElt *initial)β set the<initial>element.virtual ScXMLInitialElt * getInitial (void) constβ get the<initial>element.virtual int getNumStates (void) constβ how many child states.virtual ScXMLStateElt * getState (int idx) constβ grab state number idx.virtual void addState (ScXMLStateElt *state)β add a child state.virtual void removeState (ScXMLStateElt *state)β remove a child state.virtual void clearAllStates (void)β bye to every child state.virtual int getNumParallels (void) constβ how many parallels.virtual ScXMLParallelElt * getParallel (int idx) constβ grab parallel number idx.virtual void addParallel (ScXMLParallelElt *state)β add a parallel.virtual void removeParallel (ScXMLParallelElt *state)β remove a parallel.virtual void clearAllParallels (void)β clear every parallel.virtual int getNumFinals (void) constβ how many finals.virtual ScXMLFinalElt * getFinal (int idx) constβ grab final number idx.virtual void addFinal (ScXMLFinalElt *state)β add a final.virtual void removeFinal (ScXMLFinalElt *state)β remove a final.virtual void clearAllFinals (void)β clear every final.virtual int getNumHistories (void) constβ how many histories.virtual ScXMLHistoryElt * getHistory (int idx) constβ grab history number idx.virtual void addHistory (ScXMLHistoryElt *history)β add a history.virtual void removeHistory (ScXMLHistoryElt *history)β remove a history.virtual void clearAllHistories (void)β clear every history.virtual int getNumAnchors (void) constβ how many anchors.virtual ScXMLAnchorElt * getAnchor (int idx) constβ grab anchor number idx.virtual void addAnchor (ScXMLAnchorElt *anchor)β add an anchor.virtual void removeAnchor (ScXMLAnchorElt *anchor)β remove an anchor.virtual void clearAllAnchors (void)β clear every anchor.virtual void setDataModel (ScXMLDataModelElt *datamodel)β set the data model.virtual ScXMLDataModelElt * getDataModel (void) constβ get the data model.SbBool isAtomicState (void) constβ is she an atomic state? π
π« Public Member Functions inherited from ScXMLAbstractStateElt π«
virtual void setIdAttribute (const char *id)β sets the id attribute.const char * getIdAttribute (void) constβ returns the id attribute.
π« Public Member Functions inherited from ScXMLElt π«
void setXMLAttribute (const char *attribute, const char *value)β sets an XML attribute.const char * getXMLAttribute (const char *attribute) constβ gets an XML attribute.ScXMLElt * clone (void) constβ clones the element.virtual void setContainer (ScXMLElt *container)β sets the container.ScXMLElt * getContainer (void) constβ gets the container.SbBool isContainedIn (const ScXMLElt *object) constβ checks containment.
π« Public Member Functions inherited from ScXMLObject π«
SbBool isOfType (SoType type) constβ returnsTRUEif the type of this object is either of the same type as type or inherited from type. β
π Static Public Member Functions π
static ScXMLEltReader * getElementReader (void)β gets the element reader.static SoType getClassTypeId (void)β gets the class type id.static void * createInstance (void)β creates an instance.static void initClass (void)β initializes the class.static void cleanClass (void)β cleans up the class.
π Static Public Member Functions inherited from ScXMLAbstractStateElt π
static SoType getClassTypeId (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 π
char * srcchar * initial
π Protected Attributes inherited from ScXMLAbstractStateElt π
char * id
π§ 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 <state> SCXML element. no notes. π
Since β Coin 3.0. β
πΌ Constructor & Destructor Documentation πΌ
ScXMLStateElt::ScXMLStateElt (void )
Constructor. she's born. π
ScXMLStateElt::~ScXMLStateElt (void ) [virtual]
Destructor. she's gone. π
π₯ Member Function Documentation π₯
SoType ScXMLStateElt::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 ScXMLAbstractStateElt.
void ScXMLStateElt::setSrcAttribute (const char * srcstr) [virtual]
Sets the XML src attribute for the SCXML <state> element. To get the attribute value interpreted and taken action upon, you will also need to [FIXME]
not me leaving a [FIXME] in the actual docs π the original really does trail off like that, bestie. that's not me being lazy, that's canon.
const char * ScXMLStateElt::getSrcAttribute (void ) const [inline]
Returns the XML src attribute for this SCXML <state> element.
void ScXMLStateElt::setInitialAttribute (const char * initialstr) [virtual]
Sets the XML initial attribute for the SCXML <state> element. If this value is set, the state should not contain an <initial> element, and vice versa.
When set, this value must be the value of a descendant an identifier for a child state.
See also ScXMLInitialElt
const char * ScXMLStateElt::getInitialAttribute (void ) const [inline]
Returns the XML initial attribute for the SCXML <state> element.
SbBool ScXMLStateElt::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 ScXMLAbstractStateElt.
void ScXMLStateElt::copyContents (const ScXMLElt * rhs) [virtual]
Reimplemented from ScXMLAbstractStateElt.
const ScXMLElt * ScXMLStateElt::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 ScXMLAbstractStateElt.
SbBool ScXMLStateElt::isAtomicState (void ) const
Returns TRUE if this is an "atomic state", which means that it has no sub-states but contains executable content. π
π«Ά Author π«Ά
Generated automatically by Doxygen for Coin from the source code. (not a human, not a bestie, just Doxygen doing her little thing π)
okay and that's the whole page, bestie!! π this was Coin 4.0.10, dated Thu Jun 25 2026 00:00:00, and yes the footer literally says ScXMLStateElt(3) again because manpages love repeating themselves. slay, go write some state machines, ily π¦β¨π
π¦ 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