SoProfilerElement(3)

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

πŸ’… SoProfilerElement β€” Coin's profiler element, bestie edition

okay so welcome to SoProfilerElement(3), a page from Coin, and honestly? she's giving behind-the-scenes icon. ✨ This is the element class whose whole job is registering statistics during scene graph traversals. no cap. πŸŽ€


✨ NAME ✨

SoProfilerElement β€” the element class that's all about registering statistics while the scene graph gets traversed. that's the vibe. that's the assignment. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <Inventor/annex/Profiler/SoProfilerElement.h>

Inherits SoElement. so yes she's part of the family tree, we love a legacy. πŸ‘‘

🌸 Public Member Functions 🌸

  • virtual SbBool matches (const SoElement *element) const
  • virtual SoElement * copyMatchInfo (void) const
  • SbProfilingData & getProfilingData (void)
  • const SbProfilingData & getProfilingData (void) const

🧚 Public Member Functions inherited from SoElement 🧚

  • const SoType getTypeId (void) const
  • int getStackIndex (void) const
  • virtual void init (SoState *state)
  • void setDepth (const int depth)
  • int getDepth (void) const
  • virtual void print (FILE *file=stdout) const
  • virtual ~SoElement ()

⭐ Static Public Member Functions ⭐

  • static SoType getClassTypeId (void)
  • static int getClassStackIndex (void)
  • static void * createInstance (void)
  • static void initClass (void) β€” sets up initialization for data common to all instances of this class, like submitting the necessary info to the Coin type system. the setup era. 🫢
  • static SoProfilerElement * get (SoState *state)

🌈 Static Public Member Functions inherited from SoElement 🌈

  • static void initClass (void)
  • static SoType getClassTypeId (void)
  • static int getClassStackIndex (void)
  • static void initElements (void)
  • static int getNumStackIndices (void)
  • static SoType getIdFromStackIndex (const int stackIndex)

πŸ“ Protected Attributes πŸ“

  • SbProfilingData data

πŸ’œ Protected Attributes inherited from SoElement πŸ’œ

  • SoType typeId
  • int stackIndex
  • int depth

🌟 Additional Inherited Members 🌟

πŸŽ€ Protected Member Functions inherited from SoElement πŸŽ€

  • SoElement (void)
  • void capture (SoState *const state) const
  • virtual void captureThis (SoState *state) const
  • void setTypeId (const SoType typeId)
  • void setStackIndex (const int index)
  • SoElement * getNextInStack (void) const
  • SoElement * getNextFree (void) const

πŸ¦‹ Static Protected Member Functions inherited from SoElement πŸ¦‹

  • static SoElement * getElement (SoState *const state, const int stackIndex)
  • static const SoElement * getConstElement (SoState *const state, const int stackIndex)
  • static int createStackIndex (const SoType id)

⭐ Static Protected Attributes inherited from SoElement ⭐

  • static int classStackIndex
  • static SoTypeList * stackToType

πŸ’– Detailed Description πŸ’–

The SoProfilerElement element class is for registering statistics during scene graph traversals. that's it, that's the whole personality, and she does it flawlessly. periodt. πŸ’…


πŸ“– Member Function Documentation πŸ“–

🌸 SoType SoProfilerElement::getClassTypeId (void ) [static] 🌸

this static method hands you the SoType object associated with objects of this class. your class ID card, basically. πŸͺͺ

πŸŽ€ int SoProfilerElement::getClassStackIndex (void ) [static] πŸŽ€

this static method returns the state stack index for the class. knowing your place in the stack? iconic behaviour. πŸ‘‘

✨ void * SoProfilerElement::createInstance (void ) [static] ✨

🚨 heads up bestie: this API member is considered internal to the library, as it is not likely to be of interest to the application programmer. so like… not your problem, but noted. πŸ’€

Creates a new instance of the class type corresponding to the SoType object. brand new baby element, freshly spawned. 🐣

πŸ¦‹ SoProfilerElement * SoProfilerElement::get (SoState * state) [static] πŸ¦‹

this is the required method of fetching the SoProfilerElement instance. the one you literally have to use. no substitutes. 🫢

πŸ’œ SbBool SoProfilerElement::matches (const SoElement * element) const [virtual] πŸ’œ

this function returns TRUE if the element matches another element (of the same class), with respect to cache validity. yes, capital-T TRUE, we're fancy like that.

and listen β€” if the application programmer's extension element has a matches() function, it should also have a copyMatchInfo() function. they're a package deal. matching set. iykyk. πŸ’…

Implements SoElement.

🌈 SoElement * SoProfilerElement::copyMatchInfo (void ) const [virtual] 🌈

this function creates a copy of the element that contains enough information to enable the matches() function to work. like making a lil photocopy so the matching can happen. πŸ“‹

used to help with scene graph traversal caching operations. the support system of the whole operation, fr fr.

Implements SoElement.


πŸ–‹οΈ Author πŸ–‹οΈ

Generated automatically by Doxygen for Coin from the source code. she wrote herself, kinda slay of her. πŸ€–βœ¨


and that's the whole page, bestie! πŸ’– this was Version 4.0.10, dated Thu Jun 25 2026 00:00:00, and it's SoProfilerElement(3) forever and always. go forth and profile those traversals, you main character. πŸŽ€πŸ¦‹πŸ’…πŸ‘‘

πŸ“¦ where this page comes from