The SoGLEnvironmentElement class is for setting GL fog etc.
More...
#include <Inventor/elements/SoGLEnvironmentElement.h>
|
static SoType | getClassTypeId (void) |
|
static int | getClassStackIndex (void) |
|
static void * | createInstance (void) |
|
static void | initClass (void) |
|
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 SoType | getClassTypeId (void) |
|
static int | getClassStackIndex (void) |
|
static void | initClass (void) |
|
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) |
|
The SoGLEnvironmentElement class is for setting GL fog etc.
◆ ~SoGLEnvironmentElement()
SoGLEnvironmentElement::~SoGLEnvironmentElement |
( |
| ) |
|
|
protectedvirtual |
◆ getClassTypeId()
SoType SoGLEnvironmentElement::getClassTypeId |
( |
void |
| ) |
|
|
static |
This static method returns the SoType object associated with objects of this class.
◆ getClassStackIndex()
int SoGLEnvironmentElement::getClassStackIndex |
( |
void |
| ) |
|
|
static |
This static method returns the state stack index for the class.
◆ createInstance()
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.
◆ initClass()
void SoGLEnvironmentElement::initClass |
( |
void |
| ) |
|
|
static |
Initialize relevant common data for all instances, like the type system.
◆ init()
void SoGLEnvironmentElement::init |
( |
SoState * |
state | ) |
|
|
virtual |
◆ pop()
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.
Reimplemented from SoElement.
The documentation for this class was generated from the following files: