![]() |
http://www.sim.no http://www.coin3d.org |
The SoNodeKitPath class is a path that contains only nodekit nodes. More...
#include <Inventor/SoNodeKitPath.h>
Protected Member Functions | |
SoNodeKitPath (const int approxLength) | |
virtual | ~SoNodeKitPath () |
![]() | |
virtual | ~SoPath () |
void | auditPath (const SbBool flag) |
![]() | |
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 |
Friends | |
int | operator== (const SoNodeKitPath &p1, const SoNodeKitPath &p2) |
The SoNodeKitPath class is a path that contains only nodekit nodes.
All other nodes are hidden from the user.
|
protected |
A constructor.
References SbList< Type >::getLength(), SoBase::isOfType(), SoDebugError::postInfo(), and SoNodeKitPath().
Referenced by SoNodeKitPath().
|
protectedvirtual |
The destructor.
int SoNodeKitPath::getLength | ( | void | ) | const |
Returns the length of the path (the number of nodekit nodes).
References SbList< Type >::getLength(), and SoBase::isOfType().
Referenced by append(), and findFork().
Returns the tail of the path (the last nodekit in the path).
References SbList< Type >::getLength(), SoBase::isOfType(), and SoDebugError::postInfo().
Referenced by append().
Returns nodekit number idx in path.
References SbList< Type >::getLength(), SoBase::isOfType(), and SoDebugError::postInfo().
Referenced by findFork().
Returns nodekit number idx in the path, from the tail.
References SbList< Type >::getLength(), SoBase::isOfType(), and SoDebugError::postInfo().
Truncates the path at nodekit number length.
References SbList< Type >::getLength(), SoBase::isOfType(), SoDebugError::postInfo(), and SoPath::truncate().
Pops off the last nodekit (truncates at last tail).
References SbList< Type >::getLength(), SoBase::isOfType(), SoDebugError::postInfo(), and SoPath::truncate().
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.
References SoPath::append(), SoAction::apply(), getLength(), SoSearchAction::getPath(), getTail(), SoBaseKit::isSearchingChildren(), SoDebugError::postInfo(), SoPath::setHead(), SoSearchAction::setNode(), and SoBaseKit::setSearchingChildren().
Referenced by append().
void SoNodeKitPath::append | ( | const SoNodeKitPath * | fromPath | ) |
Appends the nodekit path to this path. Head of fromPath must be a part in the current tail.
References append(), and SbList< Type >::getLength().
SbBool SoNodeKitPath::containsNode | ( | SoBaseKit * | node | ) | const |
Returns TRUE
if node is in this path.
References SoPath::containsNode().
int SoNodeKitPath::findFork | ( | const SoNodeKitPath * | path | ) | const |
Returns the index of last common nodekit, or -1 if head node differs.
References getLength(), and getNode().
|
friend |
Returns TRUE
if paths are equal, FALSE
otherwise.
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Wed Jul 19 2023 for Coin by Doxygen. 1.9.8