|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hedgehog.HObject
com.hedgehog.geo.threed.world.AbstractLighting3D
com.hedgehog.geo.threed.world.SpotLighting3D
public class SpotLighting3D
Title: SpotLighting3D - extends AbstractLighting3D specifically for spot lighting
Description: Extends AbstractLighting3D specifically for spot lighting.
Based on the X3D SpotLight node.
Copyright: Copyright (c) Hedgehog Software.
Company: Hedgehog Software.
| Field Summary | |
|---|---|
protected Vector3D |
mAttenuation
Attenuation. |
protected double |
mBeamWidth
Beam width. |
protected double |
mCutOffAngle
Cut off angle. |
protected Vector3D |
mDirection
Direction vector. |
protected Vector3D |
mLocation
Location. |
protected double |
mRadius
Radius. |
| Fields inherited from class com.hedgehog.geo.threed.world.AbstractLighting3D |
|---|
DIRECTIONAL_LIGHTING, mAmbientIntensity, mColour, mIntensity, mOn, POINT_LIGHTING, SPOT_LIGHTING |
| Fields inherited from class com.hedgehog.HObject |
|---|
mID, mName |
| Constructor Summary | |
|---|---|
SpotLighting3D()
Default constructor. |
|
SpotLighting3D(SpotLighting3D object)
Copy constructor. |
|
SpotLighting3D(Vector3D attenuation,
double beamWidth,
double cutOffAngle,
Vector3D direction,
Vector3D location,
double radius)
Constructor. |
|
| Method Summary | |
|---|---|
Vector3D |
getAttenuation()
Returns the attenuation. |
double |
getBeamWidth()
Returns the beam width. |
double |
getCutOffAngle()
Returns the cut off angle. |
Vector3D |
getDirection()
Returns the direction vector. |
Vector3D |
getLocation()
Returns the location. |
double |
getRadius()
Returns the radius. |
int |
lightingType()
Returns the type of lighting; ie SPOT_LIGHTING. |
void |
setAttenuation(Vector3D attenuation)
Sets the attenuation. |
void |
setBeamWidth(double beamWidth)
Sets the beam width. |
void |
setCutOffAngle(double cutOffAngle)
Sets the cut off angle. |
void |
setDirection(Vector3D direction)
Sets the direction vector. |
void |
setLocation(Vector3D location)
Sets the location. |
void |
setRadius(double radius)
Sets the radius. |
java.lang.String |
toString()
Returns a String representation of a SpotLighting3D object. |
X3DNode |
toX3DNode()
Returns the equivalent X3D node of this object; ie SpotLightNode. |
| Methods inherited from class com.hedgehog.geo.threed.world.AbstractLighting3D |
|---|
getAmbientIntensity, getColour, getIntensity, getOn, setAmbientIntensity, setColour, setIntensity, setOn |
| 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, wait, wait, wait |
| Field Detail |
|---|
protected Vector3D mAttenuation
protected double mBeamWidth
protected double mCutOffAngle
protected Vector3D mDirection
protected Vector3D mLocation
protected double mRadius
| Constructor Detail |
|---|
public SpotLighting3D()
public SpotLighting3D(Vector3D attenuation,
double beamWidth,
double cutOffAngle,
Vector3D direction,
Vector3D location,
double radius)
attenuation - Attaneuation.beamWidth - Beam width.cutOffAngle - Cut off angle.direction - Direction.location - location.radius - Radius.public SpotLighting3D(SpotLighting3D object)
object - Object to copy.| Method Detail |
|---|
public Vector3D getAttenuation()
public double getBeamWidth()
public double getCutOffAngle()
public Vector3D getDirection()
public Vector3D getLocation()
public double getRadius()
public void setAttenuation(Vector3D attenuation)
attenuation - New attenuation.public void setBeamWidth(double beamWidth)
beamWidth - New beam width.public void setCutOffAngle(double cutOffAngle)
cutOffAngle - New cut off angle.public void setDirection(Vector3D direction)
direction - New direction vector.public void setLocation(Vector3D location)
location - New location.public void setRadius(double radius)
radius - New radius.public java.lang.String toString()
toString in class java.lang.Objectpublic int lightingType()
lightingType in class AbstractLighting3Dpublic X3DNode toX3DNode()
toX3DNode in class AbstractLighting3D
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||