Class SoEnvironmentElement


  • public class SoEnvironmentElement
    extends SoReplacedElement
    Stores the current environment. This element stores the current environment.
    See Also:
    SoEnvironment
    • Method Detail

      • 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
        public static int getClassStackIndex()
        Deprecated.
        As of Open Inventor 9300. 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.