SoGLLinePatternElement(3)

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

✨ 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