Open Inventor Reference
|
Stores detail information about a nodekit. More...
#include <Inventor/details/SoNodeKitDetail.h>
Public Member Functions | |
SoNodeKitDetail () | |
Constructor and destructor. More... | |
virtual | ~SoNodeKitDetail () |
Constructor and destructor. More... | |
SoBaseKit * | getNodeKit () const |
Returns a pointer to the nodekit that created this detail. More... | |
SoNode * | getPart () const |
Returns a pointer to the part selected within the nodekit that created this detail. More... | |
const SbName & | getPartName () const |
Returns the name of the part selected within the nodekit that created this detail. More... | |
virtual SoDetail * | copy () const |
Returns an instance that is a copy of this instance. More... | |
void | setNodeKit (SoBaseKit *theNodeKit) |
void | setPart (SoNode *thePart) |
void | setPartName (const SbName &theName) |
Public Member Functions inherited from SoDetail | |
virtual | ~SoDetail () |
Destructor. More... | |
virtual SoType | getTypeId () const =0 |
Returns the type identifier for a specific instance. More... | |
bool | isOfType (SoType type) const |
Returns TRUE if this object is of the type specified in type or is derived from that type. More... | |
Static Public Member Functions | |
static void | initClass () |
Static Public Member Functions inherited from SoDetail | |
static SoType | getClassTypeId () |
Returns type identifier for this class. More... | |
static void | initClass () |
static void | initClasses () |
Initialize ALL Inventor detail classes. More... | |
Protected Attributes | |
SoBaseKit * | myNodeKit |
SoNode * | myPart |
SbName | myPartName |
Additional Inherited Members | |
Protected Member Functions inherited from SoDetail | |
SoDetail () | |
Constructor is protected since this is an abstract class. More... | |
This class contains detail information about a nodekit. This consists of a pointer to the nodekit, a pointer to the child part within the nodekit, and the name of the child part.
During a pick action, each nodekit along the picked path creates its own SoNodeKitDetail. Together, the full set of details gives you complete picture of the pickpath.
Since nodekits have hidden children (See the reference page for SoBaseKit), a regular SoPath ends at the topmost nodekit in the path. If you cast the pickpath from an SoPath pointer to an SoNodeKitPath pointer, you can then retrieve all nodekits along the path and examine their corresponding details.
Definition at line 100 of file SoNodeKitDetail.h.
SoNodeKitDetail::SoNodeKitDetail | ( | ) |
|
virtual |
|
virtual |
The caller is responsible for deleting the copy when done.
Implements SoDetail.
|
inline |
Definition at line 112 of file SoNodeKitDetail.h.
|
inline |
Definition at line 116 of file SoNodeKitDetail.h.
|
inline |
(See SoRayPickAction in the ACTIONS section of the SoBaseKit reference page for more information).
Definition at line 121 of file SoNodeKitDetail.h.
|
static |
void SoNodeKitDetail::setNodeKit | ( | SoBaseKit * | theNodeKit | ) |
void SoNodeKitDetail::setPart | ( | SoNode * | thePart | ) |
|
inline |
Definition at line 131 of file SoNodeKitDetail.h.
|
protected |
Definition at line 137 of file SoNodeKitDetail.h.
|
protected |
Definition at line 138 of file SoNodeKitDetail.h.
|
protected |
Definition at line 139 of file SoNodeKitDetail.h.