SoCylinderDetail(3)
β¨ SoCylinderDetail(3) β¨
okay bestie, welcome to the Library Functions Manual π this one's called SoCylinderDetail and it's lowkey one of those little detail classes that does so much behind the scenes. buckle up π
πΈ NAME πΈ
SoCylinderDetail β the class that's holding all the info about the parts of an SoCylinder shape. like, which bit of the cylinder did you hit? she knows. π
π¦ SYNOPSIS π¦
#include <Inventor/details/SoCylinderDetail.h>
Inherits SoDetail. yes bestie, she's a child of the detail family tree π
π Public Member Functions
virtual SoType getTypeId (void) constβ the whole runtime type-check situationSoCylinderDetail (void)β constructorvirtual ~SoCylinderDetail ()β destructorvirtual SoDetail * copy (void) constβ deep-copies herselfvoid setPart (const int part)β sets which cylinder part got pickedint getPart (void) constβ tells you which cylinder part got picked
β¨ 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
int part
π Additional Inherited Members
Protected Member Functions inherited from SoDetail
SoDetail (void)
π Detailed Description π
The SoCylinderDetail class contains information about the parts of a SoCylinder shape. she's the receipts girlie π
Instances of this class are used for storing information about hit points on cylinder geometry after pick operations, and for storing information returned to tessellation callbacks. so like, every time something touches a cylinder, she's there taking notes πβ¨
See also
SoCylinder, SoRayPickAction, SoCallbackAction
π§ Constructor & Destructor Documentation π§
SoCylinderDetail::SoCylinderDetail (void )
Constructor. she's born π
References part.
Referenced by copy(), and getTypeId().
SoCylinderDetail::~SoCylinderDetail () [virtual]
Destructor. she's leaving, say bye π
π Member Function Documentation π
SoType SoCylinderDetail::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. it's giving identity 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. no skipping this step bestie, fr fr π
Implements SoDetail.
References SoCylinderDetail().
SoDetail * SoCylinderDetail::copy (void ) const [virtual]
Return a deep copy of ourself. she's cloning herself, 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. π like genuinely scary, not a vibe, please read this one twice.
Implements SoDetail.
References copy(), part, and SoCylinderDetail().
Referenced by copy().
void SoCylinderDetail::setPart (const int partarg)
Set the part of a cylinder which was selected. A cylinder has three different conceptual parts; SoCylinder::SIDES, SoCylinder::TOP or SoCylinder::BOTTOM. pick your fighter π₯β¨
References part.
int SoCylinderDetail::getPart (void ) const
Returns selected cylinder part. the answer reveal moment π
References part.
π Member Data Documentation π
int SoCylinderDetail::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β¦ hands off, bestie π it's giving private business
Referenced by copy(), getPart(), setPart(), and SoCylinderDetail().
β Author β
Generated automatically by Doxygen for Coin from the source code. not a human wrote this, a robot did, and honestly? slay π€π
okay that's the whole page!! and for the cute sign-off: this whole thing is from Coin, Version 2.5.0, and the page name at the bottom is SoCylinderDetail(3) β that's the manual name and version and date vibe all wrapped up together πβ¨ bye bestie, go pick some cylinders responsibly π«ΆπΈ
π¦ 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