Entities

entities/light

#include "dxfio/entities/light.hpp"

In DxfIO::Entities

struct Lamp

The AcDbLight subclass of a LIGHT: its kind, color and place, and how it falls off and casts shadows.

FieldType and defaultMeaning
Versionint{1}The version of the light's layout. Group 90.
Namestd::stringThe name of the light. Group 1.
Kindint{2}1 distant, 2 point, 3 spot. Group 70.
Litbool{true}Whether the light is on. Group 290.
Colorint{7}The AutoCAD Color Index of the light. Group 63, from R2004.
Rgbint{Lamplight}The true color of the light, as 0xRRGGBB. Group 421 from R2004; up to R2000, packed in a group 90.
GlyphboolWhether the light's glyph is plotted. Group 291.
Intensitydouble{1}How bright the light is. Group 40.
PositionVectorThe position, in world coordinates. Groups 10, 20, 30.
TargetVectorThe point a spot or distant light aims at, in world coordinates. Groups 11, 21, 31.
FadingintHow the light weakens with distance: 0 not at all, 1 inverse linear, 2 inverse square. Group 72.
LimitedboolWhether the light reaches only from its start distance to its end distance. Group 292.
Startdouble{1}The distance the light starts to reach from, when it is limited. Group 41.
Enddouble{10}The distance the light stops reaching at, when it is limited. Group 42.
Hotspotdouble{45}The angle of a spot light's bright inner cone, in degrees. Group 50.
Falloffdouble{50}The angle of a spot light's whole cone, in degrees. Group 51.
Castingbool{true}Whether the light casts shadows. Group 293.
ShadingintThe kind of shadow: 0 ray traced, 1 shadow map. Group 73.
Sizeint{256}The size of the shadow map. Group 91.
Softnessint{1}The softness of the shadow map's edges. Group 280.

struct LightLIGHT

A LIGHT: a point, spot or distant light of the scene.

FieldTypeMeaning
RecordEntities::RecordThe layer, linetype, color and the rest every entity carries.
Picturestd::stringThe proxy graphics, for programs that cannot draw the entity. Group 92, or 160 from R2010, then 310.
LampBoxed<Entities::Lamp>The kind, color and place of the light, from the AcDbLight subclass.

Constants

Lamplightint = 0xFFFFFFThe true color a new light takes: white, as 0xRRGGBB. Not a color index: Colors::White is that.