public class LightNode extends BaseNode implements ILightNode
Constructor and Description |
---|
LightNode() |
Modifier and Type | Method and Description |
---|---|
float[] |
getAmbient() |
float[] |
getDiffuse() |
<T extends IBaseNode> |
getNode(java.lang.Class<T> nodeType,
java.lang.String property,
java.lang.String value)
Fetch the first node in the child structure by a depth first search that
corresponds to the given NodeType and fulfills the property constraint.
|
NodeType |
getNodeType() |
float[] |
getSpecular() |
void |
setAmbient(float[] ambient) |
void |
setDiffuse(float[] diffuse) |
void |
setSpecular(float[] specular) |
java.lang.String |
toString() |
void |
update(IBaseNode other) |
addChildNode, clone, getChildren, getParent, setParent, structurallyEquals
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, getChildren, getParent, setParent, structurallyEquals
public NodeType getNodeType()
getNodeType
in interface IBaseNode
getNodeType
in class BaseNode
public float[] getDiffuse()
getDiffuse
in interface ILightNode
public float[] getAmbient()
getAmbient
in interface ILightNode
public float[] getSpecular()
getSpecular
in interface ILightNode
public void setDiffuse(float[] diffuse)
public void setAmbient(float[] ambient)
public void setSpecular(float[] specular)
public void update(IBaseNode other)
public <T extends IBaseNode> T getNode(java.lang.Class<T> nodeType, java.lang.String property, java.lang.String value)
IBaseNode
getNode
in interface IBaseNode
getNode
in class BaseNode
T
- - the intended node typenodeType
- - the intended node typeproperty
- - a property of the node that should be checked or null if
no check should be performedvalue
- - the value which the specified property should contain