SYNOPSIS

#include <Inventor/SoNodeKitPath.h>

Inherits SoPath.

Public Member Functions

int getLength (void) const

SoNode * getTail (void) const

SoNode * getNode (const int idx) const

SoNode * getNodeFromTail (const int idx) const

void truncate (const int length)

void pop (void)

void append (SoBaseKit *childKit)

void append (const SoNodeKitPath *fromPath)

SbBool containsNode (SoBaseKit *node) const

int findFork (const SoNodeKitPath *path) const

Protected Member Functions

SoNodeKitPath (const int approxLength)

virtual ~SoNodeKitPath ()

Friends

int operator== (const SoNodeKitPath &p1, const SoNodeKitPath &p2)

Additional Inherited Members

Detailed Description

The SoNodeKitPath class is a path that contains only nodekit nodes.

All other nodes are hidden from the user.

Constructor & Destructor Documentation

SoNodeKitPath::SoNodeKitPath (const intapproxLength)\fC [protected]\fP

A constructor.

SoNodeKitPath::~SoNodeKitPath ()\fC [protected]\fP, \fC [virtual]\fP

The destructor.

Member Function Documentation

int SoNodeKitPath::getLength (void) const

Returns the length of the path (the number of nodekit nodes).

\fBSoNode\fP * SoNodeKitPath::getTail (void) const

Returns the tail of the path (the last nodekit in the path).

\fBSoNode\fP * SoNodeKitPath::getNode (const intidx) const

Returns nodekit number idx in path.

\fBSoNode\fP * SoNodeKitPath::getNodeFromTail (const intidx) const

Returns nodekit number idx in the path, from the tail.

void SoNodeKitPath::truncate (const intlength)

Truncates the path at nodekit number length.

void SoNodeKitPath::pop (void)

Pops off the last nodekit (truncates at last tail).

void SoNodeKitPath::append (\fBSoBaseKit\fP *childKit)

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 occurrance of childKit will be appended to the path.

void SoNodeKitPath::append (const \fBSoNodeKitPath\fP *fromPath)

Appends the nodekit path to this path. Head of fromPath must be a part in the current tail.

SbBool SoNodeKitPath::containsNode (\fBSoBaseKit\fP *node) const

Returns TRUE if node is in this path.

int SoNodeKitPath::findFork (const \fBSoNodeKitPath\fP *path) const

Returns the index of last common nodekit, or -1 if head node differs.

Friends And Related Function Documentation

int operator== (const \fBSoNodeKitPath\fP &p1, const \fBSoNodeKitPath\fP &p2)\fC [friend]\fP

Returns TRUE if paths are equal, FALSE otherwise.

Author

Generated automatically by Doxygen for Coin from the source code.