AlCylinderLight
Add parameters for cylinder volume lights
Synopsis
#include <AlCylinderLight.h>
class AlCylinderLight: public AlVolumeLight
AlCylinderLight();
virtual ~AlCylinderLight();
virtual AlObject* copyWrapper() const;
statusCode create();
AlObjectType type() const;
AlCylinderLight* asCylinderLightPtr();
double arc() const;
statusCode setArc(double);
Description
A cylinder light creates light within a cylinder.
Summary
AlCylinderLight::AlCylinderLight()
Description
Constructs an AlCylinderLight wrapper object.
AlCylinderLight::~AlCylinderLight()
Description
Deletes an AlCylinderLight wrapper object.
statusCode AlCylinderLight::create()
Description
This method creates all the dag nodes for this light and adds them to the universe. The dag nodes are for 'position', 'look at' and 'up', and another dag node that groups these three together.
Return codes
sSuccess - if everything was successful
sInsufficientMemory - if not enough memory available
sAlreadyCreated - light is already created
AlObjectType AlCylinderLight::type() const
Description
Returns the class identifier kCylinderLightType.
AlCylinderLight* AlCylinderLight::asCylinderLightPtr()
Description
This virtual function returns a non-null pointer to itself, indicating that it is safe to cast to an object of this class.
double AlCylinderLight::arc() const
Description
Returns the sphere light's arc ( i.e. how much of the sphere we actually have). This method returns -1 if the light is invalid.
statusCode AlCylinderLight::setArc( double arc )
Description
Sets the arc of the light. The given arc must be in the range 0 to 360.
Arguments
< double arc - portion of the sphere to use
Return codes
sSuccess - setting arc succeeded
sInvalidObject - not a valid volume light
sInvalidArgument - arc out of the range 0..360
sFailure - an error occurred
aliasdocs@aw.sgi.com
Copyright © 1996, Alias|Wavefront, a Silicon Graphics Company. All rights
reserved.