Open PaperOpt
DetectorArs Class Reference

#include <DetectorArs.h>

Inheritance diagram for DetectorArs:
Collaboration diagram for DetectorArs:

List of all members.

Public Member Functions

 DetectorArs ()
virtual ~DetectorArs ()
 DetectorArs (int reftra, int apt_type, float apt_diameter, float distance, float theta_max, float theta_min, float theta_step, int theta_nbr, float phi_max, float phi_min, float phi_step, int phi_nbr, int nbr_lambda, Detector *el)
virtual int Process (WavePacket &wp, int up_down, int internal) const
virtual int WriteResults2 (std::vector< double > power_inc, IO::Output &rOutput) const

Detailed Description

This detector is very slow because it goes through all positions to check wether the wave packet goes through the aperture at the specific position. Use DetectorArsGlobe, which only takes the direction of the wave packet into account, for faster (approximated) calculations.

See also:
DetectorArsGlobe

Constructor & Destructor Documentation

DetectorArs::DetectorArs ( )

Constructor.

DetectorArs::~DetectorArs ( ) [virtual]

Destructor.

DetectorArs::DetectorArs ( int  reftra,
int  apt_type,
float  apt_diameter,
float  distance,
float  theta_max,
float  theta_min,
float  theta_step,
int  theta_nbr,
float  phi_max,
float  phi_min,
float  phi_step,
int  phi_nbr,
int  nbr_lambda,
Detector el 
)

Constructor.

Parameters:
reftra1 reflectance or 0 transmittance.
apt_type
apt_diameter
distancedistance to the paper surface.
theta_max
theta_min
theta_step
theta_nbr
phi_max
phi_min
phi_step
phi_nbr
elpointer to the previous detector.

Member Function Documentation

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

Process the wave packet and mesured power is tranformed into BSDF.

Parameters:
wpInstance of wavepacket.
up_down.

Reimplemented from Detector.

Here is the call graph for this function:

int DetectorArs::WriteResults2 ( std::vector< double >  power_inc,
IO::Output rOutput 
) const [virtual]

Writes results as XML to the results file in rOutput.

Parameters:
rOutputreference to an Output object.
power_incnumber of wavepackets that don't have error state.

Reimplemented from Detector.

Here is the call graph for this function:


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