public class LightComponent extends ModelComponentBase
ModelComponent.NavpanelVisibility
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
Constructor and Description |
---|
LightComponent(Light light) |
Modifier and Type | Method and Description |
---|---|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
java.awt.Color |
getAmbient() |
Vector3d |
getAttenuation() |
java.awt.Color |
getDiffuse() |
Vector3d |
getDirection() |
int |
getId() |
Light |
getLight() |
Light.LightSpace |
getLightSpace() |
Vector3d |
getPosition() |
java.awt.Color |
getSpecular() |
double |
getSpotCutoff() |
double |
getSpotExponent() |
Light.LightType |
getType() |
boolean |
isEnabled() |
void |
setAmbient(java.awt.Color color) |
void |
setAttenuation(Vector3d a) |
void |
setDiffuse(java.awt.Color color) |
void |
setDirection(Vector3d dir) |
void |
setEnabled(boolean set) |
void |
setLightSpace(Light.LightSpace space) |
void |
setPosition(Vector3d pos) |
void |
setSpecular(java.awt.Color color) |
void |
setSpotCutoff(double cs) |
void |
setSpotExponent(double e) |
void |
setType(Light.LightType type) |
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, copy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, hasState, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferences, write
public LightComponent(Light light)
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class ModelComponentBase
public Light getLight()
public void setAmbient(java.awt.Color color)
public java.awt.Color getAmbient()
public void setDiffuse(java.awt.Color color)
public java.awt.Color getDiffuse()
public void setSpecular(java.awt.Color color)
public java.awt.Color getSpecular()
public Light.LightSpace getLightSpace()
public void setLightSpace(Light.LightSpace space)
public void setPosition(Vector3d pos)
public Vector3d getPosition()
public void setDirection(Vector3d dir)
public Vector3d getDirection()
public Vector3d getAttenuation()
public void setAttenuation(Vector3d a)
public Light.LightType getType()
public void setType(Light.LightType type)
public double getSpotCutoff()
public void setSpotCutoff(double cs)
public double getSpotExponent()
public void setSpotExponent(double e)
public int getId()
public boolean isEnabled()
public void setEnabled(boolean set)