AlBoxLight
A class used to reference a box light
Synopsis
#include <AlBoxLight.h>
class AlBoxLight: public AlVolumeLight
AlBoxLight();
virtual ~AlBoxLight();
statusCode create();
virtual AlObject* copyWrapper() const;
AlObjectType type() const;
AlBoxLight* asBoxLightPtr();
Description
A box light is a volume light where light exists within a cube. There are no additional parameters other than those already on the volume light.
A box light could be np-scaled and used to fill a room with light. If it is used as a force field, it could fill the room with turbulence, leaving the air outide the room still.
Summary
AlBoxLight::AlBoxLight()
Description
Constructs an AlBoxLight wrapper object.
AlBoxLight::~AlBoxLight()
Description
Deletes an AlBoxLight wrapper object.
statusCode AlBoxLight::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 AlBoxLight::type() const
Description
Returns the class identifier kBoxLightType.
AlBoxLight* AlBoxLight::asBoxLightPtr()
Description
This virtual function returns a non-null pointer to itself, indicating that it is safe to cast to an object of this class.
aliasdocs@aw.sgi.com
Copyright © 1996, Alias|Wavefront, a Silicon Graphics Company. All rights
reserved.