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

Enable FullFresnelMap to retrieve/calculate Fresnel coefficients of any layer

parent 7939d344
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,18 @@ size_t FullFresnelMap::size() const ...@@ -32,6 +32,18 @@ size_t FullFresnelMap::size() const
return m_full_map.size(); return m_full_map.size();
} }
const ILayerRTCoefficients*FullFresnelMap::getOutCoefficients(
const SimulationElement& sim_element, size_t layer_index) const
{
return layerFresnelMap(layer_index)->getOutCoefficients(sim_element);
}
const ILayerRTCoefficients*FullFresnelMap::getInCoefficients(
const SimulationElement& sim_element, size_t layer_index) const
{
return layerFresnelMap(layer_index)->getInCoefficients(sim_element);
}
const ILayerSpecularInfo* FullFresnelMap::layerFresnelMap(size_t index) const const ILayerSpecularInfo* FullFresnelMap::layerFresnelMap(size_t index) const
{ {
return m_full_map[index]; return m_full_map[index];
......
...@@ -18,7 +18,9 @@ ...@@ -18,7 +18,9 @@
#include "SafePointerVector.h" #include "SafePointerVector.h"
class ILayerRTCoefficients;
class ILayerSpecularInfo; class ILayerSpecularInfo;
class SimulationElement;
class FullFresnelMap class FullFresnelMap
{ {
...@@ -30,6 +32,15 @@ public: ...@@ -30,6 +32,15 @@ public:
size_t size() const; size_t size() const;
//! Retrieves the amplitude coefficients for a (time-reversed) outgoing wavevector.
const ILayerRTCoefficients* getOutCoefficients(const SimulationElement& sim_element,
size_t layer_index) const;
//! Retrieves the amplitude coefficients for an incoming wavevector.
const ILayerRTCoefficients* getInCoefficients(const SimulationElement& sim_element,
size_t layer_index) const;
const ILayerSpecularInfo* layerFresnelMap(size_t index) const; const ILayerSpecularInfo* layerFresnelMap(size_t index) const;
private: private:
SafePointerVector<ILayerSpecularInfo> m_full_map; SafePointerVector<ILayerSpecularInfo> m_full_map;
......
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