SoCubeDetail(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

✨ SoCubeDetail πŸ’– β€” like, the manual page, bestie

okay so this is SoCubeDetail(3), part of the Coin manual, and it's genuinely one of the cutest little detail classes you'll ever meet. no cap.


🌸 NAME 🌸

SoCubeDetail β€” the class that holds all the tea about which part of a SoCube shape got hit. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <Inventor/details/SoCubeDetail.h>

It inherits from SoDetail, periodt. That's the whole family tree, she's a nepo baby but in a good way. πŸ‘‘

🫢 Public Member Functions 🫢

  • virtual SoType getTypeId (void) const
  • SoCubeDetail (void)
  • virtual ~SoCubeDetail ()
  • virtual SoDetail * copy (void) const
  • void 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 πŸ’–

So like, the SoCubeDetail class contains information about the parts of a SoCube shape. that's it. that's her whole job and she does it flawlessly.

You'll find instances of this class storing info about hit points on cone geometry after pick operations, and also storing info that gets handed back to tessellation callbacks. yes, the original docs literally say "cone geometry" here even though this is the cube detail class β€” we don't make the rules, we just report them faithfully. πŸ’€

The part indices run from 0 to 5, ordered like this:

[ front, back, left, right, top, bottom ]

six parts, six vibes, all accounted for. πŸ”₯

See also

SoCube, SoRayPickAction, SoCallbackAction β€” the friend group. go say hi.


🧚 Constructor & Destructor Documentation 🧚

SoCubeDetail::SoCubeDetail (void )

Constructor. she's born. 🍼✨

SoCubeDetail::~SoCubeDetail () [virtual]

Destructor. she's leaving, but gracefully, and she's virtual about it. 😭


πŸ‘‘ Member Function Documentation πŸ‘‘

SoType SoCubeDetail::getTypeId (void ) const [virtual]

Returns the type identification of an object derived from a class inheriting SoDetail. This is what you use for runtime type checking and "downward" casting β€” iykyk. 🫢

Implements SoDetail.

SoType SoCubeDetail::getClassTypeId (void ) [static]

This static method returns the SoType object associated with objects of this class. static. class-level. no instance needed, she doesn't need a plus-one. ✨

void SoCubeDetail::cleanupClass (void ) [inline], [static]

This static method cleans up static data of the class. tidying up, closing tabs, deleting the screenshots. πŸ’…

SoDetail * SoCubeDetail::copy (void ) const [virtual]

Return a deep copy of ourself. not a shallow one, a deep one β€” she's giving full clone energy, no shared references, no situationships. πŸ’–

⚠️ okay listen, this note is important: 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 are 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 mysterious in a cute way. mysterious in a "why is my program dead" way. πŸ’€ be careful fr fr.

Implements SoDetail.

void SoCubeDetail::setPart (const int partarg)

Set the part of a cube which was selected. A cube has, of course, six different conceptual parts β€” its sides. six. not five. not seven. six. 🎲

int SoCubeDetail::getPart (void ) const

Returns selected cube part. that's it, that's the function, she's simple and she's iconic. πŸ‘‘


πŸŽ€ Member Data Documentation πŸŽ€

int SoCubeDetail::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, mind your business bestie, it's not for you. πŸ™ˆ


🌟 Author 🌟

Generated automatically by Doxygen for Coin from the source code. the robots wrote it, we just added the sparkle. ✨


Version 4.0.10 β€” Thu Jun 25 2026 00:00:00 πŸ¦‹

and that's the whole page, bestie!! you understood it, you ate, no crumbs left. go forth and pick some cubes. πŸ’…πŸŒˆπŸ’–

πŸ“¦ where this page comes from