Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

X3DTK::X3D::SpotLight Class Reference

Base class of the Lighting component defining an SpotLight (documentation). More...

Inheritance diagram for X3DTK::X3D::SpotLight:

X3DTK::X3D::X3DLightNode X3DTK::X3D::X3DChildNode X3DTK::X3D::X3DNode X3DTK::X3DAbstractNode List of all members.

Public Member Functions

Protected Member Functions


Detailed Description

Base class of the Lighting component defining an SpotLight (documentation).


Constructor & Destructor Documentation

X3DTK::X3D::SpotLight::SpotLight  ) 
 

Constructor.

X3DTK::X3D::SpotLight::SpotLight SFFloat  ambientIntensity,
const SFVec3f attenuation,
SFFloat  beamWidth,
const SFColor &  color,
SFFloat  cutOffAngle,
const SFVec3f direction,
SFFloat  intensity,
const SFVec3f location,
SFBool  on,
SFFloat  radius
 

Constructs a SpotLight from its attributes.

virtual X3DTK::X3D::SpotLight::~SpotLight  )  [virtual]
 

Virtual destructor.

X3DTK::X3D::SpotLight::SpotLight const SpotLight &  N  )  [protected]
 

Copy constructor.


Member Function Documentation

virtual SFNode X3DTK::X3D::SpotLight::clone  )  const [virtual]
 

Clones the node.

Reimplemented from X3DTK::X3D::X3DLightNode.

const SFVec3f& X3DTK::X3D::SpotLight::getAttenuation  )  const [inline]
 

Gets the attenuation attribute.

SFFloat X3DTK::X3D::SpotLight::getBeamWidth  )  const [inline]
 

Gets the beamWidth attribute.

SFFloat X3DTK::X3D::SpotLight::getCutOffAngle  )  const [inline]
 

Gets the cutOffAngle attribute.

const SFVec3f& X3DTK::X3D::SpotLight::getDirection  )  const [inline]
 

Gets the direction attribute.

const SFVec3f& X3DTK::X3D::SpotLight::getLocation  )  const [inline]
 

Gets the location attribute.

SFFloat X3DTK::X3D::SpotLight::getRadius  )  const [inline]
 

Gets the radius attribute.

virtual void X3DTK::X3D::SpotLight::load const X3DFileElement element  )  [virtual]
 

Loads the attributes from a X3DFileElement.

Reimplemented from X3DTK::X3D::X3DLightNode.

void X3DTK::X3D::SpotLight::setAttenuation const SFVec3f attenuation  ) 
 

Sets the attenuation attribute.

void X3DTK::X3D::SpotLight::setBeamWidth SFFloat  beamWidth  ) 
 

Sets the beamWidth attribute.

void X3DTK::X3D::SpotLight::setCutOffAngle SFFloat  cutOffAngle  ) 
 

Sets the cutOffAngle attribute.

void X3DTK::X3D::SpotLight::setDirection const SFVec3f direction  ) 
 

Sets the direction attribute.

void X3DTK::X3D::SpotLight::setLocation const SFVec3f location  ) 
 

Sets the location attribute.

void X3DTK::X3D::SpotLight::setRadius SFFloat  radius  ) 
 

Sets the radius attribute.

virtual SFString X3DTK::X3D::SpotLight::write  )  const [virtual]
 

Writes the attributes of the node.

Reimplemented from X3DTK::X3D::X3DLightNode.


Generated on Wed Sep 10 11:25:24 2003 for X3DToolKit by doxygen1.3