SoScXMLEvent(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

πŸ’… SoScXMLEvent β€” the Coin manual, bestie edition

okay so picture this: you're deep in Coin, you're deep in SCXML, and you need an SoEvent to actually travel through your state machine. That's literally this class. It's SoScXMLEvent(3) from the Coin library, and it's giving "tiny wrapper, huge main character energy" ✨


🌸 NAME 🌸

SoScXMLEvent β€” adds an SoEvent holder to the ScXMLEvent base. That's it. That's the whole job. And she does it flawlessly πŸ’–


✨ SYNOPSIS ✨

#include <Inventor/scxml/SoScXMLEvent.h>

Inherits ScXMLEvent. (Yes bestie, she's a nepo baby, but a talented one πŸ‘‘)

🫢 Public Member Functions

  • virtual SoType getTypeId (void) const β€” returns the type identification of an object derived from a class inheriting SoBase. This is used for runtime type checking and downward"casting. (iykyk what that stray quote is doing there, but we reproduce it faithfully πŸ’€)
  • virtual void setSoEvent (const SoEvent *soevent)
  • virtual const SoEvent * getSoEvent (void) const
  • virtual void setUpIdentifier (void)
  • virtual void copyContents (const ScXMLEvent *rhs)

Public Member Functions inherited from ScXMLEvent

  • virtual void setEventName (const SbName &name)
  • const SbName & getEventName (void) const
  • ScXMLEvent * clone (void) const
  • void setAssociation (const char *key, const char *value)
  • const char * getAssociation (const char *key) const
  • size_t getNumAssociations (void) const
  • size_t getAssociationKeys (SbList< const char * > &keys) const

Public Member Functions inherited from ScXMLObject

  • SbBool isOfType (SoType type) const β€” returns TRUE if the type of this object is either of the same type 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 Public Member Functions inherited from ScXMLEvent

  • static SoType getClassTypeId (void)
  • static void * createInstance (void)
  • static void initClass (void)
  • static void cleanClass (void)

Static Public Member Functions inherited from ScXMLObject

  • static SoType getClassTypeId (void) β€” this static method returns the SoType object 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. Lowkey the class's glow-up ritual πŸ§–
  • static void cleanClass (void) β€” does the opposite of initClass, deallocates any class specific resources and resets the class to an uninitialized state with respect to the Coin type system. The de-influencing arc 😭

πŸ¦‹ Additional Inherited Members

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 ScXMLEvent

  • SbName name

πŸ’– Detailed Description πŸ’–

Adds an SoEvent holder to the ScXMLEvent base.

This class is part of integrating the Coin types with the SCXML subsystem. SoScXMLEvent objects are ScXMLEvents that wraps/passes an SoEvent to the SCXML state machine. She's the lil courier πŸŽ€, the middlewoman, the go-between. no cap.

Since: Coin 3.0


πŸ”₯ Member Function Documentation πŸ”₯

SoType SoScXMLEvent::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

Reimplemented from ScXMLEvent.

void SoScXMLEvent::setSoEvent (const SoEvent * soevent) [virtual]

This function stores a pointer to the originator SoEvent that caused the given event, if any.

The event is duplicated when set, and can be deleted immediately by the caller. So bestie, you can hand her your event and then immediately let it go β€” she made her own copy, she's not borrowing yours, she's keeping it πŸ’…

See also: setUpIdentifiers

const SoEvent * SoScXMLEvent::getSoEvent (void ) const [virtual]

Returns the pointer to the stored SoEvent or NULL if no event has been stored yet. Empty-handed era = NULL. periodt.

See also: setSoEvent

void SoScXMLEvent::setUpIdentifier (void ) [virtual]

This method updates the ScXMLEvent event class and event identifier strings based on the set SoEvent object.

The identifiers will be cleared if no SoEvent object has been stored. So no event = no identifiers, she wipes the slate clean, iconic behavior honestly 🌈

See also: setSoEvent

void SoScXMLEvent::copyContents (const ScXMLEvent * rhs) [virtual]

Reimplemented from ScXMLEvent.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Coin from the source code. (So if the prose is a little stiff, blame the robot, not me πŸ™ˆ)


Version 4.0.10 🌸 Thu Jun 25 2026 00:00:00 β€” that's the whole page, bestie, SoScXMLEvent(3) and we're out. slay, stay typed, and go pass some events through your state machine πŸ’œπŸ¦‹

πŸ“¦ where this page comes from