QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
ON_Light Class Reference

#include <opennurbs_light.h>

Inheritance diagram for ON_Light:
ON_Geometry ON_Object

Public Member Functions

ON_Color Ambient () const
 
ON_3dVector Attenuation () const
 
double Attenuation (double) const
 
ON::coordinate_system CoordinateSystem () const
 
void Default ()
 
ON_Color Diffuse () const
 
int Dimension () const
 
ON_3dVector Direction () const
 
void Dump (ON_TextLog &) const
 
ON_BOOL32 Enable (ON_BOOL32=true)
 
ON_BOOL32 GetBBox (double *, double *, ON_BOOL32=false) const
 
ON_BOOL32 GetLightXform (const ON_Viewport &vp, ON::coordinate_system dest_cs, ON_Xform &xform) const
 
bool GetSpotLightRadii (double *inner_radius, double *outer_radius) const
 
double HotSpot () const
 
double Intensity () const
 
const ON_BOOL32 IsDirectionalLight () const
 
ON_BOOL32 IsEnabled () const
 
const ON_BOOL32 IsLinearLight () const
 
const ON_BOOL32 IsPointLight () const
 
const ON_BOOL32 IsRectangularLight () const
 
const ON_BOOL32 IsSpotLight () const
 
ON_BOOL32 IsValid (ON_TextLog *text_log=NULL) const
 
ON_3dVector Length () const
 
int LightIndex () const
 
const ON_wStringLightName () const
 
ON_3dPoint Location () const
 
ON_UUID ModelObjectId () const
 
ON::object_type ObjectType () const
 
 ON_Light ()
 
ON_3dVector PerpindicularDirection () const
 
double PowerCandela () const
 
double PowerLumens () const
 
double PowerWatts () const
 
ON_BOOL32 Read (ON_BinaryArchive &)
 
void SetAmbient (ON_Color)
 
void SetAttenuation (const ON_3dVector &)
 
void SetAttenuation (double, double, double)
 
void SetDiffuse (ON_Color)
 
void SetDirection (const ON_3dVector &)
 
void SetHotSpot (double)
 
void SetIntensity (double)
 
void SetLength (const ON_3dVector &)
 
void SetLightIndex (int)
 
void SetLightName (const char *)
 
void SetLightName (const wchar_t *)
 
void SetLocation (const ON_3dPoint &)
 
void SetPowerCandela (double)
 
void SetPowerLumens (double)
 
void SetPowerWatts (double)
 
void SetShadowIntensity (double)
 
void SetSpecular (ON_Color)
 
void SetSpotAngleDegrees (double)
 
void SetSpotAngleRadians (double)
 
void SetSpotExponent (double)
 
void SetStyle (ON::light_style)
 
void SetWidth (const ON_3dVector &)
 
double ShadowIntensity () const
 
ON_Color Specular () const
 
double SpotAngleDegrees () const
 
double SpotAngleRadians () const
 
double SpotExponent () const
 
ON::light_style Style () const
 
ON_BOOL32 Transform (const ON_Xform &)
 
ON_3dVector Width () const
 
ON_BOOL32 Write (ON_BinaryArchive &) const
 
 ~ON_Light ()
 
- Public Member Functions inherited from ON_Geometry
ON_BoundingBox BoundingBox () const
 
virtual ON_BrepBrepForm (ON_Brep *brep=NULL) const
 
virtual void ClearBoundingBox ()
 
virtual ON_COMPONENT_INDEX ComponentIndex () const
 
virtual bool EvaluatePoint (const class ON_ObjRef &objref, ON_3dPoint &P) const
 
ON_BOOL32 GetBoundingBox (ON_3dPoint &bbox_min, ON_3dPoint &bbox_max, int bGrowBox=false) const
 
ON_BOOL32 GetBoundingBox (ON_BoundingBox &bbox, int bGrowBox=false) const
 
virtual bool GetTightBoundingBox (ON_BoundingBox &tight_bbox, int bGrowBox=false, const ON_Xform *xform=0) const
 
virtual ON_BOOL32 HasBrepForm () const
 
virtual bool IsDeformable () const
 
virtual bool IsMorphable () const
 
virtual bool MakeDeformable ()
 
virtual bool Morph (const ON_SpaceMorph &morph)
 
 ON_Geometry ()
 
 ON_Geometry (const ON_Geometry &)
 
ON_Geometryoperator= (const ON_Geometry &)
 
ON_BOOL32 Rotate (double rotation_angle, const ON_3dVector &rotation_axis, const ON_3dPoint &rotation_center)
 
ON_BOOL32 Rotate (double sin_angle, double cos_angle, const ON_3dVector &rotation_axis, const ON_3dPoint &rotation_center)
 
ON_BOOL32 Scale (double scale_factor)
 
virtual ON_BOOL32 SwapCoordinates (int i, int j)
 
ON_BOOL32 Translate (const ON_3dVector &translation_vector)
 
virtual ~ON_Geometry ()
 
- Public Member Functions inherited from ON_Object
ON_BOOL32 AttachUserData (ON_UserData *pUserData)
 
bool CopyFrom (const ON_Object *src)
 
void CopyUserData (const ON_Object &source_object)
 
virtual ON__UINT32 DataCRC (ON__UINT32 current_remainder) const
 
virtual void DestroyRuntimeCache (bool bDelete=true)
 
ON_BOOL32 DetachUserData (ON_UserData *pUserData)
 
ON_UserDataFirstUserData () const
 
ON_UserDataGetUserData (const ON_UUID &userdata_uuid) const
 
bool GetUserString (const wchar_t *key, ON_wString &string_value) const
 
int GetUserStringKeys (ON_ClassArray< ON_wString > &user_string_keys) const
 
int GetUserStrings (ON_ClassArray< ON_UserString > &user_strings) const
 
ON_BOOL32 IsKindOf (const ON_ClassId *pClassId) const
 
virtual void MemoryRelocate ()
 
void MoveUserData (ON_Object &source_object)
 
 ON_Object ()
 
 ON_Object (const ON_Object &)
 
ON_Objectoperator= (const ON_Object &)
 
void PurgeUserData ()
 
bool SetUserString (const wchar_t *key, const wchar_t *string_value)
 
virtual unsigned int SizeOf () const
 
void TransformUserData (const ON_Xform &xform)
 
virtual ~ON_Object ()
 

Public Attributes

ON_Color m_ambient
 
ON_3dVector m_attenuation
 
ON_BOOL32 m_bOn
 
ON_Color m_diffuse
 
ON_3dVector m_direction
 
double m_hotspot
 
double m_intensity
 
ON_3dVector m_length
 
ON_UUID m_light_id
 
int m_light_index
 
ON_wString m_light_name
 
ON_3dPoint m_location
 
double m_shadow_intensity
 
ON_Color m_specular
 
double m_spot_angle
 
double m_spot_exponent
 
ON::light_style m_style
 
double m_watts
 
ON_3dVector m_width
 
- Public Attributes inherited from ON_Object
ON_MEMORY_POOLm_mempool
 

Private Member Functions

 ON_OBJECT_DECLARE (ON_Light)
 

Constructor & Destructor Documentation

◆ ON_Light()

ON_Light::ON_Light ( )

◆ ~ON_Light()

ON_Light::~ON_Light ( )

Member Function Documentation

◆ Ambient()

ON_Color ON_Light::Ambient ( ) const

◆ Attenuation() [1/2]

ON_3dVector ON_Light::Attenuation ( ) const

◆ Attenuation() [2/2]

double ON_Light::Attenuation ( double d) const

◆ CoordinateSystem()

ON::coordinate_system ON_Light::CoordinateSystem ( ) const

◆ Default()

void ON_Light::Default ( )

◆ Diffuse()

ON_Color ON_Light::Diffuse ( ) const

◆ Dimension()

int ON_Light::Dimension ( ) const
virtual

Implements ON_Geometry.

◆ Direction()

ON_3dVector ON_Light::Direction ( ) const

◆ Dump()

void ON_Light::Dump ( ON_TextLog & dump) const
virtual

Reimplemented from ON_Object.

◆ Enable()

ON_BOOL32 ON_Light::Enable ( ON_BOOL32 b = true)

◆ GetBBox()

ON_BOOL32 ON_Light::GetBBox ( double * boxmin,
double * boxmax,
ON_BOOL32 bGrowBox = false ) const
virtual

Implements ON_Geometry.

◆ GetLightXform()

ON_BOOL32 ON_Light::GetLightXform ( const ON_Viewport & vp,
ON::coordinate_system dest_cs,
ON_Xform & xform ) const

◆ GetSpotLightRadii()

bool ON_Light::GetSpotLightRadii ( double * inner_radius,
double * outer_radius ) const

◆ HotSpot()

double ON_Light::HotSpot ( ) const

◆ Intensity()

double ON_Light::Intensity ( ) const

◆ IsDirectionalLight()

const ON_BOOL32 ON_Light::IsDirectionalLight ( ) const

◆ IsEnabled()

ON_BOOL32 ON_Light::IsEnabled ( ) const

◆ IsLinearLight()

const ON_BOOL32 ON_Light::IsLinearLight ( ) const

◆ IsPointLight()

const ON_BOOL32 ON_Light::IsPointLight ( ) const

◆ IsRectangularLight()

const ON_BOOL32 ON_Light::IsRectangularLight ( ) const

◆ IsSpotLight()

const ON_BOOL32 ON_Light::IsSpotLight ( ) const

◆ IsValid()

ON_BOOL32 ON_Light::IsValid ( ON_TextLog * text_log = NULL) const
virtual

Implements ON_Object.

◆ Length()

ON_3dVector ON_Light::Length ( ) const

◆ LightIndex()

int ON_Light::LightIndex ( ) const

◆ LightName()

const ON_wString & ON_Light::LightName ( ) const

◆ Location()

ON_3dPoint ON_Light::Location ( ) const

