SoGLEnvironmentElement(3)

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

πŸ’– NAME πŸ’–

SoGLEnvironmentElement β€” okay so bestie, this class is literally the one that sets GL fog and all that environment stuff. That's the whole vibe. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <Inventor/elements/SoGLEnvironmentElement.h>

It inherits from SoEnvironmentElement, so it's getting all that family energy. πŸ‘‘

✨ Public Member Functions ✨

  • virtual void init (SoState *state) β€” sets this element up.
  • virtual void pop (SoState *state, const SoElement *prevTopElement) β€” the pop girlie of the state stack.

🌸 Public Member Functions inherited from SoEnvironmentElement

  • virtual void print (FILE *file) const β€” FIXME: write doc.

πŸŽ€ Public Member Functions inherited from SoReplacedElement

  • virtual SbBool matches (const SoElement *element) const
  • virtual SoElement * copyMatchInfo () const
  • SbUniqueId getNodeId () const

πŸ’œ Public Member Functions inherited from SoElement

  • const SoType getTypeId (void) const
  • int getStackIndex (void) const
  • virtual void push (SoState *state)
  • 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 SoEnvironmentElement

  • 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 ambientIntensity, const SbColor &ambientColor, const SbVec3f &attenuation, const int32_t fogType, const SbColor &fogColor, const float fogVisibility, const float fogStart=0.0f) β€” FIXME: write doc.
  • static void get (SoState *const state, float &ambientIntensity, SbColor &ambientColor, SbVec3f &attenuation, int32_t &fogType, SbColor &fogColor, float &fogVisibility, float &fogStart) β€” FIXME: write doc.
  • static float getAmbientIntensity (SoState *const state) β€” FIXME: write doc.
  • static float getFogVisibility (SoState *const state) β€” FIXME: write doc.
  • static const SbVec3f & getLightAttenuation (SoState *const state) β€” FIXME: write doc.
  • static const SbColor & getAmbientColor (SoState *const state) β€” FIXME: write doc.
  • static const SbColor & getFogColor (SoState *const state) β€” FIXME: write doc.
  • static int32_t getFogType (SoState *const state) β€” FIXME: write doc.
  • static void getDefault (float &ambientIntensity, SbColor &ambientColor, SbVec3f &attenuation, int32_t &fogType, SbColor &fogColor, float &fogVisibility, float &fogNear) β€” FIXME: write doc.

🧚 Static Public Member Functions inherited from SoReplacedElement

  • static SoType getClassTypeId (void)
  • static int getClassStackIndex (void)
  • static void initClass (void)

🌈 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 ~SoGLEnvironmentElement ()
  • virtual void setElt (SoState *const state, const float ambientIntensity, const SbColor &ambientColor, const SbVec3f &attenuation, const int32_t fogType, const SbColor &fogColor, const float fogVisibility, const float fogStart) β€” FIXME: doc.

🌸 Protected Member Functions inherited from SoEnvironmentElement

  • virtual ~SoEnvironmentElement ()

πŸŽ€ Protected Member Functions inherited from SoReplacedElement

  • virtual ~SoReplacedElement ()

✨ 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 SoEnvironmentElement
    • enum FogType { NONE, HAZE, FOG, SMOKE }
  • Static Protected Member Functions inherited from SoReplacedElement
    • static SoElement * getElement (SoState *const state, const int stackIndex, SoNode *const node)
  • 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 SoEnvironmentElement
    • float ambientIntensity
    • SbColor ambientColor
    • SbVec3f attenuation
    • int32_t fogType
    • SbColor fogColor
    • float fogVisibility
    • float fogStart
  • Protected Attributes inherited from SoReplacedElement
    • SbUniqueId nodeId
  • 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 SoGLEnvironmentElement class is for setting GL fog etc. That's it, that's the tea. 🍡


πŸ’… Constructor & Destructor Documentation πŸ’…

SoGLEnvironmentElement::~SoGLEnvironmentElement () [protected], [virtual]

Destructor. She's done, she's logging off. 😭


πŸ‘‘ Member Function Documentation πŸ‘‘

SoType SoGLEnvironmentElement::getClassTypeId (void ) [static]

This static method returns the SoType object associated with objects of this class. Iconic behavior fr fr. ✨

int SoGLEnvironmentElement::getClassStackIndex (void ) [static]

This static method returns the state stack index for the class. It's giving "here's your spot in the stack, bestie". πŸŽ€

void * SoGLEnvironmentElement::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. πŸ¦‹

void SoGLEnvironmentElement::initClass (void ) [static]

Initialize relevant common data for all instances, like the type system. Setting the whole squad up before the party. 🌈

void SoGLEnvironmentElement::init (SoState * state) [virtual]

Initializes the element to its default value. The defaults for the environment settings are, and you're gonna wanna screenshot this:

  • SoEnvironmentElement::ambientIntensity = 0.2
  • SoEnvironmentElement::ambientColor = SbColor(1.0, 1.0, 1.0)
  • SoEnvironmentElement::attenuation = SbVec3f(0.0, 0.0, 1.0)
  • SoEnvironmentElement::fogType = SoEnvironmentElement::NONE
  • SoEnvironmentElement::fogColor = SbColor(1.0, 1.0, 1.0)
  • SoEnvironmentElement::fogVisibility = 0.0
  • SoEnvironmentElement::fogStart = 0.0

Reimplemented from SoEnvironmentElement. πŸ’œ

void SoGLEnvironmentElement::pop (SoState * state, const SoElement * prevTopElement) [virtual]

This method is called when the state is popped, and the depth of the element is bigger than the current state depth. pop() is called on the new top of stack, and a pointer to the previous top of stack is passed in prevTopElement.

Override this method if you need to copy some state information from the previous top of stack. Lowkey the glow-up handoff of the state stack. 🫢

Reimplemented from SoElement.

void SoGLEnvironmentElement::setElt (SoState *const state, const float ambientIntensity, const SbColor & ambientColor, const SbVec3f & attenuation, const int32_t fogType, const SbColor & fogColor, const float fogVisibility, const float fogNear) [protected], [virtual]

FIXME: doc.

Reimplemented from SoEnvironmentElement.


🌟 Author 🌟

Generated automatically by Doxygen for Coin from the source code. (Not a human, just a very efficient little robot bestie. πŸ€–βœ¨)


Okay and that's the whole page, babe β€” this was SoGLEnvironmentElement(3) from the Coin manual, Version 4.0.10, dated Thu Jun 25 2026 00:00:00. Go forth and set your fog. Periodt. πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from