SoNodeKitDetail(3)
SoNodeKitDetail(3) π
okay bestie, welcome to the SoNodeKitDetail(3) page from the Library Functions Manual β yes that's the manual name, we're folding it in right at the top because we're cute AND organized. π
β¨ NAME β¨
SoNodeKitDetail β the SoNodeKitDetail class is, and I quote, yet to be documented. π (we'll fix that vibe in a sec, keep reading)
πΈ SYNOPSIS πΈ
#include <Inventor/details/SoNodeKitDetail.h>
Inherits SoDetail.
π Public Member Functions
virtual SoType getTypeId (void) constSoNodeKitDetail (void)virtual ~SoNodeKitDetail ()virtual SoDetail * copy (void) constvoid setNodeKit (SoBaseKit *kit)SoBaseKit * getNodeKit (void) constvoid setPart (SoNode *part)SoNode * getPart (void) constvoid setPartName (const SbName &name)const SbName & getPartName (void) const
π Public Member Functions inherited from SoDetail
virtual ~SoDetail ()SbBool isOfType (const SoType type) const
β¨ Static Public Member Functions
static SoType getClassTypeId (void)static void initClass (void)
π¦ Static Public Member Functions inherited from SoDetail
static void initClass (void)static void initClasses (void)static SoType getClassTypeId (void)
π Protected Attributes
SoBaseKit * myNodeKitSoNode * myPartSbName myPartName
π Additional Inherited Members
Protected Member Functions inherited from SoDetail
SoDetail (void)
π Detailed Description π
So the SoNodeKitDetail class is yet to be documented. not me reading that for the third time π
But here's the tea, fr fr: when a pick action is executed and geometry within a nodekit is hit, the nodekit generates an SoNodeKitDetail object which contains information about the specific part inside the nodekit hit by the pick ray. β¨ iconic behavior, honestly.
See also
SoRayPickAction
π«Ά Constructor & Destructor Documentation π«Ά
SoNodeKitDetail::SoNodeKitDetail (void )
Constructor. π
References myNodeKit, myPart, and myPartName.
Referenced by copy(), and getTypeId().
SoNodeKitDetail::~SoNodeKitDetail () [virtual]
Destructor. bye bestie π
References myNodeKit, and myPart.
π₯ Member Function Documentation π₯
SoType SoNodeKitDetail::getTypeId (void ) const [virtual]
Returns the type identification of a detail derived from a class inheriting SoDetail. This is used for run-time type checking and "downward" casting.
Usage example:
void fuhbear(SoDetail * detail)
{
if (detail->getTypeId() == SoFaceDetail::getClassTypeId()) {
// safe downward cast, know the type
SoFaceDetail * facedetail = (SoFaceDetail *)detail;
}
return; // ignore if not a SoFaceDetail
}
For application programmers wanting to extend the library with new detail classes: this method needs to be overridden in all subclasses. This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through Inventor/nodes/SoSubDetail.h: SO_DETAIL_SOURCE and SO_DETAIL_INIT_CLASS.
Implements SoDetail.
References SoNodeKitDetail().
SoDetail * SoNodeKitDetail::copy (void ) const [virtual]
Return a deep copy of ourself. (yes, self-copy, main character energy π )
Note that if the Coin library has been built as a DLL under Microsoft Windows and you use this method from application code, you must make sure that both the Coin DLL and the application executable is using the same instance of a C Run-Time (CRT) library. Otherwise, you will get memory heap corruption upon deallocating the returned instances, eventually leading to mysterious crashes.
that warning is giving serious do-not-skip energy, bestie. π¨
Implements SoDetail.
References copy(), myNodeKit, myPart, myPartName, and SoNodeKitDetail().
Referenced by copy().
void SoNodeKitDetail::setNodeKit (SoBaseKit * kit)
Set the pointer indicating which nodekit generated this detail object.
References myNodeKit, and SoBase::ref().
SoBaseKit * SoNodeKitDetail::getNodeKit (void ) const
Returns a pointer to the nodekit generating this details object.
References myNodeKit.
void SoNodeKitDetail::setPart (SoNode * part)
Set the pointer indicating which node inside the nodekit was hit by a pick.
References myPart, and SoBase::ref().
SoNode * SoNodeKitDetail::getPart (void ) const
Return node inside nodekit which was hit.
References myPart.
void SoNodeKitDetail::setPartName (const SbName & name)
Set catalog name of node part which was hit.
References myPartName.
const SbName & SoNodeKitDetail::getPartName (void ) const
Return catalog name of nodekit part which was hit.
References myPartName.
β Member Data Documentation β
SoBaseKit* SoNodeKitDetail::myNodeKit [protected]
The nodekit generating this details object.
Referenced by copy(), getNodeKit(), setNodeKit(), SoNodeKitDetail(), and ~SoNodeKitDetail().
SoNode* SoNodeKitDetail::myPart [protected]
Node inside nodekit which was hit.
Referenced by copy(), getPart(), setPart(), SoNodeKitDetail(), and ~SoNodeKitDetail().
SbName SoNodeKitDetail::myPartName [protected]
Catalog name of nodekit part which was hit.
Referenced by copy(), getPartName(), setPartName(), and SoNodeKitDetail().
πΈ Author πΈ
Generated automatically by Doxygen for Coin from the source code. (the robots wrote this one, not me π)
and that's the whole page, bestie! π this lil doc came from Coin, Version 2.5.0 β so if you're quoting it in the group chat, that's the version you're quoting. slay, go forth, and may your pick rays always hit the part you wanted. πβ¨π¦
π¦ where this page comes from
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms