1 #ifndef COIN_SOENVIRONMENTELEMENT_H 2 #define COIN_SOENVIRONMENTELEMENT_H 36 #include <Inventor/elements/SoReplacedElement.h> 37 #include <Inventor/SbColor.h> 44 static void initClass(
void);
60 const float ambientIntensity,
const SbColor & ambientColor,
61 const SbVec3f & attenuation,
const int32_t fogType,
62 const SbColor & fogColor,
const float fogVisibility,
63 const float fogStart = 0.0f);
64 static void get(
SoState *
const state,
65 float & ambientIntensity,
SbColor & ambientColor,
66 SbVec3f & attenuation, int32_t & fogType,
67 SbColor & fogColor,
float & fogVisibility,
70 static float getAmbientIntensity(
SoState *
const state);
71 static float getFogVisibility(
SoState *
const state);
75 static int32_t getFogType(
SoState *
const state);
77 static void getDefault(
float & ambientIntensity,
79 int32_t & fogType,
SbColor & fogColor,
80 float & fogVisibility,
float & fogNear);
82 virtual void print(FILE * file)
const;
86 virtual void setElt(
SoState *
const state,
87 const float ambientIntensity,
90 const int32_t fogType,
92 const float fogVisibility,
104 #endif // !COIN_SOENVIRONMENTELEMENT_H The SbColor class contains the red, green and blue components which make up a color value...
Definition: SbColor.h:39
float fogStart
Definition: SoEnvironmentElement.h:101
FogType
Definition: SoEnvironmentElement.h:50
The SoEnvironmentElement class is yet to be documented.
Definition: SoEnvironmentElement.h:39
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:56
float fogVisibility
Definition: SoEnvironmentElement.h:100
The SoState class manages the Coin scenegraph traversal state data.
Definition: SoState.h:44
virtual void init(SoState *state)
Definition: SoReplacedElement.cpp:89
SbColor fogColor
Definition: SoEnvironmentElement.h:99
SbColor ambientColor
Definition: SoEnvironmentElement.h:96
int32_t fogType
Definition: SoEnvironmentElement.h:98
The SoReplacedElement class is an abstract element superclass.
Definition: SoReplacedElement.h:39
virtual void print(FILE *file) const
Definition: SoReplacedElement.cpp:118
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition: SbVec3f.h:51
float ambientIntensity
Definition: SoEnvironmentElement.h:95
SbVec3f attenuation
Definition: SoEnvironmentElement.h:97