Open PaperOpt
thinFilm Class Reference

#include <HomogeneousLayer.h>

Inheritance diagram for thinFilm:
Collaboration diagram for thinFilm:

List of all members.

Public Member Functions

 thinFilm ()
 ~thinFilm ()
 thinFilm (ScatteringParameters *sp, StructureObject *prevStructureObject, std::vector< float > &rLambda)
virtual int Process (WavePacket &wp, int up_down, int internal) const

Protected Attributes

float mThickness

Detailed Description

This class represents a thin film interference Wave packets are returned according to snell's law in reflection and same direction in transmittance refractive index thickness


Constructor & Destructor Documentation

thinFilm::thinFilm ( )
thinFilm::~thinFilm ( )
thinFilm::thinFilm ( ScatteringParameters sp,
StructureObject prevStructureObject,
std::vector< float > &  rLambda 
)

Constructor

Parameters:
refrIndexrefrcative index of the thin film
prevStructureObjectpointer to the previous paper object.
rLambdathe simulated wavelengths.

Set object type so that no surface scattering at layer boundary is performed

Here is the call graph for this function:


Member Function Documentation

int thinFilm::Process ( WavePacket wp,
int  up_down,
int  internal 
) const [virtual]

Picks the wavelength of the wave packet and interpolate transmittance/reflectance for the incident angle onto the layer

Parameters:
wpthe wave packet
up_down1 if wp going up, -1 if wp going down
internaltells if the wave packet should start within layer or if layer boundary should be applied first.
Returns:
1 if wave packet going up, -1 if going down

Calculate reflectance and transmittance

If reflected apply specular reflection return 1 ( going up), -1 (going down)

If transmitted, move the wp downward to the film surface

Implements StructureObject.

Here is the call graph for this function:


Member Data Documentation

float thinFilm::mThickness [protected]

The documentation for this class was generated from the following files: