APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.javafx.sg.prism

public Class NGPointLight

extends NGLightBase
Class Inheritance
Known Direct Subclasses
com.sun.javafx.sg.prism.NGSpotLight
Imports
javafx.geometry.Point3D

The peer of the PointLight class. Holds the default values of PointLight's properties and updates the visuals via NGNode#visualsChanged when one of the current values changes. The peer receives its changes by PointLight.doUpdatePeer calls.

Field Summary

Modifier and TypeField and Description
private float
private static final float
DEFAULT_CA

Constant attenuation factor default value

private static final float
DEFAULT_LA

Linear attenuation factor default value

private static final float
DEFAULT_MAX_RANGE

Max range default value

private static final float
DEFAULT_QA

Quadratic attenuation factor default value

private float
private float
private float
private static final Point3D
SIMULATED_DIRECTION

The direction of a SpotLight that simulates a PointLight.

private static final float
SIMULATED_FALLOFF

The falloff value of a SpotLight that simulates a PointLight

private static final float
SIMULATED_INNER_ANGLE

The inner angle value of a SpotLight that simulates a PointLight

private static final float
SIMULATED_OUTER_ANGLE

The outer angle value of a SpotLight that simulates a PointLight

Inherited from com.sun.javafx.sg.prism.NGLightBase:
excludedNodesscopedNodes

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public float
public static float
public static float
public static float
public static float
public float
public float
public float
public static Point3D
public static float
public static float
public static float
public void
setCa(float ca)

public void
setLa(float la)

public void
setMaxRange(float maxRange)

public void
setQa(float qa)

Inherited from com.sun.javafx.sg.prism.NGLightBase:
affectsdoRendergetColorgetWorldTransformhasOverlappingContentsisLightOnreleaserenderContentsetColorsetExclusionScopesetLightOnsetScopesetTransformMatrixsetWorldTransform

Field Detail

caback to summary
private float ca
DEFAULT_CAback to summary
private static final float DEFAULT_CA

Constant attenuation factor default value

DEFAULT_LAback to summary
private static final float DEFAULT_LA

Linear attenuation factor default value

DEFAULT_MAX_RANGEback to summary
private static final float DEFAULT_MAX_RANGE

Max range default value

DEFAULT_QAback to summary
private static final float DEFAULT_QA

Quadratic attenuation factor default value

laback to summary
private float la
maxRangeback to summary
private float maxRange
qaback to summary
private float qa
SIMULATED_DIRECTIONback to summary
private static final Point3D SIMULATED_DIRECTION

The direction of a SpotLight that simulates a PointLight. Since the light radiates equally in all directions, this value is meaningless.

SIMULATED_FALLOFFback to summary
private static final float SIMULATED_FALLOFF

The falloff value of a SpotLight that simulates a PointLight

SIMULATED_INNER_ANGLEback to summary
private static final float SIMULATED_INNER_ANGLE

The inner angle value of a SpotLight that simulates a PointLight

SIMULATED_OUTER_ANGLEback to summary
private static final float SIMULATED_OUTER_ANGLE

The outer angle value of a SpotLight that simulates a PointLight

Constructor Detail

NGPointLightback to summary
public NGPointLight()

Method Detail

getCaback to summary
public float getCa()
getDefaultCaback to summary
public static float getDefaultCa()
getDefaultLaback to summary
public static float getDefaultLa()
getDefaultMaxRangeback to summary
public static float getDefaultMaxRange()
getDefaultQaback to summary
public static float getDefaultQa()
getLaback to summary
public float getLa()
getMaxRangeback to summary
public float getMaxRange()
getQaback to summary
public float getQa()
getSimulatedDirectionback to summary
public static Point3D getSimulatedDirection()
getSimulatedFalloffback to summary
public static float getSimulatedFalloff()
getSimulatedInnerAngleback to summary
public static float getSimulatedInnerAngle()
getSimulatedOuterAngleback to summary
public static float getSimulatedOuterAngle()
setCaback to summary
public void setCa(float ca)
setLaback to summary
public void setLa(float la)
setMaxRangeback to summary
public void setMaxRange(float maxRange)
setQaback to summary
public void setQa(float qa)