Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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::CemitterPairCemitterPair

Methods

NameDescription
CemitterPairClass constructor.

Properties

NameDescription
rgbCmaxwell::CmaterialEmitter::Cpair::pEmissionColor = "rgb".
xyzCmaxwell::CmaterialEmitter::Cpair::pEmissionColor = "xyz".
temperatureCmaxwell::CmaterialEmitter::Cpair::pEmissionColor = "temperature".
wattsCmaxwell::CmaterialEmitter::Cpair::pLuminance = "wattsAndLuminousEfficacy".
luminousEfficacyCmaxwell::CmaterialEmitter::Cpair::pLuminance = "wattsAndLuminousEfficacy".
luminousPowerCmaxwell::CmaterialEmitter::Cpair::pLuminance = "luminousPower".
illuminanceCmaxwell::CmaterialEmitter::Cpair::pLuminance = "illuminance".
liminousIntensityCmaxwell::CmaterialEmitter::Cpair::pLuminance = "luminousIntensity".
luminanceCmaxwell::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 );  

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • No labels