◆ ModelObjectId()

ON_UUID ON_Light::ModelObjectId ( ) const
virtual

Reimplemented from ON_Object.

◆ ObjectType()

ON::object_type ON_Light::ObjectType ( ) const
virtual

Reimplemented from ON_Object.

◆ ON_OBJECT_DECLARE()

ON_Light::ON_OBJECT_DECLARE ( ON_Light )
private

◆ PerpindicularDirection()

ON_3dVector ON_Light::PerpindicularDirection ( ) const

◆ PowerCandela()

double ON_Light::PowerCandela ( ) const

◆ PowerLumens()

double ON_Light::PowerLumens ( ) const

◆ PowerWatts()

double ON_Light::PowerWatts ( ) const

◆ Read()

ON_BOOL32 ON_Light::Read ( ON_BinaryArchive & file)
virtual

Reimplemented from ON_Object.

◆ SetAmbient()

void ON_Light::SetAmbient ( ON_Color c)

◆ SetAttenuation() [1/2]

void ON_Light::SetAttenuation ( const ON_3dVector & att)

◆ SetAttenuation() [2/2]

void ON_Light::SetAttenuation ( double a,
double b,
double c )

◆ SetDiffuse()

void ON_Light::SetDiffuse ( ON_Color c)

◆ SetDirection()

void ON_Light::SetDirection ( const ON_3dVector & dir)

◆ SetHotSpot()

void ON_Light::SetHotSpot ( double h)

◆ SetIntensity()

void ON_Light::SetIntensity ( double v)

◆ SetLength()

void ON_Light::SetLength ( const ON_3dVector & v)

◆ SetLightIndex()

void ON_Light::SetLightIndex ( int i)

◆ SetLightName() [1/2]

void ON_Light::SetLightName ( const char * s)

◆ SetLightName() [2/2]

void ON_Light::SetLightName ( const wchar_t * s)

◆ SetLocation()

void ON_Light::SetLocation ( const ON_3dPoint & loc)

◆ SetPowerCandela()

void ON_Light::SetPowerCandela ( double candela)

◆ SetPowerLumens()

void ON_Light::SetPowerLumens ( double lumens)

◆ SetPowerWatts()

void ON_Light::SetPowerWatts ( double watts)

◆ SetShadowIntensity()

void ON_Light::SetShadowIntensity ( double s)

◆ SetSpecular()

void ON_Light::SetSpecular ( ON_Color c)

◆ SetSpotAngleDegrees()

void ON_Light::SetSpotAngleDegrees ( double a)

◆ SetSpotAngleRadians()

void ON_Light::SetSpotAngleRadians ( double a)

◆ SetSpotExponent()

void ON_Light::SetSpotExponent ( double e)

◆ SetStyle()

void ON_Light::SetStyle ( ON::light_style s)

◆ SetWidth()

void ON_Light::SetWidth ( const ON_3dVector & v)

◆ ShadowIntensity()

double ON_Light::ShadowIntensity ( ) const

◆ Specular()

ON_Color ON_Light::Specular ( ) const

◆ SpotAngleDegrees()

double ON_Light::SpotAngleDegrees ( ) const

◆ SpotAngleRadians()

double ON_Light::SpotAngleRadians ( ) const

◆ SpotExponent()

double ON_Light::SpotExponent ( ) const

◆ Style()

ON::light_style ON_Light::Style ( ) const

◆ Transform()

ON_BOOL32 ON_Light::Transform ( const ON_Xform & xform)
virtual

Reimplemented from ON_Geometry.

◆ Width()

ON_3dVector ON_Light::Width ( ) const

◆ Write()

ON_BOOL32 ON_Light::Write ( ON_BinaryArchive & file) const
virtual

Reimplemented from ON_Object.

Member Data Documentation

◆ m_ambient

ON_Color ON_Light::m_ambient

◆ m_attenuation

ON_3dVector ON_Light::m_attenuation

◆ m_bOn

ON_BOOL32 ON_Light::m_bOn

◆ m_diffuse

ON_Color ON_Light::m_diffuse

◆ m_direction

ON_3dVector ON_Light::m_direction

◆ m_hotspot

double ON_Light::m_hotspot

◆ m_intensity

double ON_Light::m_intensity

◆ m_length

ON_3dVector ON_Light::m_length

◆ m_light_id

ON_UUID ON_Light::m_light_id

◆ m_light_index

int ON_Light::m_light_index

◆ m_light_name

ON_wString ON_Light::m_light_name

◆ m_location

ON_3dPoint ON_Light::m_location

◆ m_shadow_intensity

double ON_Light::m_shadow_intensity

◆ m_specular

ON_Color ON_Light::m_specular

◆ m_spot_angle

double ON_Light::m_spot_angle

◆ m_spot_exponent

double ON_Light::m_spot_exponent

◆ m_style

ON::light_style ON_Light::m_style

◆ m_watts

double ON_Light::m_watts

◆ m_width

ON_3dVector ON_Light::m_width

The documentation for this class was generated from the following files: