ScXMLStateMachine(3)
π ScXMLStateMachine π
okay bestie, welcome to the ScXMLStateMachine(3) page from the Coin manual β yes, section 3, we're in the library pages now, put your hair up, it's gonna be cute and it's gonna be thorough.
β¨ NAME β¨
ScXMLStateMachine β the manager for processing events and setting states in SCXML structures. she's the one running the whole state party π
πΈ SYNOPSIS πΈ
#include <Inventor/scxml/ScXMLStateMachine.h>
She inherits ScXMLEventTarget. π
She is inherited by SoScXMLStateMachine.
π«Ά Public Member Functions
virtual SoType getTypeId (void) constβ hands you the type identification of an object derived from a class inheritingSoBase. This is the whole reason runtime type checking and downward casting work, iykyk. (The original literally writes it with a stray quote: "downward"casting β we respect the source, no cap.)virtual void setName (const SbName &name)const SbName & getName (void) constvirtual void setDescription (ScXMLDocument *document)const ScXMLDocument * getDescription (void) constvirtual void setSessionId (const SbName &sessionid)const SbName & getSessionId (void) constvirtual void initialize (void)virtual SbBool isActive (void) constvirtual SbBool isFinished (void) constvirtual int getNumActiveStates (void) constvirtual const ScXMLElt * getActiveState (int idx) constvirtual void addDeleteCallback (ScXMLStateMachineDeleteCB *callback, void *userdata)virtual void removeDeleteCallback (ScXMLStateMachineDeleteCB *callback, void *userdata)virtual void addStateChangeCallback (ScXMLStateChangeCB *callback, void *userdata)virtual void removeStateChangeCallback (ScXMLStateChangeCB *callback, void *userdata)virtual void setVariable (const char *name, const char *value)virtual const char * getVariable (const char *name) constvirtual void setLogLevel (int loglevel)int getLogLevel (void) constvirtual void setEvaluator (ScXMLEvaluator *evaluator)ScXMLEvaluator * getEvaluator (void) constSbBool isModuleEnabled (const char *modulename) constint getNumEnabledModules (void) constconst char * getEnabledModuleName (int idx) constvoid setEnabledModulesList (const SbList< const char * > &modulenames)
π Public Member Functions inherited from ScXMLEventTarget
virtual void setEventTargetType (const char *targettype)
const char * getEventTargetType (void) const
virtual void setEventTargetName (const char *targetname)
const char * getEventTargetName (void) const
virtual const ScXMLEvent * getCurrentEvent (void) const
virtual void queueEvent (const ScXMLEvent *event)
virtual void queueEvent (const SbName &eventid)
virtual SbBool processEventQueue (void)
virtual SbBool sendExternalEvent (const ScXMLSendElt *sendelt)
virtual SbBool sendInternalEvent (const ScXMLEventElt *sendelt)
virtual void queueInternalEvent (const ScXMLEvent *event)
virtual void queueInternalEvent (const SbName &eventid)
π¦ Public Member Functions inherited from ScXMLObject
SbBool isOfType (SoType type) constβ returnsTRUEif the type of this object is either the same type as, or inherited from, type.
β Static Public Member Functions
static SoType getClassTypeId (void)static void * createInstance (void)static void initClass (void)static void cleanClass (void)static ScXMLStateMachine * getStateMachineForSessionId (const SbName &sessionid)
π Static Public Member Functions inherited from ScXMLEventTarget
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 Member Functions
virtual SbBool processOneEvent (const ScXMLEvent *event)
πΈ Protected Member Functions inherited from ScXMLEventTarget
virtual void setCurrentEvent (const ScXMLEvent *event)
virtual const ScXMLEvent * getNextEvent (void)
virtual const ScXMLEvent * getNextInternalEvent (void)
virtual const ScXMLEvent * getNextExternalEvent (void)
π Additional Inherited Members
Static Protected Member Functions inherited from ScXMLEventTarget
static void registerEventTarget (ScXMLEventTarget *target, const char *sessionid=NULL)
static void unregisterEventTarget (ScXMLEventTarget *target, const char *sessionid=NULL)
static ScXMLEventTarget * getEventTarget (const char *targettype, const char *targetname, const char *sessionid=NULL)
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)
Protected Attributes inherited from ScXMLEventTarget
char * targetname
char * targettype
const ScXMLEvent * currentevent
SbBool isprocessingqueue
π DESCRIPTION π
Manager for processing events and setting states in SCXML structures. That's the whole job description, and she does it flawlessly.
Since: Coin 3.0 π
π MEMBER FUNCTION DOCUMENTATION π
SoType ScXMLStateMachine::getTypeId (void ) const [virtual]
Returns the type identification of an object derived from a class inheriting SoBase. This is what powers runtime type checking and "downward" casting. bestie behaviour fr fr.
See also: SoBase::getTypeId() const
Implements ScXMLEventTarget.
Reimplemented in SoScXMLStateMachine.
void ScXMLStateMachine::setSessionId (const SbName & sessionidarg) [virtual]
This sets the session identifier for the state machine. Using this is optional, since state machines are already assigned unique session ids at construction-time. so like, you can, but she already has a name π
const SbName & ScXMLStateMachine::getSessionId (void ) const
Returns the session identifier string for the state machine.
void ScXMLStateMachine::initialize (void ) [virtual]
Fire up the engine. π₯ vroom vroom, we're live.
SbBool ScXMLStateMachine::isActive (void ) const [virtual]
Returns whether the state machine is active or not.
SbBool ScXMLStateMachine::isFinished (void ) const [virtual]
Returns whether the state machine has run to completion or not. she's done, she's finished, she ate.
int ScXMLStateMachine::getNumActiveStates (void ) const [virtual]
This method returns the current event during event processing, and NULL when not processing events.
Event processing is in special cases done with NULL as the current event, as for instance during state machine initialization.
Returns the number of active states in the state machine. This number should currently be 1, but in the future, when <parallel> is implemented, it can be greater.
not me relaying that verbatim-ish, but yeah β the doc block literally opens with the current-event thing before getting to the active-states thing. we keep every word, always. π
const ScXMLElt * ScXMLStateMachine::getActiveState (int idx) const [virtual]
Returns the *N*th active state.
void ScXMLStateMachine::addDeleteCallback (ScXMLStateMachineDeleteCB * cb, void * userdata) [virtual]
Registers a callback to be called when the state machine object is being deleted. π sad but necessary.
void ScXMLStateMachine::removeDeleteCallback (ScXMLStateMachineDeleteCB * cb, void * userdata) [virtual]
Unregisters a callback to be called when the state machine object is being deleted.
void ScXMLStateMachine::addStateChangeCallback (ScXMLStateChangeCB * callback, void * userdata) [virtual]
Registers a callback to be called when the state machine exits or enters a state. π¦ glow up notifications.
void ScXMLStateMachine::removeStateChangeCallback (ScXMLStateChangeCB * callback, void * userdata) [virtual]
Unregisters a callback to be called when the state machine exits or enters a state.
const char * ScXMLStateMachine::getVariable (const char * name) const [virtual]
Reimplemented in SoScXMLStateMachine.
SbBool ScXMLStateMachine::processOneEvent (const ScXMLEvent * event) [protected], [virtual]
Processes one event. This is an internal inner event-loop utility function.
Reimplemented from ScXMLEventTarget.
π AUTHOR π
Generated automatically by Doxygen for Coin from the source code. no cap, the robots wrote it, I just gave it a makeover.
kay bye bestie, mwah π«Άπ β this was Coin version 4.0.10, dated Thu Jun 25 2026 00:00:00, and you were reading ScXMLStateMachine(3). slay, go manage some states β¨ππ
π¦ 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