SOPATHSWITCH(3iv)
πΈ NAME πΈ
SoPathSwitch(3IV) β group node that traverses only when traversed along a given path. π
π¦ INHERITS FROM π¦
SoBase > SoFieldContainer > SoNode > SoGroup > SoPathSwitch
β¨ SYNOPSIS β¨
okay bestie, here's the whole synopsis, no skips, no cap:
#include <Inventor/nodes/SoPathSwitch.h>
Fields from class SoPathSwitch:
SoSFPath path
Methods from class SoPathSwitch:
SoPathSwitch()
SoPathSwitch(int nChildren)
static SoType getClassTypeId()
Methods from class SoGroup:
void addChild(SoNode *child)
void insertChild(SoNode *child, int newChildIndex)
SoNode * getChild(int index) const
int findChild(const SoNode *child) const
int getNumChildren() const
void removeChild(int index)
void removeChild(SoNode *child)
void removeAllChildren()
void replaceChild(int index, SoNode *newChild)
void replaceChild(SoNode *oldChild, SoNode *newChild)
Methods from class SoNode:
void setOverride(SbBool state)
SbBool isOverride() const
SoNode * copy(SbBool copyConnections = FALSE) const
virtual SbBool affectsState() const
static SoNode * getByName(const SbName &name)
static int getByName(const SbName &name, SoNodeList &list)
Methods from class SoFieldContainer:
void setToDefaults()
SbBool hasDefaultValues() const
SbBool fieldsAreEqual(const SoFieldContainer *fc) const
void copyFieldValues(const SoFieldContainer *fc, SbBool
copyConnections = FALSE)
SbBool set(const char *fieldDataString)
void get(SbString &fieldDataString)
virtual int getFields(SoFieldList &resultList) const
virtual SoField * getField(const SbName &fieldName) const
SbBool getFieldName(const SoField *field, SbName &fieldName)
const
SbBool isNotifyEnabled() const
SbBool enableNotify(SbBool flag)
Methods from class SoBase:
void ref()
void unref() const
void unrefNoDelete() const
void touch()
virtual SoType getTypeId() const
SbBool isOfType(SoType type) const
virtual void setName(const SbName &name)
virtual SbName getName() const
π DESCRIPTION π
okay so bestie, SoPathSwitch is a group node that only traverses its children when the current traversal path matches the SoPath sitting in the path field. It's giving "only one instance of a subgraph gets affected" energy. β¨
The path field holds the path up to β but not including β the SoPathSwitch. The path does not have to go all the way back to the root; if it doesn't, then only the number of ancestors that are in the path get compared to decide whether the children should be traversed. π§
a NULL path means the children are never traversed. π periodt.
π FIELDS π
SoSFPath pathβ the path that must match the current traversal path. πΈ
π METHODS π
SoPathSwitch()β creates a path switch node with default settings. π«ΆSoPathSwitch(int nChildren)β constructor that takes approximate number of children. π§static SoType getClassTypeId()β returns type identifier for this class. π
<orange>π₯ ACTION BEHAVIOR π₯</orange>
SoGLRenderAction,SoCallbackAction,SoGetBoundingBoxAction,SoRayPickAction,SoHandleEventActionβ traverses the children if the paths match. π
π FILE FORMAT/DEFAULTS π
PathSwitch {
path NULL
}
β SEE ALSO β
SoPathSoSwitch
SoPathSwitch(3IV)() β that's the footer, bestie. No extra date or version stamp, just the manual name, and honestly? iconic. π β¨
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms