Encapsulates the creation, deletion, and manipulation of linear lights.
#include <AlLinearLight.h>
class AlLinearLight: public AlDirectionLight
AlLinearLight();
virtual ~AlLinearLight();
virtual AlObject* copyWrapper() const;
statusCode create();
AlObjectType type() const;
statusCode axis( double&, double&, double& ) const;
statusCode setAxis( double, double, double );
statusCode endpoint( double&, double&, double& ) const;
A linear light emits light in all directions. A linear light would be used, for instance, to simulate a fluorescent light tube. The length of the line is defined by the light’s axis.
To determine the endpoints of this light, use the worldPosition() method and the endpoint() method.
Although this class inherits methods to access the ’look at’ and ’up’ nodes of a light, they are not used. The direction and twist of an area light is changed by translating and rotating the transformation of the light’s position node.
statusCode AlLinearLight::axis( double &x, double &y, double &z) const
statusCode AlLinearLight::setAxis( double x, double y, double z )
statusCode AlLinearLight::endpoint( double &x, double &y, double &z ) const
Returns the endpoint of this linear light in world space. This point and the world position of this light form the line that makes this light a linear light.