SoGLEnvironmentElement(3)
π 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) constvirtual SoElement * copyMatchInfo () constSbUniqueId getNodeId () const
π Public Member Functions inherited from SoElement
const SoType getTypeId (void) constint getStackIndex (void) constvirtual void push (SoState *state)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 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) 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 π«Ά
- Public Types inherited from
SoEnvironmentElementenum FogType { NONE, HAZE, FOG, SMOKE }
- Static Protected Member Functions inherited from
SoReplacedElementstatic SoElement * getElement (SoState *const state, const int stackIndex, SoNode *const node)
- Static Protected Member Functions inherited from
SoElementstatic 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
SoEnvironmentElementfloat ambientIntensitySbColor ambientColorSbVec3f attenuationint32_t fogTypeSbColor fogColorfloat fogVisibilityfloat fogStart
- Protected Attributes inherited from
SoReplacedElementSbUniqueId nodeId
- Protected Attributes inherited from
SoElementSoType typeIdint stackIndexint depth
- Static Protected Attributes inherited from
SoElementstatic int classStackIndexstatic 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.2SoEnvironmentElement::ambientColor=SbColor(1.0, 1.0, 1.0)SoEnvironmentElement::attenuation=SbVec3f(0.0, 0.0, 1.0)SoEnvironmentElement::fogType=SoEnvironmentElement::NONESoEnvironmentElement::fogColor=SbColor(1.0, 1.0, 1.0)SoEnvironmentElement::fogVisibility=0.0SoEnvironmentElement::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
- 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