C++ | Python |
---|---|
Cmaxwell::CmultiValue::CemitterPair | CemitterPair |
Class used to set the emitter pair when the emission type is set to Color + Luminance.
...
Cmaxwell::CmultiValue::CemitterPair is used to read/write each parameter.
C++ | Python |
---|---|
Cmaxwell::CmultiValue::CemitterPair | CemitterPair |
Methods
Properties --TODO-- revisar
Name | Description | |
---|---|---|
CemitterPair | Class constructor. |
Properties
Name | Description | |
---|---|---|
Crgb | rgb | Color. Cmaxwell::CmaterialEmitter:: |
Cpair:: | ||
pEmissionColor = " | ||
rgb". | ||
Cxyz | xyz | Correlated temperature color. Cmaxwell::CmaterialEmitter:: |
Cpair:: | ||
pEmissionColor = " | ||
xyz". | ||
real | temperature | Temperature color. Cmaxwell:: |
CmaterialEmitter::Cpair:: | ||
pEmissionColor = " | ||
temperature". | ||
real | watts | Luminance. Cmaxwell:: |
CmaterialEmitter::Cpair:: | ||
pLuminance = " | ||
luminousEfficacy | Cmaxwell::Cmultivalue::pType = "pair.wattsAndLuminousEfficacy". | |
luminousPower | Cmaxwell::Cmultivalue::pType = "pair.luminousPower". | |
illuminance | Cmaxwell::Cmultivalue::pType = "pair.illuminance". | |
liminousIntensity | Cmaxwell::Cmultivalue::pType = "pair.luminousIntensity". | |
luminance | Cmaxwell::Cmultivalue::pType = "pair.luminance". |
...
CemitterPair
Class constructor.
...
wattsAndLuminousEfficacy" and Cmaxwell::CmaterialEmitter::Cpair::pEmissionColor = "rgb" or "xzy". | ||
real | luminousEfficacy | Luminance. Cmaxwell::CmaterialEmitter::Cpair::pLuminance = "wattsAndLuminousEfficacy"and Cmaxwell::CmaterialEmitter::Cpair::pEmissionColor = "rgb" or "xzy". |
real | luminousPower | Luminance. Cmaxwell::CmaterialEmitter::Cpair::pLuminance = "luminousPower" and Cmaxwell::CmaterialEmitter::Cpair::pEmissionColor = "rgb" or "xzy". |
real | illuminance | Luminance. Cmaxwell::CmaterialEmitter::Cpair::pLuminance = "illuminance" and Cmaxwell::CmaterialEmitter::Cpair::pEmissionColor = "rgb" or "xzy". |
real | liminousIntensity | Luminance. Cmaxwell::CmaterialEmitter::Cpair::pLuminance = "luminousIntensity" and Cmaxwell::CmaterialEmitter::Cpair::pEmissionColor = "rgb" or "xzy". |
real | luminance | Luminance. Cmaxwell::CmaterialEmitter::Cpair::pLuminance = "lluminance" and Cmaxwell::CmaterialEmitter::Cpair::pEmissionColor = "rgb" or "xzy". |
Methods
Name | Description |
---|---|
CemitterPair | Class constructor. |
Anchor | ||||
---|---|---|---|---|
|
Examples
Code Block | ||||
---|---|---|---|---|
| ||||
// Create and fill an emitter pair. Cmaxwell::CmultiValue::CemitterPair emitterPair; emitterPair.rgb.assign( rgb_color ); // We will use this 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 luminance. emitterPair.illuminance = 100.0; emitterPair.luminousIntensity = 100.0; emitterPair.luminance = 100.0; // Apply the emitter pair to the emitter. newEmitter.setPair( emitterPair ); | ||||
Code Block | ||||
language | javascript
// Create and fill a material emitter pair (not emitter pair!).
Cmaxwell::CmaterialEmitter::Cpair pair;
pair.pEmissionColor = "rgb";
pair.pLuminance = "luminousPower";
// Tell the emitter what parameters of the emitter pair use.
newEmitter.setActivePair( pair ); |
Code Block | ||
---|---|---|
| ||
# Create and fill an emitter pair. emitterPait = CemitterPair(); emitterPair.rgb.assign( rgb_color ); # We will use this 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 luminance. emitterPair.illuminance = 100.0; emitterPair.luminousIntensity = 100.0; emitterPair.luminance = 100.0; # Apply the emitter pair to the emitter. newEmitter.setPair( emitterPair ); |
...
# Create and fill a material emitter pair (not emitter pair!).
pair = Cpair();
pair.pEmissionColor = "rgb";
pair.pLuminance = "luminousPower";
# Tell the emitter what parameters of the emitter pair use.
newEmitter.setActivePair( pair ); |