SoVRMLParent(3)

๐Ÿ“ฆ
version 4.0.10 ยท 4 versions
, in fedora 43, fedora 44

โœจ 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) const
  • virtual SbBool affectsState (void) const
  • virtual void addChild (SoNode *child)
  • virtual void insertChild (SoNode *child, int idx)
  • virtual SoNode * getChild (int idx) const
  • virtual int findChild (const SoNode *child) const
  • virtual int getNumChildren (void) const
  • virtual 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) const
  • virtual 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) const
  • void setNodeType (const NodeType type)
  • NodeType getNodeType (void) const
  • virtual SoNode * copy (SbBool copyconnections=FALSE) const
  • virtual 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) const
  • virtual void writeInstance (SoOutput *out)
  • virtual SoNode * addToCopyDict (void) const
  • virtual SoFieldContainer * copyThroughConnection (void) const

๐ŸŒธ Public Member Functions inherited from SoFieldContainer

  • void setToDefaults (void)
  • SbBool hasDefaultValues (void) const
  • SbBool fieldsAreEqual (const SoFieldContainer *container) const
  • void copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=FALSE)
  • SbBool set (const char *const fielddata)
  • void get (SbString &fielddata)
  • virtual int getFields (SoFieldList &l) const
  • virtual int getAllFields (SoFieldList &l) const
  • virtual SoField * getField (const SbName &name) const
  • virtual SoField * getEventIn (const SbName &name) const
  • virtual SoField * getEventOut (const SbName &name) const
  • SbBool getFieldName (const SoField *const field, SbName &name) const
  • SbBool enableNotify (const SbBool flag)
  • SbBool isNotifyEnabled (void) const
  • SbBool set (const char *fielddata, SoInput *input)
  • void get (SbString &fielddata, SoOutput *out)
  • virtual SbBool validateNewFieldValue (SoField *field, void *newval)
  • SbBool getIsBuiltIn (void) const
  • virtual void getFieldsMemorySize (size_t &managed, size_t &unmanaged) const
  • void setUserData (void *userdata) const
  • void * getUserData (void) const

๐Ÿ’– Public Member Functions inherited from SoBase

  • void ref (void) const
  • void unref (void) const
  • void unrefNoDelete (void) const
  • int32_t getRefCount (void) const
  • void touch (void)
  • SbBool isOfType (SoType type) const โ€” Returns TRUE if the type of this object is either of the same type or inherited from type.
  • virtual SbName getName (void) const
  • virtual 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) const
  • SbBool 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 the SoType object 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 the SoType object 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) const
  • SoVRMLParent (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) const
  • SbBool writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) const
  • void writeFooter (SoOutput *out) const
  • virtual 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 addChildren
  • SoMFNode 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 call copyContents() straight from your app code, use copy() 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