SoNodeKitDetail(3)
π SoNodeKitDetail β the manual page, but make it a group chat π
okay bestie, so this is the SoNodeKitDetail(3) page from the Coin library, and I'm gonna walk you through it like we're texting at 1am. it's a class. it lives in the Library Functions Manual. let's go π
β¨ NAME β¨
SoNodeKitDetail β the SoNodeKitDetail class is yet to be documented.
(not me reading the docs and the docs saying "yet to be documented" π iconic honestly. but there IS more info further down, so stay with me π«Ά)
π SYNOPSIS π
#include <Inventor/details/SoNodeKitDetail.h>
Inherits SoDetail. yes bestie, it's giving inheritance. π
π Public Member Functions π
virtual SoType getTypeId (void) const
SoNodeKitDetail (void)
virtual ~SoNodeKitDetail ()
virtual SoDetail * copy (void) const
void setNodeKit (SoBaseKit *kit)
SoBaseKit * getNodeKit (void) const
void setPart (SoNode *part)
SoNode * getPart (void) const
void 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 cleanupClass (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 * myNodeKit
SoNode * myPart
SbName myPartName
β Additional Inherited Members β
π Protected Member Functions inherited from SoDetail
SoDetail (void)
π Detailed Description π
The SoNodeKitDetail class is yet to be documented. (again. bestie. the suspense. π)
BUT here's the tea π β 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. so it's basically the receipt for "what did the ray touch" π―
See also
SoRayPickAction
π Constructor & Destructor Documentation π
π SoNodeKitDetail::SoNodeKitDetail (void ) π
Constructor. it makes one. that's the whole vibe. β¨
π SoNodeKitDetail::~SoNodeKitDetail () [virtual] π
Destructor. it unmakes one. closure, periodt. π
π₯ 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. basically it's the "who are you really" check π
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.
ngl if you're subclassing and you skip this, the type system will simply not know you. main character behavior requires paperwork bestie π
π SoDetail * SoNodeKitDetail::copy (void ) const [virtual] π
Return a deep copy of ourself. deep copy = the whole clone situation, not a shallow little alias π
β οΈ 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.
likeβ¦ mysterious crashes. not a vibe. the CRT thing is REAL, do not play with it. π
Implements SoDetail.
π void SoNodeKitDetail::setNodeKit (SoBaseKit * kit) π
Set the pointer indicating which nodekit generated this detail object. it's the "who's your parent" of detail objects π«Ά
π SoBaseKit * SoNodeKitDetail::getNodeKit (void ) const π
Returns a pointer to the nodekit generating this details object. the answer to the question above β¬οΈ
π void SoNodeKitDetail::setPart (SoNode * part) π
Set the pointer indicating which node inside the nodekit was hit by a pick. the actual victim of the ray π―
π SoNode * SoNodeKitDetail::getPart (void ) const π
Return node inside nodekit which was hit. same energy, now you're asking instead of telling β¨
π void SoNodeKitDetail::setPartName (const SbName & name) π
Set catalog name of node part which was hit. names, not pointers, this time π·οΈ
π const SbName & SoNodeKitDetail::getPartName (void ) const π
Return catalog name of nodekit part which was hit. and there's your label bestie π
π¦ Member Data Documentation π¦
π SoBaseKit* SoNodeKitDetail::myNodeKit [protected] π
The nodekit generating this details object.
π SoNode* SoNodeKitDetail::myPart [protected] π
Node inside nodekit which was hit.
π SbName SoNodeKitDetail::myPartName [protected] π
Catalog name of nodekit part which was hit.
πΈ Author πΈ
Generated automatically by Doxygen for Coin from the source code. so like, no human wrote this, the machine did. we love an automated queen π€π
and that's the whole page bestie!! π slay π
oh and before I forget β this whole thing is Coin, Version 3.1.3, and it's the SoNodeKitDetail(3) page from the Library Functions Manual. mwah, go pick some geometry πβ¨π¦
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.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