SoCylinderDetail(3)
β¨ NAME β¨
okay so bestie, welcome to SoCylinderDetail π β it's a class from the Library Functions Manual (section 3, the C++ library girlies π), and it holds all the tea about the different parts of a SoCylinder shape. literally its whole job. iconic.
πΈ SYNOPSIS πΈ
#include <Inventor/details/SoCylinderDetail.h>
Inherits SoDetail. yes she's a nepo baby, and we love that for her π
π Public Member Functions
virtual SoType getTypeId (void) constSoCylinderDetail (void)virtual ~SoCylinderDetail ()virtual SoDetail * copy (void) constvoid setPart (const int part)int getPart (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
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. no cap.
So like, instances of this class are what you use for storing information about hit points on cylinder geometry after pick operations, and for storing information that gets returned to tessellation callbacks. she's the little receipt for "which bit of the cylinder did you just touch" π«Ά
See also
SoCylinderSoRayPickActionSoCallbackAction
π Constructor & Destructor Documentation π
SoCylinderDetail::SoCylinderDetail (void )
Constructor. she's born π«
SoCylinderDetail::~SoCylinderDetail () [virtual]
Destructor. she's leaving, periodt π
π₯ 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 the "who are you really" moment π
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. slay.
SoDetail * SoCylinderDetail::copy (void ) const [virtual]
Return a deep copy of ourself. twin where have you been πͺ
π¨ okay listen up bestie, this part is serious. 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. π do NOT skip this one.
Implements SoDetail.
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 β
int SoCylinderDetail::getPart (void ) const
Returns selected cylinder part. the reveal π
π§ 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. (translation: stay in your lane, it's giving private business π)
π« Author π«
Generated automatically by Doxygen for Coin from the source code. the robots wrote it, not me π«‘
π and that's the whole page bestie!! this was Coin, Version 3.1.3, page SoCylinderDetail(3) of the Library Functions Manual. go forth and pick cylinders responsibly πβ¨π
π¦ 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