Definition at line 26 of file SpecularStrategyBuilder.h.
◆ build()
Definition at line 22 of file SpecularStrategyBuilder.cpp.
28 if (roughnessModel == RoughnessModel::TANH || roughnessModel == RoughnessModel::DEFAULT) {
30 return std::make_unique<SpecularMagneticTanhStrategy>();
32 }
else if (roughnessModel == RoughnessModel::NEVOT_CROCE) {
34 return std::make_unique<SpecularMagneticNCStrategy>();
37 throw std::logic_error(
"Invalid roughness model");
40 if (roughnessModel == RoughnessModel::TANH || roughnessModel == RoughnessModel::DEFAULT) {
41 return std::make_unique<SpecularScalarTanhStrategy>();
43 }
else if (roughnessModel == RoughnessModel::NEVOT_CROCE) {
45 return std::make_unique<SpecularScalarNCStrategy>();
48 throw std::logic_error(
"Invalid roughness model");
RoughnessModel roughnessModel() const
References MultiLayer::roughnessModel().
Referenced by SpecularComputation::SpecularComputation().
The documentation for this class was generated from the following files: