public class PointLight extends ChartNode3D implements Serializable
A point light source is at a fixed point in space and radiates light equally in all directions away from the light source. The light's position is defined by the attribute "Position".
The light's position is in a coordinate system in which the default viewport is the cube [-1,1] by [-1,1] by [-1,1].
AXIS_TITLE_AT_END, AXIS_TITLE_PARALLEL, DATA_TYPE_LINE, DATA_TYPE_MARKER, DATA_TYPE_PICTURE, DATA_TYPE_TUBE, MARKER_TYPE_CUBE, MARKER_TYPE_CUSTOM, MARKER_TYPE_PLUS, MARKER_TYPE_SIMPLE_CUBE, MARKER_TYPE_SIMPLE_PLUS, MARKER_TYPE_SIMPLE_TETRAHEDRON, MARKER_TYPE_SPHERE, MARKER_TYPE_TETRAHEDRON
AUTOSCALE_DATA, AUTOSCALE_DENSITY, AUTOSCALE_NUMBER, AUTOSCALE_OFF, AUTOSCALE_WINDOW, AXIS_X, AXIS_Y, AXIS_Z, LABEL_TYPE_NONE, LABEL_TYPE_TITLE, LABEL_TYPE_X, LABEL_TYPE_Y, LABEL_TYPE_Z, TRANSFORM_CUSTOM, TRANSFORM_LINEAR, TRANSFORM_LOG
Constructor and Description |
---|
PointLight(Chart3D parent)
Creates a point light source at the origin.
|
PointLight(Chart3D parent,
double x,
double y,
double z)
Creates a point light at a specified position.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addToSceneGraph(Group parent)
Called to add this object to the scene graph.
|
Point3f |
getPosition()
Returns the value of the "Position" attribute.
|
void |
setPosition(double x,
double y,
double z)
Sets the value of the "Point" attribute to a light point.
|
void |
setPosition(Point3f position)
Sets the value of the "Point" attribute to a light point.
|
getAxisTitlePosition, getBoundingSphere, getChildren, getColorFunction, getConcatenatedViewport, getDataType, getLightingEnabled, getMarkerPulsingCycle, getMarkerPulsingCycleOffset, getMarkerPulsingMaximumScale, getMarkerPulsingMinimumScale, getMarkerRotatingAxis, getMarkerRotatingCycle, getMarkerRotatingCycleOffset, getMarkerType, getMaterial, getParent, getTitle, getViewport, getVirtualUniverse, getZ, setAxisTitlePosition, setBoundingSphere, setColorFunction, setDataType, setLightingEnabled, setMarkerPulsingCycle, setMarkerPulsingCycleOffset, setMarkerPulsingMaximumScale, setMarkerPulsingMinimumScale, setMarkerRotatingAxis, setMarkerRotatingCycle, setMarkerRotatingCycleOffset, setMarkerType, setMaterial, setTitle, setViewport, setViewport, setZ
clone, clone, clone, clone, getAbstractParent, getAttribute, getAutoscaleInput, getAutoscaleMinimumTimeInterval, getAutoscaleOutput, getBooleanAttribute, getChildList, getColorAttribute, getCustomTransform, getDensity, getDoubleAttribute, getFillColor, getFont, getFontName, getFontSize, getFontStyle, getImage, getIntegerAttribute, getLabelType, getLightColor, getLineColor, getLineWidth, getLocale, getMarkerColor, getMarkerSize, getName, getNumber, getPaint, getStringAttribute, getTextColor, getTextFormat, getTickLength, getTransform, getX, getY, isAncestorOf, isAttributeSet, isAttributeSetAtThisNode, isBitSet, parseColor, remove, setAttribute, setAutoscaleInput, setAutoscaleMinimumTimeInterval, setAutoscaleOutput, setCustomTransform, setDensity, setFillColor, setFillColor, setFont, setFontName, setFontSize, setFontStyle, setImage, setLabelType, setLightColor, setLightColor, setLineColor, setLineColor, setLineWidth, setLocale, setMarkerColor, setMarkerColor, setMarkerSize, setName, setNumber, setPaint, setTextColor, setTextColor, setTextFormat, setTextFormat, setTickLength, setTransform, setX, setY, toString
public PointLight(Chart3D parent)
parent
- is the Chart3D
parent of this node.public PointLight(Chart3D parent, double x, double y, double z)
parent
- is the Chart3D
parent of this node.x
- is the x-component of the position.y
- is the y-component of the position.z
- is the z-component of the position.protected void addToSceneGraph(Group parent)
ChartNode3D
addToSceneGraph
in class ChartNode3D
parent
- is the node in the scene graph at which this
object is to be added.public Point3f getPosition()
Point3f
value of the "Position" attribute, if defined.
Otherwise, (0, 0, 0) is returned.public void setPosition(double x, double y, double z)
public void setPosition(Point3f position)
position
- is the location of the light.Copyright © 1970-2015 Rogue Wave Software
Built October 13 2015.