SoLineWidthElement(3)

πŸ“¦ version 3.1.3, in fedora 43, fedora 44

✨ 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) const
  • virtual SoElement * copyMatchInfo (void) const
  • virtual void print (FILE *file) const
  • virtual void setElt (float value)

πŸ’– Public Member Functions inherited from SoElement πŸ’–

  • const SoType getTypeId (void) const
  • int getStackIndex (void) const
  • virtual void push (SoState *state)
  • virtual void pop (SoState *state, const SoElement *prevTopElement)
  • 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 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) 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 πŸ’–

πŸ’œ 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 typeId
  • int stackIndex
  • int depth

πŸ’œ Static Protected Attributes inherited from SoElement πŸ’œ

  • static int classStackIndex
  • static 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