Class SoLightAttenuationElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoReplacedElement
-
- com.openinventor.inventor.elements.SoLightAttenuationElement
-
public class SoLightAttenuationElement extends SoReplacedElement
Stores the light attenuation(s) of the current environment. This element stores the light attenuation(s) of the current environment. This used to set up subsequent light sources. The attenuation is stored as anSbVec3f
, where the first component of the vector is the quadratic term of the attenuation, the second is the linear term, and the third is the constant.- See Also:
SoEnvironment
-
-
Nested Class Summary
-
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 Concrete Methods Deprecated Methods Modifier and Type Method Description static SbVec3f
get(SoState state)
Returns the current light attenuation from the state.static int
getClassStackIndex()
Deprecated.As of Open Inventor 9300.static SbVec3f
getDefault()
Returns the default light attenuation.static void
set(SoState state, SoNode node, SbVec3f attenuation)
Sets the current light attenuation(s).-
Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, pop, push
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
getClassStackIndex
@Deprecated public static int getClassStackIndex()
Deprecated.As of Open Inventor 9300. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] *
-
getDefault
public static SbVec3f getDefault()
Returns the default light attenuation.
-
-