Class used to set the emitter pair when the emission type is set to Color + Luminance.
Emitters can be defined:
- 1. Using color + luminance.
- 2. Using Temperature of emission.
- 3. Using an MXI texture.
When emitters are set using color + luminance the color can be set:
- 1.1.a Using RGB color
- 1.1.b Using Correlated Temperature color
When emitters are set using color + luminance the luminance can be set:
- 1.2.a Using Watts and efficacy
- 1.2.b LuminousPower (Lumen)
- 1.2.c illuminance (Lumen/m2)
- 1.2.d luminousIntensity (Cd)
- 1.2.b luminance (Cd/m2)
Cmaxwell::CmultiValue::CemitterPair is used to read/write each parameter.
C++ | Python |
---|---|
Cmaxwell::CmultiValue::CemitterPair | CemitterPair |
Methods
Name | Description |
---|---|
CemitterPair | Class constructor. |
Properties
Name | Description |
---|---|
rgb | Cmaxwell::CmaterialEmitter::Cpair::pEmissionColor = "rgb". |
xyz | Cmaxwell::CmaterialEmitter::Cpair::pEmissionColor = "xyz". |
temperature | Cmaxwell::CmaterialEmitter::Cpair::pEmissionColor = "temperature". |
watts | Cmaxwell::CmaterialEmitter::Cpair::pLuminance = "wattsAndLuminousEfficacy". |
luminousEfficacy | Cmaxwell::CmaterialEmitter::Cpair::pLuminance = "wattsAndLuminousEfficacy". |
luminousPower | Cmaxwell::CmaterialEmitter::Cpair::pLuminance = "luminousPower". |
illuminance | Cmaxwell::CmaterialEmitter::Cpair::pLuminance = "illuminance". |
liminousIntensity | Cmaxwell::CmaterialEmitter::Cpair::pLuminance = "luminousIntensity". |
luminance | Cmaxwell::CmaterialEmitter::Cpair::pLuminance = "lluminance". |
Examples
C++
Cmaxwell::CmultiValue::CemitterPair emitterPair; emitterPair.rgb.assign( rgb_color ); emitterPair.xyz.assign( xyz_color ); emitterPair.temperature = 6500.0; emitterPair.watts = 40.0; emitterPair.luminousEfficacy = 17.6; emitterPair.luminousPower = 100.0; // We will use this parameter. emitterPair.illuminance = 100.0; emitterPair.luminousIntensity = 100.0; emitterPair.luminance = 100.0; newEmitter.setPair( emitterPair ); Cmaxwell::CmaterialEmitter::Cpair pair; pair.pEmissionColor = "rgb"; pair.pLuminance = "luminousPower"; newEmitter.setActivePair(pair);
Python
emitterPait = CemitterPair(); emitterPair.rgb.assign( rgb_color ); emitterPair.xyz.assign( xyz_color ); emitterPair.temperature = 6500.0; emitterPair.watts = 40.0; emitterPair.luminousEfficacy = 17.6; emitterPair.luminousPower = 100.0; # We will use this parameter. emitterPair.illuminance = 100.0; emitterPair.luminousIntensity = 100.0; emitterPair.luminance = 100.0; newEmitter.setPair( emitterPair ); pair = Cpair(); pair.pEmissionColor = "rgb"; pair.pLuminance = "luminousPower"; newEmitter.setActivePair( pair );