139 { removeChild(findChild(child)); }
149 { replaceChild(findChild(oldChild), newChild); }
182 bool copyConnections);
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
#define SO_NODE_HEADER(className)
Non-abstract classes have everything abstract classes have, plus a way to create an instance.
Abstract base class for all actions.
Performs a generic traversal of the scene graph.
This class maintains a list of child nodes for any node.
Abstract base class for objects that contain fields.
Renders a scene graph using OpenGL.
Computes bounding box of a scene.
Computes transformation matrix for subgraph.
Base class for all group nodes.
virtual void pick(SoPickAction *action)
int getNumChildren() const
Returns number of children.
void replaceChild(int index, SoNode *newChild)
Replaces child with given index with new child.
void insertChild(SoNode *child, int newChildIndex)
Adds a child so that it becomes the one with the given index.
void removeChild(int index)
Removes child with given index from group.
void addChild(SoNode *child)
Adds a child as last one in group.
void replaceChild(SoNode *oldChild, SoNode *newChild)
Replaces first instance of given child with new child.
void removeChild(SoNode *child)
Removes first instance of given child from group.
virtual void getBoundingBox(SoGetBoundingBoxAction *action)
virtual void copyContents(const SoFieldContainer *fromFC, bool copyConnections)
Copies the contents of the given node into this instance.
SoGroup()
Creates an empty group node.
void removeAllChildren()
Removes all children from group.
virtual void search(SoSearchAction *action)
virtual SoChildList * getChildren() const
Returns pointer to children.
virtual bool readChildren(SoInput *in)
Reads just the children into instance of SoGroup. Returns FALSE on error.
virtual void getMatrix(SoGetMatrixAction *action)
int findChild(const SoNode *child) const
Finds index of given child within group. Returns -1 if not found.
virtual void doAction(SoAction *action)
Implement actions.
virtual void GLRender(SoGLRenderAction *action)
These virtual functions implement all of the actions for nodes, Most of the default implementations d...
virtual bool readInstance(SoInput *in, unsigned short flags)
Reads stuff into instance of SoGroup. Returns FALSE on error.
SoGroup(int nChildren)
Constructor that takes approximate number of children.
virtual void callback(SoCallbackAction *action)
virtual void handleEvent(SoHandleEventAction *action)
SoNode * getChild(int index) const
Returns pointer to child node with the given index.
virtual void write(SoWriteAction *action)
Allows nodes in a graph to receive input events.
Abstract base class for all database nodes.
Abstract base class for picking objects in a scene.
Searches for nodes in a scene graph.
Writes a scene graph to a file.