CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 46 of file MaterialEffectsUpdator.h.

References deltaCov, deltaP, 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  }

Member Data Documentation

Covariance materialEffect::Effect::deltaCov
float materialEffect::Effect::deltaP = 0
float materialEffect::Effect::weight = 1.f