|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hedgehog.HObject
com.hedgehog.x3d.nodes.X3DNode
com.hedgehog.x3d.nodes.X3DChildNode
com.hedgehog.x3d.lighting.X3DLightNode
com.hedgehog.x3d.lighting.DirectionalLightNode
public class DirectionalLightNode
Title: DirectionalLightNode - represents the X3D DirectionalLight node.
Description: Represents the X3D DirectionalLight node.
Copyright: Copyright (c) Hedgehog Software.
Company: Hedgehog Software.
| Field Summary | |
|---|---|
protected SFVec3f |
mDirection
Light direction vector. |
| Fields inherited from class com.hedgehog.x3d.lighting.X3DLightNode |
|---|
mAmbientIntensity, mColour, mIntensity, mOn |
| Fields inherited from class com.hedgehog.x3d.nodes.X3DNode |
|---|
mDefine, mMetadata |
| Fields inherited from class com.hedgehog.HObject |
|---|
mID, mName |
| Constructor Summary | |
|---|---|
DirectionalLightNode()
Default constructor. |
|
DirectionalLightNode(DirectionalLightNode object)
Copy constructor. |
|
DirectionalLightNode(SFFloat ambientIntensity,
SFColour colour,
SFFloat intensity,
SFBool on,
SFVec3f direction)
Constructor. |
|
DirectionalLightNode(X3DMetadataObject metadata)
Constructor. |
|
| Method Summary | |
|---|---|
SFVec3f |
getDirection()
Returns the direction vector. |
void |
setDirection(SFVec3f direction)
Sets the direction vector. |
org.w3c.dom.Element |
toXMLNode(org.w3c.dom.Document document,
org.w3c.dom.Element documentRootNode)
Converts this X3D node to an XML node. |
| Methods inherited from class com.hedgehog.x3d.lighting.X3DLightNode |
|---|
getAmbientIntensity, getColour, getIntensity, getOn, setAmbientIntensity, setColour, setIntensity, setOn |
| Methods inherited from class com.hedgehog.x3d.nodes.X3DNode |
|---|
getDefine, getMeatadata, hasDefine, setDefine, setMetadata |
| Methods inherited from class com.hedgehog.HObject |
|---|
clone, compare, compareTo, copy, equals, getID, getName, hashCode, hasID, hasName, setID, setName |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SFVec3f mDirection
| Constructor Detail |
|---|
public DirectionalLightNode()
public DirectionalLightNode(SFFloat ambientIntensity,
SFColour colour,
SFFloat intensity,
SFBool on,
SFVec3f direction)
ambientIntensity - Ambient intensity.colour - Colour.intensity - Intensity.on - On/off.direction - Direction.public DirectionalLightNode(X3DMetadataObject metadata)
metadata - Metadata object.public DirectionalLightNode(DirectionalLightNode object)
object - Object to copy.| Method Detail |
|---|
public SFVec3f getDirection()
public void setDirection(SFVec3f direction)
direction - New direction vector.
public org.w3c.dom.Element toXMLNode(org.w3c.dom.Document document,
org.w3c.dom.Element documentRootNode)
throws InvalidObjectException
toXMLNode in class X3DNodedocument - XML document.documentRootNode - Document root node; ie InvalidObjectException - Thrown if this object is invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||