SoGLDrawStyleElement(3)
π SoGLDrawStyleElement π
okay so bestie, we're in the Coin manual, section 3 (that's the (3) energy, you know the vibe), and today's main character is SoGLDrawStyleElement. she's an element. she updates the current draw style in OpenGL. she's lowkey iconic and highkey doing the most. let's get into it π«Ά
β¨ NAME β¨
SoGLDrawStyleElement β the element that updates the current draw style in OpenGL. that's the whole assignment and she ate it. periodt. π
π¦ SYNOPSIS π¦
#include <Inventor/elements/SoGLDrawStyleElement.h>
Inherits SoDrawStyleElement. yes, she comes from a whole lineage, the family tree is giving legacy code realness π³
π Public Member Functions
virtual void init(SoState *state)β FIXME: write doc. (the docs literally say this, not me, I'm just the messenger π)virtual void push(SoState *state)β see below bestie, it's a whole thingvirtual void pop(SoState *state, const SoElement *prevTopElement)β also a whole thing
πΈ Public Member Functions inherited from SoInt32Element
virtual SbBool matches(const SoElement *element) constvirtual SoElement * copyMatchInfo(void) constvirtual void print(FILE *file) const
π Public Member Functions inherited from SoElement
const SoType getTypeId(void) constint getStackIndex(void) constvoid setDepth(const int depth)int getDepth(void) constvirtual ~SoElement()
β¨ Static Public Member Functions
static SoType getClassTypeId(void)static int getClassStackIndex(void)static void * createInstance(void)static void initClass(void)
π
Static Public Member Functions inherited from SoDrawStyleElement
static SoType getClassTypeId(void)static int getClassStackIndex(void)static void * createInstance(void)static void initClass(void)static void set(SoState *const state, SoNode *const node, const Style style)β FIXME: write doc.static void set(SoState *const state, const Style style)β FIXME: write doc.static Style get(SoState *const state)β FIXME: write doc.static Style getDefault()β FIXME: write doc.
π«Ά Static Public Member Functions inherited from SoInt32Element
static SoType getClassTypeId(void)static int getClassStackIndex(void)static void initClass(void)static void set(const int index, SoState *const state, SoNode *const node, const int32_t value)static void set(const int index, SoState *const state, const int32_t value)static int32_t get(const int index, SoState *const 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 Member Functions
virtual ~SoGLDrawStyleElement()virtual void setElt(int32_t style)
π Protected Member Functions inherited from SoDrawStyleElement
virtual ~SoDrawStyleElement()
β Protected Member Functions inherited from SoInt32Element
virtual ~SoInt32Element()
π Protected Member Functions inherited from SoElement
SoElement(void)void capture(SoState *const state) constvirtual void captureThis(SoState *state) constvoid setTypeId(const SoType typeId)void setStackIndex(const int index)SoElement * getNextInStack(void) constSoElement * getNextFree(void) const
π₯ Additional Inherited Members π₯
π Public Types inherited from SoDrawStyleElement
enum Style { FILLED, LINES, POINTS, INVISIBLE }
four moods, pick your fighter β¨
π 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)
πΈ Protected Attributes inherited from SoInt32Element
int32_t data
π¦ Protected Attributes inherited from SoElement
SoType typeIdint stackIndexint depth
β¨ Static Protected Attributes inherited from SoElement
static int classStackIndexstatic SoTypeList * stackToType
π Detailed Description π
The SoGLDrawStyleElement updates the current draw style in OpenGL. that's it, that's the description, she said what she said π«‘
π Constructor & Destructor Documentation π
π SoGLDrawStyleElement::~SoGLDrawStyleElement(void) [protected], [virtual]
Destructor. she's packing up and leaving the function, no drama, no notes. bye bestie π
π Member Function Documentation π
π SoType SoGLDrawStyleElement::getClassTypeId(void) [static]
This static method returns the SoType object associated with objects of this class. it's the "who even are you" of the type system, and the answer is a SoType πͺͺ
πΈ int SoGLDrawStyleElement::getClassStackIndex(void) [static]
This static method returns the state stack index for the class. basically it tells you where in the stack she's parked β¨
π
void * SoGLDrawStyleElement::createInstance(void) [static]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. (translation: not for you, bestie, this is library business π)
Creates a new instance of the class type corresponding to the SoType object. new instance just dropped π
β void SoGLDrawStyleElement::initClass(void) [static]
Initialize relevant common data for all instances, like the type system. group project setup, but make it cute π
π void SoGLDrawStyleElement::init(SoState * state) [virtual]
FIXME: write doc. (again, the official docs are just out here leaving us on read π)
Reimplemented from SoDrawStyleElement.
π¦ void SoGLDrawStyleElement::push(SoState * state) [virtual]
okay so this one actually has lore. This method is called every time a new element is required in one of the stacks. This happens when a writable element is requested, using SoState::getElement() or indirectly SoElement::getElement(), and the depth of the current element is less than the state depth.
Override this method if your element needs to copy data from the previous top of stack. The push() method is called on the new element, and the previous element can be found using SoElement::getNextInStack().
Reimplemented from SoElement.
lowkey: if you're subclassing and you need the old top-of-stack data, this is your moment. don't skip it. π
π void SoGLDrawStyleElement::pop(SoState * state, const SoElement * prevTopElement) [virtual]
This method is called when the state is popped, and the depth of the element is bigger than the current state depth. pop() is called on the new top of stack, and a pointer to the previous top of stack is passed in prevTopElement.
Override this method if you need to copy some state information from the previous top of stack.
Reimplemented from SoElement. she pops off, literally π«Ά
β¨ void SoGLDrawStyleElement::setElt(int32_t value) [protected], [virtual]
Set element value. short and sweet, she said it in four words and left. iconic π
Reimplemented from SoInt32Element.
π Author π
Generated automatically by Doxygen for Coin from the source code. so nobody hand-wrote this, a robot did it, and honestly? the robot ate π€β¨
okay that's the whole page bestie, you're welcome, go forth and update those draw styles responsibly. mwah π
this was Version 4.0.10, dated Thu Jun 25 2026 00:00:00, and it's page SoGLDrawStyleElement(3) of the Coin manual β no cap, that's the receipts, bookmark her πΈππ¦
π¦ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms