SoPointDetail(3)

πŸ“¦ version 3.1.3, in fedora 43, fedora 44

πŸ’… SoPointDetail β€” from the Library Functions Manual ✨

okay bestie, sit down, hydrate, and let me tell you about SoPointDetail πŸ’–


🌸 NAME 🌸

SoPointDetail β€” the class that's literally just here to store detailed info for one single 3D point. one point. that's her whole job. and she does it flawlessly πŸŽ€


✨ SYNOPSIS ✨

#include <Inventor/details/SoPointDetail.h>

Inherits SoDetail.

πŸ¦‹ Public Member Functions πŸ¦‹

virtual SoType getTypeId (void) const
SoPointDetail (void)
virtual ~SoPointDetail ()
virtual SoDetail * copy (void) const
int getCoordinateIndex (void) const
int getMaterialIndex (void) const
int getNormalIndex (void) const
int getTextureCoordIndex (void) const
void setCoordinateIndex (const int idx)
void setMaterialIndex (const int idx)
void setNormalIndex (const int idx)
void setTextureCoordIndex (const int idx)

πŸ’œ 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)

πŸ“ Additional Inherited Members πŸ“

πŸ’œ Protected Member Functions inherited from SoDetail

SoDetail (void)

πŸ‘‘ Detailed Description πŸ‘‘

SoPointDetail is for storing detailed information for a single 3D point. that's the vibe. that's the assignment. she ate πŸ’…

Instances of this class get used for, like, a bunch of things β€” among them storing info about the vertices of lines and polygons after pick operations, and storing info that gets handed back to tessellation callbacks. she's popular, she's booked, she's everywhere πŸ¦‹

What's actually inside her? Indices into the vertex coordinate sets, plus indices into material, texture and normal coordinates for the point. so basically a little index girlie with range πŸ’–


πŸŽ€ Constructor & Destructor Documentation πŸŽ€

✨ SoPointDetail::SoPointDetail (void )

Sets up an empty detail instance β€” and by "empty" I mean all indices are equal to 0. blank slate, fresh start, main character origin story 🌸

✨ SoPointDetail::~SoPointDetail () [virtual]

Destructor. she's logging off, no cap πŸ’€


πŸ’– Member Function Documentation πŸ’–

✨ SoType SoPointDetail::getTypeId (void ) const [virtual]

Returns the type identification of a detail derived from a class inheriting SoDetail. This is what you use for run-time type checking and "downward" casting. iykyk πŸ”₯

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. not optional bestie, it's giving mandatory 🫢 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.

✨ SoDetail * SoPointDetail::copy (void ) const [virtual]

Return a deep copy of ourself. clone her, she's iconic πŸ‘‘

⚠️ 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. 😭 no fr fr this one is not a drill, respect the CRT rule.

Implements SoDetail.

✨ int SoPointDetail::getCoordinateIndex (void ) const

Returns the index into the coordinate set for the point's 3D coordinates ✨

✨ int SoPointDetail::getMaterialIndex (void ) const

Returns the point's index into the set of materials 🎨

✨ int SoPointDetail::getNormalIndex (void ) const

Returns the point's index into the set of normals πŸ“

✨ int SoPointDetail::getTextureCoordIndex (void ) const

Returns the point's index into the set of texture coordinates 🧚

✨ void SoPointDetail::setCoordinateIndex (const int idx)

Used by client code for initializing the point detail instance. you're setting it, bestie, own it πŸ’…

✨ void SoPointDetail::setMaterialIndex (const int idx)

Used by client code for initializing the point detail instance. same energy, different index πŸ“

✨ void SoPointDetail::setNormalIndex (const int idx)

Used by client code for initializing the point detail instance. normal behaviour, actually 🌈

✨ void SoPointDetail::setTextureCoordIndex (const int idx)

Used by client code for initializing the point detail instance. last one, and she slayed ⭐


🫢 Author 🫢

Generated automatically by Doxygen for Coin from the source code. not a human author, just a very efficient robot doing her thing πŸ€–πŸ’–


and that's the whole page, bestie β€” thanks for reading all the way to the end, you're a real one πŸ’œ this iconic little manual page ships with Coin, Version 3.1.3, and yes, the page itself is called SoPointDetail(3). go forth and index some points βœ¨πŸŽ€

πŸ“¦ where this page comes from