API Reference > OdDb Classes > OdDbLight Class
OdDbLight Class
OdDbLightOdDbLightOdDbLight
Syntax
C++
class OdDbLight : public OdDbEntity;

DbLight.h

This class represents a placeholder for all generic light properties. Corresponding C++ library: SCENEOE 

 

 
Name 
Description 
 
Default constructor for the OdDbLight class. Creates an object with default properties of the OdDbLightImpl object. 
 
Name 
Description 
 
Display types for glyphs. 
 
Lamp color presets. 
 
The lamp color type. 
 
This is record OdDbLight::PhysicalIntensityMethod. 
 
Name 
Description 
 
Retrieves the type of this drawable. 
 
Reads the .dwg file data of this object.
 
 
Writes the .dwg file data of this object.
 
 
Reads the .dxf file data of this object.
 
 
Writes the .dxf file data of this object.
 
 
Retrieves the cone angle that produces the light falloff. 
 
Retrieves the glyph display type of this light. 
 
Checks whether this light displays a target grip to orient this light. 
 
Retrieves the cone angle that produces the brightest part of the beam (hotspot) of this light. 
 
Retrieves the illuminance distance of the light. 
 
Retrieves the intensity of this light. 
 
isOn 
Checks whether this light is enabled. 
 
Checks whether this light is shown during plotting. 
 
Retrieves the preset lamp color of this light. 
 
Retrieves the RGB value of the light's lamp color. 
 
Retrieves the Kelvin color temperature of the light if the lamp color type is kKelvin. 
 
Retrieves the lamp color type of the light that indicates how the lamp color of the light is specified (Kelvin color temperature or a preset lamp color). 
 
Retrieves the attenuation parameters of this light. 
 
Retrieves the color of this light. 
 
Retrieves the direction of a distant light. 
 
Retrieves the type of this light. 
 
name 
Retrieves the light name. 
 
This is ODDB_DECLARE_MEMBERS, a member of class OdDbLight. 
 
Retrieves the physical intensity of the light. The units are based on the physical intensity method (candela, lumen or lux). 
 
Retrieves the physical intensity method of this light that indicates how the physical intensity of the light is calculated (by peak intensity, by flux or by illuminance). 
 
Retrieves the position for point light and spot light sources. 
 
Retrieves the final color of the light as a result of mixing the lamp color and the filter color. 
 
Specifies the display type of the glyph for this light.
 
 
Specifies whether this light should display a target grip to orient this light.
 
 
Specifies the hotspot and falloff for the cone of the directional light.
 
 
Specifies the illuminance distance of the light.
 
 
Specifies the intensity of this light.
 
 
Specifies whether this light is shown during plotting.
 
 
Sets the lamp color of this light from a preset.
 
 
Sets the lamp color of this light as an RGB color value.
 
 
Sets the Kelvin color temperature of the light.
 
 
Specifies the lamp color type of the light that indicates how the lamp color of the light is specified (Kelvin color temperature or a preset lamp color).
 
 
Specifies the attenuation parameters for this light.
 
 
Specifies the color of this light.
 
 
Specifies the direction of a distant light.
 
 
Sets the type of this light.
 
 
Sets a light name.
 
 
Switches this light on or off.
 
 
Specifies the physical intensity of the light.
 
 
Specifies the physical intensity method for this light that indicates how the physical intensity of the light is specified.
 
 
Specifies the position for point light and spot light sources.
 
 
Specifies the shadow parameters for this light.
 
 
Specifies the target location of a light.
 
 
Specifies the full path to the file that stores the light's goniometric data (.ies file).
 
 
Specifies the rotation offset used to orient the goniometric data relative to the light orientation. The angle for each axis is 0.0.
 
 
Retrieves the shadow parameters of this light. 
 
Called as the first operation when this object is being erased or unerased.
 
 
Highlights this object.
 
 
Sets the vectorization attributes of this object, and returns its attribute flags.
 
 
Applies the specified 3D transformation matrix to this entity.
 
 
Creates a viewport-dependent geometric representation of this object.
 
 
Creates a viewport-independent geometric representation of this object.
 
 
Retrieves the target location of a light. 
 
Retrieves the full path to the file that stores the light's goniometric data (.ies file). 
 
Retrieves the rotation offset used to orient the goniometric data relative to the light orientation. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.