Share

NonEntityTraits.AddLight Method

Description

Drawables that emit light can add one (or more) "lights" to the model. A unique object id must be used for each light, though an object may pass in it's own object Id.

The implementation in this class ignores light information, so derived classes must override this method in order to collect and use the illumination data.

SetAttributes() will be called on the light object in order to collect the properties of the emitted light. The light object can be one of the traits type: PointLightTraits, SpotLightTraits, or DistantLightTraits.

Through this interface, light position, intensity and other properties are sent to the graphics system.

Visual Basic

Public sealed override Function AddLight(
    lightId As ObjectId
) As void

C#

public sealed override void AddLight(
    ObjectId lightId
);

Parameters

Parameters Description
ObjectId lightId Input the added light.

Links

NonEntityTraits Class, Autodesk.AutoCAD.GraphicsInterface Namespace

Was this information helpful?