Skip to content
Snippets Groups Projects
Commit a42fd328 authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Fixed bugs in: Refactor: pulled dwba decoration of form factors out of...

Fixed bugs in: Refactor: pulled dwba decoration of form factors out of LayerStrategyBuilder and into global function
parent 5dde68c7
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@
#include "DiffuseDWBASimulation.h"
#include "FormFactorDWBAConstZ.h"
#include "MessageService.h"
#include "FormFactorTools.h"
//! Carry out one simulation thread.
......
......@@ -25,12 +25,12 @@ namespace FormFactorTools {
//! Decorates the given formfactor with a scalar dwba formfactor and returns
//! this form factor
IFormFactor* createDWBAScalarFormFactor(IFormFactor* p_form_factor,
const LayerSpecularInfo &specular_info, double depth) const
const LayerSpecularInfo &specular_info, double depth=0.0);
//! Decorates the given formfactor with a matrix dwba formfactor and returns
//! this form factor
IFormFactor* createDWBAMatrixFormFactor(IFormFactor* p_form_factor,
const LayerSpecularInfo &specular_info, double depth) const
const LayerSpecularInfo &specular_info, double depth=0.0);
}
......
......@@ -14,10 +14,12 @@
// ************************************************************************** //
#include "FormFactorTools.h"
#include "FormFactorDWBAConstZ.h"
#include "FormFactorDWBAPolConstZ.h"
IFormFactor* FormFactorTools::createDWBAScalarFormFactor(
IFormFactor* p_form_factor, const LayerSpecularInfo& specular_info,
double depth) const
double depth)
{
FormFactorDWBAConstZ *p_result =
new FormFactorDWBAConstZ(p_form_factor, depth);
......@@ -27,7 +29,7 @@ IFormFactor* FormFactorTools::createDWBAScalarFormFactor(
IFormFactor* FormFactorTools::createDWBAMatrixFormFactor(
IFormFactor* p_form_factor, const LayerSpecularInfo& specular_info,
double depth) const
double depth)
{
FormFactorDWBAPol *p_result(0);
if (depth) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment