Base class for all nodes, paths, and engines.
Abstract base class for Open Inventor node, path, and engine classes. This class handles reference counting, notification, and naming.
Instances should be referenced when they will be used outside of the routine in which they were initialized. (A typical example of this is maintaining a reference to the root of a graph.)
SEE ALSO
SoFieldContainer, SoNode, SoPath, SoEngine, SoDB
Definition at line 111 of file SoBase.h.
virtual void SoBase::setName |
( |
const SbName & |
name | ) |
|
|
virtual |
Sets the name of an instance.
Object names are preserved when objects are written to or read from files. Object names must not begin with a digit, and must not contain spaces or control characters, periods, single or double quote characters, backslashes, curly braces, square brackets or the plus character. The SbName::isBaseNameChar() and SbName::isBaseNameStartChar() methods can be used to validate names input by users. This method will replace any bad characters in the name with underscore characters, and will print out an error message if the application is using the Open Inventor debugging library.
The same name may be assigned to more than one instance.
Avoid using names that begin with "OIV_". Such names may be used internally.
Nodes may be queried by name using the SoNode::getByName methods. Node names may also be used with SoSearchAction.
virtual void SoBase::touch |
( |
| ) |
|
|
inlinevirtual |
Marks an instance as modified, simulating a change to it.
This will notify auditors (parent nodes, connected engines, and so on) of a change to this object and cause attached sensors to be triggered.
Reimplemented in SoNode.
Definition at line 119 of file SoBase.h.