CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
materialEffect::Effect Struct Reference

#include <MaterialEffectsUpdator.h>

Public Member Functions

void combine (Effect const &e1, Effect const &e2)
 

Public Attributes

Covariance deltaCov
 
float deltaP = 0
 
float weight = 1.f
 

Detailed Description

Definition at line 40 of file MaterialEffectsUpdator.h.

Member Function Documentation

◆ combine()

void materialEffect::Effect::combine ( Effect const &  e1,
Effect const &  e2 
)
inline

Definition at line 46 of file MaterialEffectsUpdator.h.

References deltaCov, deltaP, StorageManager_cfg::e1, and weight.

Referenced by GsfCombinedMaterialEffectsUpdator::compute().

46  {
47  weight *= e1.weight * e2.weight;
48  deltaP += e1.deltaP + e2.deltaP;
49  deltaCov += e1.deltaCov;
50  deltaCov += e2.deltaCov;
51  }
Definition: weight.py:1

Member Data Documentation

◆ deltaCov

Covariance materialEffect::Effect::deltaCov

◆ deltaP

float materialEffect::Effect::deltaP = 0

◆ weight

float materialEffect::Effect::weight = 1.f