IESLight Class Reference

#include <c4d_ieslight.h>

Public Types

enum  IESVERSION {
  V1986,
  V1991,
  V1995,
  V2002
}
 
enum  IESTILT {
  UNKNOWN,
  NONE,
  INCLUDE,
  FILE
}
 

Public Attributes

IESVERSION m_Version
 
IESTILT m_Tilt
 
String m_szInfoManufacturer
 
String m_szInfoLumCatalog
 
String m_szInfoLumDescription
 
String m_szInfoLampCatalog
 
String m_szInfoLampDescription
 
Int32 m_nAreaShape
 
Vector m_vAreaSize
 
Floatm_pAnglesVertical
 
Floatm_pAnglesHorizontal
 
Int32 m_nAnglesVertical
 
Int32 m_nAnglesHorizontal
 
Floatm_pData
 
Float m_fDataMax
 
Float m_fDataPower
 

Constructor/Destructor

 IESLight ()
 
virtual ~IESLight ()
 

Copy

IESLightCopy ()
 

Read/Write

Bool Read (HyperFile *pHFile)
 
Bool Write (HyperFile *pHFile)
 

Import from File

IMAGERESULT ImportFromFile (const Filename &fn)
 

Private

void ComputePowerRatio ()
 
Float64 ComputeLightIntensity (Vector64 vDir)
 
Float64 ATan2 (Float64 fY, Float64 fX)
 

Detailed Description

IES light.

Constructor & Destructor Documentation

◆ IESLight()

IESLight ( )

Default constructor.

◆ ~IESLight()

virtual ~IESLight ( )
virtual

Default destructor.

Member Function Documentation

◆ Copy()

IESLight* Copy ( )

Gets a copy of the IES light.

Returns
The cloned IES light, or nullptr if an error occurred. The caller owns the pointed IES light.

◆ Read()

Bool Read ( HyperFile pHFile)

Reads the IES light from a hyper file.

Parameters
[in]pHFileThe hyper file to read from. The caller owns the pointed hyper file.
Returns
true if successful, otherwise false.

◆ Write()

Bool Write ( HyperFile pHFile)

Writes the IES light to a hyper file.

Parameters
[in]pHFileThe hyper file to write to. The caller owns the pointed hyper file.
Returns
true if successful, otherwise false.

◆ ImportFromFile()

IMAGERESULT ImportFromFile ( const Filename fn)

Imports a IES light from a file.

Parameters
[in]fnThe filename of the IES light file to import.
Returns
The result.

◆ ComputePowerRatio()

void ComputePowerRatio ( )

Private.

◆ ComputeLightIntensity()

Float64 ComputeLightIntensity ( Vector64  vDir)

Private.

◆ ATan2()

Float64 ATan2 ( Float64  fY,
Float64  fX 
)

Private.

Member Data Documentation

◆ m_Version

IESVERSION m_Version

IES light file version.

◆ m_Tilt

IESTILT m_Tilt

IES light tilt type.

◆ m_szInfoManufacturer

String m_szInfoManufacturer

Luminaire manufacturer.

◆ m_szInfoLumCatalog

String m_szInfoLumCatalog

Luminaire catalog number.

◆ m_szInfoLumDescription

String m_szInfoLumDescription

Luminaire description.

◆ m_szInfoLampCatalog

String m_szInfoLampCatalog

Lamp catalog number.

◆ m_szInfoLampDescription

String m_szInfoLampDescription

Lamp description.

◆ m_nAreaShape

Int32 m_nAreaShape

Luminaire shape.

◆ m_vAreaSize

Vector m_vAreaSize

Luminaire size.

◆ m_pAnglesVertical

Float* m_pAnglesVertical

Array of vertical angles.

◆ m_pAnglesHorizontal

Float* m_pAnglesHorizontal

Array of horizontal angles.

◆ m_nAnglesVertical

Int32 m_nAnglesVertical

Number of vertical angles.

◆ m_nAnglesHorizontal

Int32 m_nAnglesHorizontal

Number of horizontal angles.

◆ m_pData

Float* m_pData

Private.

◆ m_fDataMax

Float m_fDataMax

Private.

◆ m_fDataPower

Float m_fDataPower

Private.