SoLineWidthElement(3)
π NAME π
SoLineWidthElement β bestie, this is the class that changes the line width setting of the render state. That's it, that's the whole vibe. β¨
(This one lives in the Coin manual, page SoLineWidthElement(3), iykyk.)
π 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 π
okay so. The SoLineWidthElement class changes the line width setting of the render state. Main character behaviour, honestly.
Requests from the scene graph to change the line width when rendering line primitives will be made through this element, which forwards it to the appropriate native call in the underlying rendering library. So it's like the group chat relay β scene graph slides in, element passes the message along to the native layer. π«Ά
Subsequent nodes rendering line primitives will use the width setting (for instance SoLineSet nodes). So whatever you set, that's the vibe everyone downstream is gonna match. no cap.
π¦ Constructor & Destructor Documentation π¦
SoLineWidthElement::~SoLineWidthElement () [protected], [virtual]
Destructor. She's leaving the party, say bye bestie. π
β Member Function Documentation β
SoType SoLineWidthElement::getClassTypeId (void ) [static]
This static method returns the SoType object associated with objects of this class. That's your little class ID card, periodt.
int SoLineWidthElement::getClassStackIndex (void ) [static]
This static method returns the state stack index for the class. It's giving "where in the stack do I live". π
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.
Creates a new instance of the class type corresponding to the SoType object. Internal business only, bestie β not for you unless you're doing deep library stuff.
void SoLineWidthElement::initClass (void ) [static]
Initialize relevant common data for all instances, like the type system. Gotta set up the whole friend group before the party starts. π
void SoLineWidthElement::init (SoState * state) [virtual]
Initializes the element to its default value. The default value is 0.0.
Reimplemented from SoFloatElement.
Reimplemented in SoGLLineWidthElement.
lowkey important: default is 0.0, not some other number. Don't come for me, that's literally what it says. π
void SoLineWidthElement::set (SoState *const state, SoNode *const node, const float lineWidth) [static]
Set up the current state's lineWidth value. Yes, with the node. Iconic.
void SoLineWidthElement::set (SoState *const state, const float lineWidth) [static]
Set up the current state's lineWidth value. Same energy, no node this time. Slay.
float SoLineWidthElement::get (SoState *const state) [static]
Returns the current line width value. Reading the room, literally. π
float SoLineWidthElement::getDefault (void ) [static]
Returns the default line width value if no value has been set explicitly. So if nobody spoke up in the group chat, this is what you get. π
π Author π
Generated automatically by Doxygen for Coin from the source code. Not a human author, just the robot doing its thing. π€β¨
and that's the whole page, bestie!! this was Version 4.0.10, dated Thu Jun 25 2026 00:00:00, page SoLineWidthElement(3). go forth and set those line widths. π
πΈπ¦
π¦ 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