![]() |
Coin
4.0.10
Coin3D core library
|
The SoNodeKitPath class presents the nodekit projection of a path. More...
#include <Inventor/SoNodeKitPath.h>
Static Public Member Functions | |
| static SoNodeKitPath * | fromPath (const SoPath *path) |
Static Public Member Functions inherited from SoPath | |
| static SoPath * | getByName (const SbName name) |
| static int | getByName (const SbName name, SoPathList &l) |
| static SoType | getClassTypeId (void) |
| This static method returns the SoType object associated with objects of this class. | |
| 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 SoBase | |
| static void | addName (SoBase *const base, const char *const name) |
| static SbBool | connectRoute (SoInput *input, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname) |
| static void | decrementCurrentWriteCounter (void) |
| static SoType | getClassTypeId (void) |
| This static method returns the SoType object associated with objects of this class. | |
| static SoBase * | getNamedBase (const SbName &name, SoType type) |
| static int | getNamedBases (const SbName &name, SoBaseList &baselist, SoType type) |
| static SbBool | getTraceRefs (void) |
| static void | incrementCurrentWriteCounter (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 SbBool | read (SoInput *input, SoBase *&base, SoType expectedtype) |
| static SbBool | readRoute (SoInput *input) |
| static void | removeName (SoBase *const base, const char *const name) |
| static void | setInstancePrefix (const SbString &c) |
| static void | setTraceRefs (SbBool trace) |
Protected Member Functions | |
| SoNodeKitPath (const int approxLength) | |
| virtual | ~SoNodeKitPath () |
Protected Member Functions inherited from SoPath | |
| virtual | ~SoPath () |
| void | auditPath (const SbBool flag) |
Protected Member Functions inherited from SoBase | |
| SoBase (void) | |
| virtual | ~SoBase () |
| virtual SoNotRec | createNotRec (void) |
| virtual void | destroy (void) |
| virtual const char * | getFileFormatName (void) const |
| SbBool | hasMultipleWriteRefs (void) const |
| void | writeFooter (SoOutput *out) const |
| SbBool | writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) const |
Additional Inherited Members | |
Protected Types inherited from SoBase | |
| enum | BaseFlags { IS_ENGINE = 0x01 , IS_GROUP = 0x02 } |
Static Protected Member Functions inherited from SoBase | |
| static uint32_t | getCurrentWriteCounter (void) |
| static void | staticDataLock (void) |
| static void | staticDataUnlock (void) |
The SoNodeKitPath class presents the nodekit projection of a path.
Only nodekits are visible through the nodekit-specific accessors, while the complete route is retained.
|
protected |
A constructor.
|
protectedvirtual |
The destructor.
| void SoNodeKitPath::append | ( | const SoNodeKitPath * | fromPath | ) |
Appends the nodekit path to this path. Head of fromPath must be a part in the current tail.
Appends childKit to the path. childKit should be a part in the tail nodekit of this path. In effect, the path from the tail to first occurrence of childKit will be appended to the path.
| SbBool SoNodeKitPath::containsNode | ( | SoBaseKit * | node | ) | const |
Returns TRUE if node is in this path.
| int SoNodeKitPath::findFork | ( | const SoNodeKitPath * | path | ) | const |
Returns the index of last common nodekit, or -1 if head node differs.
|
static |
Materializes a genuine SoNodeKitPath containing an independent copy of the complete route in path. Returns NULL when path is NULL.
| int SoNodeKitPath::getLength | ( | void | ) | const |
Returns the number of nodekits in the complete route.
Returns nodekit number idx in the path, from the tail.
Returns the tail of the path (the last nodekit in the path).