Class SoEnvironmentElement
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.elements.SoElement
com.openinventor.inventor.elements.SoReplacedElement
com.openinventor.inventor.elements.SoEnvironmentElement
Stores the current environment.
This element stores the current environment.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
EnvironmentParameters
packages all the different environment parameters.static enum
Fog type.Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Method Summary
Modifier and TypeMethodDescriptionGets the current environment in the state.static SbColor
getAmbientColor
(SoState state) Gets the ambient color.static float
getAmbientIntensity
(SoState state) Gets the ambient intensity.static boolean
getAmbientOcclusion
(SoState state) Gets the ambient occlusion state (true : activated, otherwise deactivated)static int
Deprecated.As of Open Inventor 9.3.0.0.static SbVec3f
getLightAttenuation
(SoState state) Gets the light attenuation.void
Pushes element.static void
set
(SoState state, SoNode node, SoEnvironmentElement.EnvironmentParameters envParams) Sets the current environment in the state.Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, pop
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
get
Gets the current environment in the state. -
set
public static void set(SoState state, SoNode node, SoEnvironmentElement.EnvironmentParameters envParams) Sets the current environment in the state. -
push
Pushes element. Allows for side effects to occur. Default methods do nothing. -
getClassStackIndex
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] * -
getLightAttenuation
Gets the light attenuation. -
getAmbientOcclusion
Gets the ambient occlusion state (true : activated, otherwise deactivated) -
getAmbientIntensity
Gets the ambient intensity. -
getAmbientColor
Gets the ambient color.
-