Class SoEnvironmentElement


public class SoEnvironmentElement extends SoReplacedElement
Stores the current environment. This element stores the current environment.
See Also:
  • 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

      public void push(SoState state)
      Pushes element. Allows for side effects to occur. Default methods do nothing.
      Overrides:
      push in class SoElement
    • 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.
    • getAmbientColor

      public static SbColor getAmbientColor(SoState state)
      Gets the ambient color.