SoGLLinePatternElement(3)
β¨ SoGLLinePatternElement β¨
okay so this is the manual page for SoGLLinePatternElement (part of Coin, the manual is literally called SoGLLinePatternElement(3)), and bestie, if you've ever wanted to mess with how OpenGL draws its little dashed lines, you are SO in the right place π
πΈ NAME πΈ
SoGLLinePatternElement β the class that changes the line stipple pattern of the OpenGL render state. no cap, that's the whole job π«Ά
β¨ SYNOPSIS β¨
#include <Inventor/elements/SoGLLinePatternElement.h>
Inherits SoLinePatternElement.
π Public Member Functions
virtual void init (SoState *state)
virtual void push (SoState *state)
virtual void pop (SoState *state, const SoElement *prevTopElement)
π Public Member Functions inherited from SoInt32Element
virtual SbBool matches (const SoElement *element) const
virtual SoElement * copyMatchInfo (void) const
virtual void print (FILE *file) const
π Public Member Functions inherited from SoElement
const SoType getTypeId (void) const
int getStackIndex (void) const
void setDepth (const int depth)
int getDepth (void) const
virtual ~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 SoLinePatternElement
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 int32_t
pattern, const int32_t factor=1)
static void set (SoState *const state, const int32_t pattern, const
int32_t factor=1)
static int32_t get (SoState *const state)
static int32_t getDefault ()
static int32_t getScaleFactor (SoState *const state)
static int32_t getDefaultScaleFactor ()
π¦ 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 ~SoGLLinePatternElement ()
virtual void setElt (int32_t pattern)
virtual void setElt (int32_t pattern)β called whenever the element value is set. it triggers the GL update, so like, that's the moment everything actually happens π₯
π Protected Member Functions inherited from SoLinePatternElement
virtual ~SoLinePatternElement ()
π Protected Member Functions inherited from SoInt32Element
virtual ~SoInt32Element ()
π 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
π Additional Inherited Members
Public Types inherited from SoLinePatternElement
enum Patterns { CONTINUOUS = 0xFFFF }
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 typeId
int stackIndex
int depth
Static Protected Attributes inherited from SoElement
static int classStackIndex
static SoTypeList * stackToType
π Detailed Description π
The SoGLLinePatternElement class changes the line stipple pattern of the OpenGL render state. that's the whole vibe check π«
So here's the tea: when the scene graph wants to change the stipple pattern while it's rendering OpenGL line primitives, the request comes through this element. and then this element forwards it along to the appropriate native OpenGL call. it's giving middle-manager energy but make it β¨graphics pipelineβ¨ β literally just passing the message along, and doing it flawlessly π«Ά
π Constructor & Destructor Documentation π
SoGLLinePatternElement::~SoGLLinePatternElement (void ) [protected], [virtual]
Destructor. yeah. it destructs. iconic behaviour honestly π
π₯ Member Function Documentation π₯
SoType SoGLLinePatternElement::getClassTypeId (void ) [static]
This static method returns the SoType object associated with objects of this class. your lil class ID card, basically πͺͺ
int SoGLLinePatternElement::getClassStackIndex (void ) [static]
This static method returns the state stack index for the class. the spot in the stack where this class hangs out π
void * SoGLLinePatternElement::createInstance (void ) [static]
okay so 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 for you unless you're doing library-level stuff π
Creates a new instance of the class type corresponding to the SoType object. β¨
void SoGLLinePatternElement::initClass (void ) [static]
Initialize relevant common data for all instances, like the type system. the "get everything set up before the party starts" moment π
void SoGLLinePatternElement::init (SoState * state) [virtual]
Initializes element in state to default value. defaults are the moment, fr fr.
Reimplemented from SoLinePatternElement.
void SoGLLinePatternElement::push (SoState * state) [virtual]
Creates new element in stack. new element, who dis π
Reimplemented from SoElement.
void SoGLLinePatternElement::pop (SoState * state, const SoElement * prevTopElement) [virtual]
Removes element from stack. bye bestie, you served your purpose πΈ
Reimplemented from SoElement.
void SoGLLinePatternElement::setElt (int32_t pattern) [protected], [virtual]
Called whenever element value is set. Triggers GL update. this is the main character function right here β the actual "okay now tell OpenGL" moment π
Reimplemented from SoInt32Element.
π Author π
Generated automatically by Doxygen for Coin from the source code. not a human, just a robot doing its lil documentation thing π€π
and that's the whole page, bestie. now go forth and stipple responsibly β¨
Version 4.0.10 β dated Thu Jun 25 2026 00:00:00, and that's the SoGLLinePatternElement(3) manual page, signing off ππ¦π
π¦ 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