SoLineWidthElement(3)
β¨ NAME β¨
okay bestie, welcome to SoLineWidthElement(3) from the Library Functions Manual π the tea is: SoLineWidthElement β The SoLineWidthElement class changes the linewidth setting of the render state. it's giving render-state glow-up for your lines, periodt. π
π¦ SYNOPSIS π¦
#include <Inventor/elements/SoLineWidthElement.h>
Inherits SoFloatElement.
Inherited by SoGLLineWidthElement.
π Public Member Functions π
virtual void init (SoState *state)
π Public Member Functions inherited from SoFloatElement π
virtual SbBool matches (const SoElement *element) constvirtual SoElement * copyMatchInfo (void) constvirtual void print (FILE *file) constvirtual void setElt (float value)
π Public Member Functions inherited from SoElement π
const SoType getTypeId (void) constint getStackIndex (void) constvirtual void push (SoState *state)virtual void pop (SoState *state, const SoElement *prevTopElement)void 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 void set (SoState *const state, SoNode *const node, const float lineWidth)static void set (SoState *const state, const float lineWidth)static float get (SoState *const state)static float getDefault ()
π Static Public Member Functions inherited from SoFloatElement π
static SoType getClassTypeId (void)static int getClassStackIndex (void)static void initClass (void)static void set (const int stackIndex, SoState *const state, SoNode *const node, const float value)static void set (const int stackIndex, SoState *const state, const float value)static float get (const int stackIndex, 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 ~SoLineWidthElement ()
π Protected Member Functions inherited from SoFloatElement π
virtual ~SoFloatElement ()
π 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 π
π 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 SoFloatElement π
float data
π Protected Attributes inherited from SoElement π
SoType typeIdint stackIndexint depth
π Static Protected Attributes inherited from SoElement π
static int classStackIndexstatic SoTypeList * stackToType
π Detailed Description π
The SoLineWidthElement class changes the linewidth setting of the render state. no cap, that's its whole main character job.
When the scenegraph wants to change the linewidth while rendering line primitives, the request gets made through this element, and it forwards it to the appropriate native call in the underlying rendering library. lowkey iconic behavior.
Subsequent nodes rendering line primitives will use the width setting (for instance SoLineSet nodes). so yes, the vibe carries forward. β¨
π Constructor & Destructor Documentation π
SoLineWidthElement::~SoLineWidthElement () [protected], [virtual]
Destructor. just saying bye, protected and virtual style. π
β¨ Member Function Documentation β¨
void * SoLineWidthElement::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.
void SoLineWidthElement::init (SoState * state) [virtual]
This function initializes the element type in the given SoState. It is called for the first element of each enabled element type in SoState objects.
Reimplemented from SoFloatElement.
Reimplemented in SoGLLineWidthElement.
void SoLineWidthElement::set (SoState *const state, SoNode *const node, const float lineWidth) [static]
Set up the current state's lineWidth value.
void SoLineWidthElement::set (SoState *const state, const float lineWidth) [static]
Set up the current state's lineWidth value.
float SoLineWidthElement::get (SoState *const state) [static]
Returns the current line width value.
float SoLineWidthElement::getDefault (void ) [static]
Returns the default linewidth value if no value has been set explicitly.
π«Ά Author π«Ά
Generated automatically by Doxygen for Coin from the source code.
okay bestie, that's the whole page π it's from Coin, Version 3.1.3, and the manual page is SoLineWidthElement(3). stay slay, keep those line widths iconic β¨π
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms