ScXMLIfElt(3)
π NAME π
ScXMLIfElt β bestie, this is the class that implements the <if> SCXML element. That's it, that's the whole vibe.
Oh and btw, this is page ScXMLIfElt(3) from the Coin manual, so you know exactly where you are. π
β¨ SYNOPSIS β¨
#include <Inventor/scxml/ScXMLIfElt.h>
It inherits from ScXMLExecutableElt β so everything that class can do, this one can do too. Inheritance slay. π
π¦ Public Member Functions π¦
virtual SoType getTypeId (void) constβ Returns the type identification of an object derived from a class inheritingSoBase. It's used for runtime type checking and "downward" casting.virtual void setCondAttribute (const char *cond)β sets thecondattribute, no notes.virtual const char * getCondAttribute (void) constβ reads thecondattribute back out.virtual SbBool handleXMLAttributes (void)virtual void copyContents (const ScXMLElt *rhs)virtual const ScXMLElt * search (const char *attrname, const char *attrvalue) constvirtual int getNumElseIfs (void) constβ how manyelseifchildren we got.virtual ScXMLElseIfElt * getElseIf (int idx) constβ grab theelseifat indexidx.virtual void addElseIf (ScXMLElseIfElt *elseif)β add anelseifchild.virtual void removeElseIf (ScXMLElseIfElt *elseif)β remove anelseifchild.virtual void clearAllElseIfs (void)β yeet everyelseif.virtual void setElse (ScXMLElseElt *elseelt)β set theelseelement.virtual ScXMLElseElt * getElse (void) constβ get theelseelement.virtual int getNumExecutables (const ScXMLExecutableElt *conditional) constβ count executables for a givenconditional.virtual ScXMLExecutableElt * getExecutable (const ScXMLExecutableElt *conditional, int idx) constβ grab the executable atidxfor thatconditional.virtual void addExecutable (ScXMLExecutableElt *conditional, ScXMLExecutableElt *executable)β add an executable under aconditional.virtual void removeExecutable (ScXMLExecutableElt *conditional, ScXMLExecutableElt *executable)β remove an executable under aconditional.virtual void clearAllExecutables (ScXMLExecutableElt *conditional)β clear every executable for aconditional.virtual void execute (ScXMLStateMachine *statemachine) constβ run it, fr fr.
πΈ 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 from type.
β 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 ScXMLExecutableElt π
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 * condβ the condition, sitting right there in protected-land.
π¦ 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 π
It implements the <if> SCXML element. That's the whole thing, bestie β it's giving "does one job and does it flawlessly." π
π Member Function Documentation π
SoType ScXMLIfElt::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 ScXMLExecutableElt.
SbBool ScXMLIfElt::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 ScXMLIfElt::copyContents (const ScXMLElt * rhs) [virtual]
Reimplemented from ScXMLExecutableElt.
const ScXMLElt * ScXMLIfElt::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.
Heads up bestie: this function needs to be reimplemented to traverse child elements. Not me pointing at the base class like π
Reimplemented from ScXMLElt.
void ScXMLIfElt::execute (ScXMLStateMachine * statemachine) const [virtual]
Reimplemented from ScXMLExecutableElt.
π«Ά Author π«Ά
Generated automatically by Doxygen for Coin from the source code. (Not a human, just a very diligent little robot. Iconic behaviour honestly.) π€β¨
okay so that's the whole page!! no cap, every single option, signature, attribute and inherited member made it in. π
Version 4.0.10 β dated Thu Jun 25 2026 00:00:00. bye bestie, go compile something beautiful π¦πΈπ
π¦ 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