ScXMLElseIfElt(3)
ScXMLElseIfElt π
okay bestie, welcome to ScXMLElseIfElt, part of the Coin family, and yes it's section 3 of the manual, we love a library function moment β¨
ScXMLElseIfElt β it implements the <elseif> SCXML element. that's the whole vibe. periodt.
β¨ NAME β¨
ScXMLElseIfElt β implements the <elseif> SCXML element π
πΈ SYNOPSIS πΈ
#include <Inventor/scxml/ScXMLElseIfElt.h>
Inherits ScXMLExecutableElt.
π Public Member Functions
virtual SoType getTypeId (void) constβ returns the type identification of an object derived from a class inheritingSoBase. it's literally the thing used for runtime type checking and downward"casting πvirtual void setCondAttribute (const char *cond)β sets thecondattribute, as one does πvirtual const char * getCondAttribute (void) constβ hands you back thecondattribute, no capvirtual SbBool handleXMLAttributes (void)β makes the object deal with its XML attributes and report whether everything was fine or if a read error should be produced π¦virtual void copyContents (const ScXMLElt *rhs)β copies contents from rhs, slayvirtual const ScXMLElt * search (const char *attrname, const char *attrvalue) constβ searches the SCXML structure for an element with the given attribute value for the given attribute π
Public Member Functions inherited from ScXMLExecutableElt
virtual void execute (ScXMLStateMachine *statemachine) constβ runs the thing on the given state machine
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β it's the cond, bestie π
π¦ 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 <elseif> SCXML element. that's the job. she's employed. πΌ
the <elseif> element can have the attribute "cond" and no children. the <elseif> element is a separator element for the enclosing <if> element. it can only be used inside <if> elements. so don't be out here trying to use it anywhere else, fr fr π
Since
Coin 3.1 β¨
π Member Function Documentation π
SoType ScXMLElseIfElt::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. iconic behaviour honestly π
See also
SoBase::getTypeId() const
Implements ScXMLExecutableElt.
SbBool ScXMLElseIfElt::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. no in-between, we don't do ambiguity here π
this base class implementation does nothing and just returns TRUE. she's chill like that π
Reimplemented from ScXMLElt.
void ScXMLElseIfElt::copyContents (const ScXMLElt * rhs) [virtual]
Reimplemented from ScXMLExecutableElt.
const ScXMLElt * ScXMLElseIfElt::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. heads up, bestie π’
Reimplemented from ScXMLElt.
π Author π
generated automatically by Doxygen for Coin from the source code. yes, a robot wrote this and honestly she ate π€π
and that's the whole page, bestie!! no notes, 10/10, would read again πΈ
okay so the boring-but-important bits: this is Version 4.0.10, stamped Thu Jun 25 2026 00:00:00, and it's page ScXMLElseIfElt(3) of the Coin manual. go forth and conditionally else-if, my love πππ¦
π¦ 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