16#if !defined(OPENNURBS_LIGHT_INC_)
17#define OPENNURBS_LIGHT_INC_
112 void SetStyle(ON::light_style);
113 ON::light_style Style()
const;
116 const ON_BOOL32 IsDirectionalLight()
const;
119 const ON_BOOL32 IsRectangularLight()
const;
121 ON::coordinate_system CoordinateSystem()
const;
140 ON::coordinate_system dest_cs,
151 double Intensity()
const;
152 void SetIntensity(
double);
154 double PowerWatts()
const;
155 double PowerLumens()
const;
156 double PowerCandela()
const;
158 void SetPowerWatts(
double );
159 void SetPowerLumens(
double );
160 void SetPowerCandela(
double );
178 void SetAttenuation(
double,
double,
double);
181 double Attenuation(
double)
const;
191 void SetSpotAngleDegrees(
double );
192 double SpotAngleDegrees()
const;
194 void SetSpotAngleRadians(
double );
195 double SpotAngleRadians()
const;
206 void SetSpotExponent(
double );
207 double SpotExponent()
const;
215 void SetHotSpot(
double );
216 double HotSpot()
const;
219 bool GetSpotLightRadii(
double* inner_radius,
double* outer_radius )
const;
240 void SetShadowIntensity(
double);
241 double ShadowIntensity()
const;
248 void SetLightIndex(
int );
249 int LightIndex()
const;
263 void SetLightName(
const char* );
264 void SetLightName(
const wchar_t* );
Definition opennurbs_point.h:403
Definition opennurbs_point.h:931
Definition opennurbs_archive.h:152
Definition opennurbs_color.h:24
Definition opennurbs_geometry.h:36
virtual ON_BOOL32 GetBBox(double *boxmin, double *boxmax, int bGrowBox=false) const =0
virtual int Dimension() const =0
Definition opennurbs_light.h:20
ON::light_style m_style
Definition opennurbs_light.h:273
double m_spot_exponent
Definition opennurbs_light.h:292
ON_3dPoint m_location
Definition opennurbs_light.h:280
ON_Color m_specular
Definition opennurbs_light.h:277
double m_spot_angle
Definition opennurbs_light.h:291
ON_UUID m_light_id
Definition opennurbs_light.h:269
double m_watts
Definition opennurbs_light.h:288
ON_3dVector m_attenuation
Definition opennurbs_light.h:298
ON_3dVector m_direction
Definition opennurbs_light.h:279
double m_hotspot
Definition opennurbs_light.h:295
ON_3dVector m_length
Definition opennurbs_light.h:281
ON_OBJECT_DECLARE(ON_Light)
ON_Color m_ambient
Definition opennurbs_light.h:275
double m_shadow_intensity
Definition opennurbs_light.h:303
double m_intensity
Definition opennurbs_light.h:287
ON_Color m_diffuse
Definition opennurbs_light.h:276
ON_3dVector m_width
Definition opennurbs_light.h:283
ON_BOOL32 m_bOn
Definition opennurbs_light.h:272
ON_wString m_light_name
Definition opennurbs_light.h:270
int m_light_index
Definition opennurbs_light.h:268
virtual void Dump(ON_TextLog &) const
Definition opennurbs_object.cpp:1695
virtual ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const =0
virtual ON_BOOL32 Read(ON_BinaryArchive &binary_archive)
Definition opennurbs_object.cpp:1734
virtual ON_UUID ModelObjectId() const
Definition opennurbs_object.cpp:1622
virtual ON_BOOL32 Write(ON_BinaryArchive &binary_archive) const
Definition opennurbs_object.cpp:1714
virtual ON::object_type ObjectType() const
Definition opennurbs_object.cpp:1616
Definition opennurbs_textlog.h:20
Definition opennurbs_uuid.h:31
Definition opennurbs_viewport.h:31
Definition opennurbs_string.h:392
#define ON_CLASS
Definition opennurbs_defines.h:91
#define NULL
Definition opennurbs_system.h:256
int ON_BOOL32
Definition opennurbs_system.h:362