SoVRMLParent(3)
โจ NAME โจ
okay so bestie, welcome to the glow-up era of SoVRMLParent(3) โ your new fave superclass, no cap. ๐ฆ
SoVRMLParent โ the superclass for all the VRML grouping nodes. like, every single one of them. it's giving mother of the group chat ๐
she's the blueprint, the origin story, the main character energy that every other grouping node inherited from. if VRML grouping nodes were a friend group, SoVRMLParent is the one who organized the whole thing and made the group chat. ๐
no options, no args, no drama here yet โ this is literally just the intro, bestie. more parts coming, so don't go anywhere. ๐
โจ SYNOPSIS โจ
okay bestie, here's the vibe, no notes:
#include <Inventor/VRMLnodes/SoVRMLParent.h>
Inherits SoGroup.
Inherited by SoVRMLAnchor, SoVRMLBillboard, and SoVRMLGroup.
๐ Public Member Functions
the whole roster, in order, do not lose a single one:
virtual SoType getTypeId (void) constvirtual SbBool affectsState (void) constvirtual void addChild (SoNode *child)virtual void insertChild (SoNode *child, int idx)virtual SoNode * getChild (int idx) constvirtual int findChild (const SoNode *child) constvirtual int getNumChildren (void) constvirtual void removeChild (int idx)virtual void removeChild (SoNode *child)virtual void removeAllChildren (void)virtual void replaceChild (int idx, SoNode *child)virtual void replaceChild (SoNode *old, SoNode *child)virtual SoChildList * getChildren (void) constvirtual void doAction (SoAction *action)virtual void search (SoSearchAction *action)virtual void write (SoWriteAction *action)virtual void getPrimitiveCount (SoGetPrimitiveCountAction *action)
๐ Public Member Functions inherited from SoGroup
the inherited girlies from SoGroup:
SoGroup (void)SoGroup (int nchildren)virtual void GLRender (SoGLRenderAction *action)virtual void callback (SoCallbackAction *action)virtual void getBoundingBox (SoGetBoundingBoxAction *action)virtual void getMatrix (SoGetMatrixAction *action)virtual void handleEvent (SoHandleEventAction *action)virtual void pick (SoPickAction *action)virtual void audioRender (SoAudioRenderAction *action)virtual void addWriteReference (SoOutput *out, SbBool isfromfield=FALSE)
๐ฆ Public Member Functions inherited from SoNode
void setOverride (const SbBool state)SbBool isOverride (void) constvoid setNodeType (const NodeType type)NodeType getNodeType (void) constvirtual SoNode * copy (SbBool copyconnections=FALSE) constvirtual void GLRenderBelowPath (SoGLRenderAction *action)virtual void GLRenderInPath (SoGLRenderAction *action)virtual void GLRenderOffPath (SoGLRenderAction *action)virtual void rayPick (SoRayPickAction *action)virtual void grabEventsSetup (void)virtual void grabEventsCleanup (void)virtual void startNotify (void)SbUniqueId getNodeId (void) constvirtual void writeInstance (SoOutput *out)virtual SoNode * addToCopyDict (void) constvirtual SoFieldContainer * copyThroughConnection (void) const
๐ธ Public Member Functions inherited from SoFieldContainer
void setToDefaults (void)SbBool hasDefaultValues (void) constSbBool fieldsAreEqual (const SoFieldContainer *container) constvoid copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=FALSE)SbBool set (const char *const fielddata)void get (SbString &fielddata)virtual int getFields (SoFieldList &l) constvirtual int getAllFields (SoFieldList &l) constvirtual SoField * getField (const SbName &name) constvirtual SoField * getEventIn (const SbName &name) constvirtual SoField * getEventOut (const SbName &name) constSbBool getFieldName (const SoField *const field, SbName &name) constSbBool enableNotify (const SbBool flag)SbBool isNotifyEnabled (void) constSbBool set (const char *fielddata, SoInput *input)void get (SbString &fielddata, SoOutput *out)virtual SbBool validateNewFieldValue (SoField *field, void *newval)SbBool getIsBuiltIn (void) constvirtual void getFieldsMemorySize (size_t &managed, size_t &unmanaged) constvoid setUserData (void *userdata) constvoid * getUserData (void) const
๐ Public Member Functions inherited from SoBase
void ref (void) constvoid unref (void) constvoid unrefNoDelete (void) constint32_t getRefCount (void) constvoid touch (void)SbBool isOfType (SoType type) constโ ReturnsTRUEif the type of this object is either of the same type or inherited from type.virtual SbName getName (void) constvirtual void setName (const SbName &newname)void addAuditor (void *const auditor, const SoNotRec::Type type)void removeAuditor (void *const auditor, const SoNotRec::Type type)const SoAuditorList & getAuditors (void) constSbBool shouldWrite (void)void assertAlive (void) const
โญ Static Public Member Functions
static SoType getClassTypeId (void)static void initClass (void)static void updateChildList (const SoNode *const *nodes, const int numnodes, SoChildList &cl)static void updateChildList (SoNode *nodewithsfnode, SoChildList &cl)
๐ Static Public Member Functions inherited from SoGroup
static SoType getClassTypeId (void)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 Public Member Functions inherited from SoNode
static uint32_t getCompatibilityTypes (const SoType &nodetype)static SoType getClassTypeId (void)static SoNode * getByName (const SbName &name)static int getByName (const SbName &name, SoNodeList &l)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 initClasses (void)static SbUniqueId getNextNodeId (void)static int getActionMethodIndex (const SoType type)static void getBoundingBoxS (SoAction *action, SoNode *node)static void GLRenderS (SoAction *action, SoNode *node)static void callbackS (SoAction *action, SoNode *node)static void getMatrixS (SoAction *action, SoNode *node)static void handleEventS (SoAction *action, SoNode *node)static void pickS (SoAction *action, SoNode *node)static void rayPickS (SoAction *action, SoNode *node)static void searchS (SoAction *action, SoNode *node)static void writeS (SoAction *action, SoNode *node)static void audioRenderS (SoAction *action, SoNode *node)static void getPrimitiveCountS (SoAction *action, SoNode *node)
๐ซถ Static Public Member Functions inherited from SoFieldContainer
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 SoType getClassTypeId (void)โ This static method returns theSoTypeobject associated with objects of this class.static void cleanupClass (void)static void initCopyDict (void)static void addCopy (const SoFieldContainer *orig, const SoFieldContainer *copy)static SoFieldContainer * checkCopy (const SoFieldContainer *orig)static SoFieldContainer * findCopy (const SoFieldContainer *orig, const SbBool copyconnections)static void copyDone (void)
๐ Static Public Member Functions inherited from SoBase
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 SoType getClassTypeId (void)โ This static method returns theSoTypeobject associated with objects of this class.static void addName (SoBase *const base, const char *const name)static void removeName (SoBase *const base, const char *const name)static void incrementCurrentWriteCounter (void)static void decrementCurrentWriteCounter (void)static SoBase * getNamedBase (const SbName &name, SoType type)static int getNamedBases (const SbName &name, SoBaseList &baselist, SoType type)static SbBool read (SoInput *input, SoBase *&base, SoType expectedtype)static void setInstancePrefix (const SbString &c)static void setTraceRefs (SbBool trace)static SbBool getTraceRefs (void)static SbBool connectRoute (SoInput *input, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname)static SbBool readRoute (SoInput *input)
๐ Public Attributes
SoMFNode children
๐ง Protected Member Functions
virtual const SoFieldData * getFieldData (void) constSoVRMLParent (void)SoVRMLParent (int approxchildren)virtual ~SoVRMLParent ()virtual void notify (SoNotList *list)virtual SbBool readInstance (SoInput *in, unsigned short flags)virtual void copyContents (const SoFieldContainer *from, SbBool copyConn)
๐ Protected Member Functions inherited from SoGroup
virtual ~SoGroup ()virtual SbBool readChildren (SoInput *in)virtual SoNotRec createNotRec (void)void setOperation (const SoNotRec::OperationType opType=SoNotRec::UNSPECIFIED, const SoNode *cc=NULL, const SoNode *pc=NULL, const int ci=-1)
๐ธ Protected Member Functions inherited from SoNode
SoNode (void)virtual ~SoNode ()
๐ฆ Protected Member Functions inherited from SoFieldContainer
SoFieldContainer (void)virtual ~SoFieldContainer ()
๐ Protected Member Functions inherited from SoBase
SoBase (void)virtual ~SoBase ()virtual void destroy (void)SbBool hasMultipleWriteRefs (void) constSbBool writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) constvoid writeFooter (SoOutput *out) constvirtual const char * getFileFormatName (void) const
๐ Static Protected Member Functions
static const SoFieldData ** getFieldDataPtr (void)
โญ Static Protected Member Functions inherited from SoGroup
static const SoFieldData ** getFieldDataPtr (void)
๐ Static Protected Member Functions inherited from SoNode
static const SoFieldData ** getFieldDataPtr (void)static void setNextActionMethodIndex (int index)static int getNextActionMethodIndex (void)static void incNextActionMethodIndex (void)static void setCompatibilityTypes (const SoType &nodetype, const uint32_t bitmask)
๐ Static Protected Member Functions inherited from SoBase
static uint32_t getCurrentWriteCounter (void)static void staticDataLock (void)static void staticDataUnlock (void)
๐ Protected Attributes
SoMFNode addChildrenSoMFNode removeChildren
๐ Protected Attributes inherited from SoGroup
SoChildList * children
๐ฆ Protected Attributes inherited from SoNode
SbUniqueId uniqueId
๐ธ Protected Attributes inherited from SoFieldContainer
SbBool isBuiltIn
โจ Additional Inherited Members
๐ Public Types inherited from SoNode
the whole enum, verbatim, do not touch a single number:
enum NodeType {
INVENTOR = 0x0000,
VRML1 = 0x0001,
VRML2 = 0x0002,
INVENTOR_1 = 0x0004,
INVENTOR_2_0 = 0x0008,
INVENTOR_2_1 = 0x0010,
INVENTOR_2_5 = 0x0020,
INVENTOR_2_6 = 0x0040,
COIN_1_0 = 0x0080,
COIN_2_0 = 0x0100,
EXTENSION = 0x0200,
COIN_2_2 = 0x0400,
COIN_2_3 = 0x0800,
COIN_2_4 = 0x1000,
INVENTOR_5_0 = 0x2000,
COIN_2_5 = 0x4000,
COIN_3_0 = 0x8000,
INVENTOR_6_0 = 0x10000,
COIN_4_0 = 0x20000
}
๐ Protected Types inherited from SoBase
enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 }
๐ Static Protected Attributes inherited from SoNode
static SbUniqueId nextUniqueId = 1
static int nextActionMethodIndex = 0
๐ซ Detailed Description ๐ซ
okay so bestie, listen: SoVRMLParent is the superclass for all VRML grouping nodes. that's it, that's the whole vibe โ it's the mother of group nodes, the blueprint, the blueprint-est blueprint. everything that groups stuff together in VRML land is lowkey descended from this one. ๐
๐ Constructor & Destructor Documentation ๐
๐ SoVRMLParent::SoVRMLParent (void ) [protected]
Constructor. yes babes, it makes one. that's the whole job. โจ
๐ SoVRMLParent::SoVRMLParent (int numchildren) [protected]
Destructor. numchildren is the expected number of children.
not me side-eyeing the fact that the constructor's description says "Destructor" โ i'm just the messenger, bestie, i copy exactly what the original says. ๐
๐ SoVRMLParent::~SoVRMLParent () [protected], [virtual]
Destructor. it destroys. it's virtual. it's giving closure, literally. ๐
๐ธ Member Function Documentation ๐ธ
๐ SoType SoVRMLParent::getClassTypeId (void ) [static]
this static method returns the SoType object associated with objects of this class. it's the class-wide ID badge, fr fr. โจ
๐ SoType SoVRMLParent::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. iykyk โ it's how the code figures out what something actually is at runtime. ๐ฆ
Reimplemented from SoGroup.
Reimplemented in SoVRMLAnchor, SoVRMLBillboard, SoVRMLCollision, SoVRMLGroup, and SoVRMLTransform.
๐ const SoFieldData ** SoVRMLParent::getFieldDataPtr (void ) [static], [protected]
this API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
returns the SoFieldData class which holds information about fields in this node.
๐ const SoFieldData * SoVRMLParent::getFieldData (void ) const [protected], [virtual]
returns a pointer to the class-wide field data storage object for this instance. if no fields are present, returns NULL. periodt. ๐
Reimplemented from SoGroup.
Reimplemented in SoVRMLAnchor, SoVRMLBillboard, SoVRMLCollision, SoVRMLGroup, and SoVRMLTransform.
๐ void SoVRMLParent::initClass (void ) [static]
sets the class up. no notes, no description beyond that in the original, so we move. ๐ซถ
๐ SbBool SoVRMLParent::affectsState (void ) const [virtual]
returns TRUE if the node could have any effect on the state during traversal. ๐
if it returns FALSE, no data in the traversal state will change from the pre-traversal state to the post-traversal state. the SoSeparator node will for instance return FALSE, as it pushes and pops the state before and after traversal of its children. all SoShape nodes will also return FALSE, as just pushing out geometry data to the rendering engine won't affect the actual rendering state.
the default method returns TRUE, on a "better safe than sorry" philosophy. honestly? relatable. ๐ซก
Reimplemented from SoNode.
๐ void SoVRMLParent::addChild (SoNode * node) [virtual]
append a child node to the list of children nodes this group node is managing. adding to the family, bestie. ๐ผ
please note that this method is not virtual in the original SGI Inventor API.
Reimplemented from SoGroup.
๐ void SoVRMLParent::insertChild (SoNode * child, int newchildindex) [virtual]
insert a child node at position newchildindex.
newchildindex must be <= this->getNumChildren()
please note that this method is not virtual in the original SGI Inventor API.
Reimplemented from SoGroup.
๐ SoNode * SoVRMLParent::getChild (int index) const [virtual]
returns pointer to child node at index. just hand over the kid at that spot. ๐
please note that this method is not virtual in the original SGI Inventor API.
Reimplemented from SoGroup.
๐ int SoVRMLParent::findChild (const SoNode * node) const [virtual]
returns index in our list of children for child node, or -1 if node is not a child of this group node. it's the "where's my kid" of functions. ๐
please note that this method is not virtual in the original SGI Inventor API.
Reimplemented from SoGroup.
๐ int SoVRMLParent::getNumChildren (void ) const [virtual]
returns number of child nodes managed by this group. headcount check, slay. ๐งฎ
please note that this method is not virtual in the original SGI Inventor API.
Reimplemented from SoGroup.
๐ void SoVRMLParent::removeChild (int childindex) [virtual]
remove node at childindex in our list of children. bye bestie, no hard feelings. ๐
please note that this method is not virtual in the original SGI Inventor API.
Reimplemented from SoGroup.
๐ void SoVRMLParent::removeChild (SoNode * child) [virtual]
remove child from the set of children managed by this group node. will decrease the reference count of child by 1.
this is a convenience method. it will simply call findChild() with child as argument, and then call removeChild(int) if the child is found. โจ
please note that this method is not virtual in the original SGI Inventor API.
Reimplemented from SoGroup.
๐ void SoVRMLParent::removeAllChildren (void ) [virtual]
do not manage the children anymore. will dereference all children by 1 as they are removed. it's giving "everybody out of the pool." ๐
please note that this method is not virtual in the original SGI Inventor API.
Reimplemented from SoGroup.
๐ void SoVRMLParent::replaceChild (int index, SoNode * newchild) [virtual]
replace child at index with newChild.
dereferences the child previously at index, and increases the reference count of newChild by 1.
index must be < this->getNumChildren()
please note that this method is not virtual in the original SGI Inventor API.
Reimplemented from SoGroup.
๐ void SoVRMLParent::replaceChild (SoNode * oldchild, SoNode * newchild) [virtual]
replace oldchild with newchild. the glow-up swap. ๐ฆ
dereferences oldchild by 1, and increases the reference count of newchild by 1.
this is a convenience method. it will simply call findChild() with oldchild as argument, and call replaceChild(int, SoNode*) if the child is found.
please note that this method is not virtual in the original SGI Inventor API.
Reimplemented from SoGroup.
๐ SoChildList * SoVRMLParent::getChildren (void ) const [virtual]
returns list of children. the whole squad, in one list. ๐ฏ
Reimplemented from SoGroup.
๐ void SoVRMLParent::doAction (SoAction * action) [virtual]
this function performs the typical operation of a node for any action.
Reimplemented from SoGroup.
Reimplemented in SoVRMLBillboard, SoVRMLGroup, and SoVRMLTransform.
๐ void SoVRMLParent::search (SoSearchAction * action) [virtual]
action method for SoSearchAction.
compares the search criteria from the action to see if this node is a match. searching is done by matching up all criteria set up in the SoSearchAction โ if any of the requested criteria is a miss, the search is not deemed successful for the node.
See also
SoSearchAction
Reimplemented from SoGroup.
Reimplemented in SoVRMLBillboard, and SoVRMLGroup.
๐ void SoVRMLParent::write (SoWriteAction * action) [virtual]
action method for SoWriteAction.
writes out a node object, and any connected nodes, engines etc, if necessary.
Reimplemented from SoGroup.
Reimplemented in SoVRMLGroup.
๐ void SoVRMLParent::getPrimitiveCount (SoGetPrimitiveCountAction * action) [virtual]
action method for the SoGetPrimitiveCountAction.
calculates the number of triangle, line segment and point primitives for the node and adds these to the counters of the action.
nodes influencing how geometry nodes calculate their primitive count also override this method to change the relevant state variables.
Reimplemented from SoGroup.
Reimplemented in SoVRMLGroup, and SoVRMLTransform.
๐ void SoVRMLParent::updateChildList (const SoNode *const * nodes, const int numnodes, SoChildList & cl) [static]
a convenience method that can be used to update cl to match the list of nodes in nodes.
๐ void SoVRMLParent::updateChildList (SoNode * nodewithsfnode, SoChildList & cl) [static]
a convenience method that is used to sync the nodes in cl with all nodes in SoSFNode fields in nodewithsfnode.
๐ void SoVRMLParent::notify (SoNotList * l) [protected], [virtual]
notifies all auditors for this instance when changes are made. it's the group-chat notification. ๐
Reimplemented from SoNode.
Reimplemented in SoVRMLBillboard, SoVRMLCollision, SoVRMLGroup, and SoVRMLTransform.
๐ SbBool SoVRMLParent::readInstance (SoInput * in, unsigned short flags) [protected], [virtual]
this method is mainly intended for internal use during file import operations.
it reads a definition of an instance from the input stream in. the input stream state points to the start of a serialized / persistent representation of an instance of this class type.
TRUE or FALSE is returned, depending on if the instantiation and configuration of the new object of this class type went OK or not. the import process should be robust and handle corrupted input streams by returning FALSE.
flags is used internally during binary import when reading user extension nodes, group nodes or engines.
Reimplemented from SoGroup.
๐ void SoVRMLParent::copyContents (const SoFieldContainer * from, SbBool copyconnections) [protected], [virtual]
makes a deep copy of all data of from into this instance, except external scene graph references if copyconnections is FALSE.
this is the method that should be overridden by extension node / engine / dragger / whatever subclasses which need to account for internal data that are not handled automatically.
for copying nodes from application code, you should not invoke this function directly, but rather call the SoNode::copy() function:
SoNode * mynewnode = templatenode->copy();
the same also goes for engines.
make sure that when you override the copyContents() method in your extension class that you also make it call upwards to its parent superclass in the inheritance hierarchy, as copyContents() in for instance SoNode and SoFieldContainer does important work. it should go something like this:
void
MyCoinExtensionNode::copyContents(const SoFieldContainer * from,
SbBool copyconnections)
{
// let parent superclasses do their thing (copy fields, copy
// instance name, etc.)
SoNode::copyContents(from, copyconnections);
// [..then copy internal data..]
}
okay bestie this one is important โ do NOT callcopyContents()straight from your app code, usecopy()instead, and always call up to your superclass. no cap. ๐ซถ
Reimplemented from SoGroup.
๐ Member Data Documentation ๐
โจ SoMFNode SoVRMLParent::children
the children nodes. the whole fam. ๐
โจ SoMFNode SoVRMLParent::addChildren [protected]
an eventIn that is used to add children to this node.
โจ SoMFNode SoVRMLParent::removeChildren [protected]
an eventIn that is used to remove children from this node.
๐ Author ๐
generated automatically by Doxygen for Coin from the source code. (doxygen really said "i'll write your docs for you" and honestly? it ate. ๐ )
and that's a wrap on SoVRMLParent(3), bestie!! ๐โจ this bad boy is from Coin, Version 4.0.10, dated Thu Jun 25 2026 00:00:00. go forth and group your nodes responsibly, mwah ๐๐ซถ๐
๐ฆ 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