Class SoEnvironmentElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoReplacedElement
-
- com.openinventor.inventor.elements.SoEnvironmentElement
-
public class SoEnvironmentElement extends SoReplacedElement
Stores the current environment. This element stores the current environment.- See Also:
SoEnvironment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoEnvironmentElement.EnvironmentParameters
EnvironmentParameters
packages all the different environment parameters.static class
SoEnvironmentElement.FogTypes
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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SoEnvironmentElement.EnvironmentParameters
get(SoState state)
Gets 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
getClassStackIndex()
Deprecated.As of Open Inventor 9.3.0.0.static SbVec3f
getLightAttenuation(SoState state)
Gets the light attenuation.void
push(SoState state)
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 Detail
-
get
public static SoEnvironmentElement.EnvironmentParameters get(SoState state)
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
public void push(SoState state)
Pushes element. Allows for side effects to occur. Default methods do nothing.
-
getClassStackIndex
@Deprecated(since="9.3.0.0") public static int getClassStackIndex()
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] *
-
getLightAttenuation
public static SbVec3f getLightAttenuation(SoState state)
Gets the light attenuation.
-
getAmbientOcclusion
public static boolean getAmbientOcclusion(SoState state)
Gets the ambient occlusion state (true : activated, otherwise deactivated)
-
getAmbientIntensity
public static float getAmbientIntensity(SoState state)
Gets the ambient intensity.
-
-