CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 39 of file MaterialEffectsUpdator.h.

Member Function Documentation

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

Definition at line 45 of file MaterialEffectsUpdator.h.

References deltaCov, deltaP, and weight.

Referenced by GsfCombinedMaterialEffectsUpdator::compute().

45  {
46  weight *= e1.weight*e2.weight;
47  deltaP+=e1.deltaP+e2.deltaP;
48  deltaCov+=e1.deltaCov; deltaCov+=e2.deltaCov;
49  }
Float e1
Definition: deltaR.h:20
Float e2
Definition: deltaR.h:21

Member Data Documentation

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