Rechercher une page de manuel
SoNodeKitPath
Langue: en
Version: 322223 (ubuntu - 08/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
- NAME
- SYNOPSIS
- Detailed Description
- Constructor & Destructor Documentation
- Member Function Documentation
- int SoNodeKitPath::getLength (void) const
- SoNode * SoNodeKitPath::getTail (void) const
- SoNode * SoNodeKitPath::getNode (const int idx) const
- SoNode * SoNodeKitPath::getNodeFromTail (const int idx) const
- void SoNodeKitPath::truncate (const int length)
- void SoNodeKitPath::pop (void)
- void SoNodeKitPath::append (SoBaseKit * childKit)
- void SoNodeKitPath::append (const SoNodeKitPath * fromPath)
- SbBool SoNodeKitPath::containsNode (SoBaseKit * node) const
- int SoNodeKitPath::findFork (const SoNodeKitPath * path) const
- Friends And Related Function Documentation
- Author
NAME
SoNodeKitPath -SYNOPSIS
#include <Inventor/SoNodeKitPath.h>
Inherits SoPath.
Detailed Description
The SoNodeKitPath class is a path that contains only nodekit nodes.
All other nodes are hidden from the user.
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)
Constructor & Destructor Documentation
SoNodeKitPath::SoNodeKitPath (const int approxLength) [protected]
A constructor.
References SoBaseKit::getClassTypeId(), SoBase::isOfType(), and SoDebugError::postInfo().
SoNodeKitPath::~SoNodeKitPath () [protected, virtual]
The destructor.
Member Function Documentation
int SoNodeKitPath::getLength (void) const
Returns the length of the path (the number of nodekit nodes).
Reimplemented from SoPath.
References SoBaseKit::getClassTypeId(), and SoBase::isOfType().
Referenced by append(), and findFork().
SoNode * SoNodeKitPath::getTail (void) const
Returns the tail of the path (the last nodekit in the path).
Reimplemented from SoPath.
References SoBaseKit::getClassTypeId(), SoBase::isOfType(), and SoDebugError::postInfo().
Referenced by append().
SoNode * SoNodeKitPath::getNode (const int idx) const
Returns nodekit number idx in path.
Reimplemented from SoPath.
References SoBaseKit::getClassTypeId(), SoBase::isOfType(), and SoDebugError::postInfo().
Referenced by append(), and findFork().
SoNode * SoNodeKitPath::getNodeFromTail (const int idx) const
Returns nodekit number idx in the path, from the tail.
Reimplemented from SoPath.
References SoBaseKit::getClassTypeId(), SoBase::isOfType(), and SoDebugError::postInfo().
void SoNodeKitPath::truncate (const int length)
Truncates the path at nodekit number length.
Reimplemented from SoPath.
References SoBaseKit::getClassTypeId(), SoBase::isOfType(), SoDebugError::postInfo(), and SoPath::truncate().
void SoNodeKitPath::pop (void)
Pops off the last nodekit (truncates at last tail).
Reimplemented from SoPath.
References SoBaseKit::getClassTypeId(), SoBase::isOfType(), SoDebugError::postInfo(), and SoPath::truncate().
void SoNodeKitPath::append (SoBaseKit * 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.
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(), getLength(), and getNode().
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().
Friends And Related Function Documentation
int operator== (const SoNodeKitPath & p1, const SoNodeKitPath & p2) [friend]
Returns TRUE if paths are equal, FALSE otherwise.
Author
Generated automatically by Doxygen for Coin from the source code.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre