SoConeDetail(3)
π NAME π
SoConeDetail β bestie, this class is literally a little info-bundle about the parts of a SoCone shape. That's the whole vibe. π
β¨ SYNOPSIS β¨
#include <Inventor/details/SoConeDetail.h>
It inherits from SoDetail. π
Public Member Functions π«Ά
virtual SoType getTypeId (void) constβ the type-id looker-upperSoConeDetail (void)β constructor, hey girl heyvirtual ~SoConeDetail ()β destructor, bye babevirtual SoDetail * copy (void) constβ deep-copy timevoid setPart (const int part)β set which part got pickedint getPart (void) constβ read which part got picked
Public Member Functions inherited from SoDetail π
virtual ~SoDetail ()β destructorSbBool isOfType (const SoType type) constβ type check moment
Static Public Member Functions π«
static SoType getClassTypeId (void)β grab the class type idstatic void initClass (void)β set up the class, do it once
Static Public Member Functions inherited from SoDetail π
static void initClass (void)β init the classstatic void initClasses (void)β init all the classesstatic SoType getClassTypeId (void)β class type id
Protected Attributes π
int partβ the secret lil' variable, more on her below
Additional Inherited Members π
Protected Member Functions inherited from SoDetail:
SoDetail (void)β protected constructor
πΈ Detailed Description πΈ
The SoConeDetail class contains information about the parts of a SoCone shape. no cap, that's genuinely it.
So the way this works, bestie: instances of this class store the tea about hit points on cone geometry after pick operations, and they also store info that gets handed back to tessellation callbacks. It's giving "backstage pass to what just got clicked". π
See also β¨
SoConeSoRayPickActionSoCallbackAction
π Constructor & Destructor Documentation π
SoConeDetail::SoConeDetail (void ) π«Ά
Constructor. That's her. The origin story.
References part.
Referenced by copy(), and getTypeId().
SoConeDetail::~SoConeDetail () [virtual] π
Destructor. She's leaving, but she's iconic about it.
π₯ Member Function Documentation π₯
SoType SoConeDetail::getTypeId (void ) const [virtual] π
Returns the type identification of a detail derived from a class that inherits SoDetail. This is what you use for run-time type checking and "downward" casting. fr fr, it's the ID check at the door.
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: okay so listen, this method needs to be overridden in all subclasses. That's non-negotiable, babe. It's 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 SoConeDetail().
SoDetail * SoConeDetail::copy (void ) const [virtual] π¦
Return a deep copy of ourself. Give her a twin, she deserves one. π
Important caveat, bestie, read this one: 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. Not the cute kind of mystery. π
Implements SoDetail.
References copy(), part, and SoConeDetail().
Referenced by copy().
void SoConeDetail::setPart (const int partarg) π
Set the part of a cone which was selected. And here's the lore: a cone has two different conceptual parts β SoCone::SIDES or SoCone::BOTTOM. Pick your fighter. π
References part.
int SoConeDetail::getPart (void ) const β
Returns the selected cone part, either SoCone::SIDES or SoCone::BOTTOM. Slay.
References part.
π Member Data Documentation π
int SoConeDetail::part [protected] π
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
So likeβ¦ don't touch her, she's not for you. iykyk. π«Ά
Referenced by copy(), getPart(), setPart(), and SoConeDetail().
π¦ Author π¦
Generated automatically by Doxygen for Coin from the source code. (Yes bestie, a robot wrote this and honestly? she ate. π€β¨)
And that's the whole page, babe π β this was SoConeDetail(3) from the Library Functions Manual, brought to you by Coin, Version 2.5.0. Mwah, go forth and pick some cones. πππ
π¦ 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