Sys::Source class reference
[Core module]

Declaration  

#include <Goptical/Sys/Source>

namespace Goptical {
namespace Sys {
class Source;
};
};

This class is a member of the Sys namespace.

Inheritance  

Description  

This class is the base class for all light sources implementations.

Members  

See also the full member list section for this class.

Inherited members  

Type  

Functions  

Members detail  

Source(const Math::VectorPair3 &position)  

Create a source at given position.

void add_spectral_line(const Light::SpectralLine &l)  

Add a new wavelen for ray generation

void clear_spectrum()  

Clear wavelen list

template <Trace::IntensityMode m> void generate_rays(Trace::Result &result, const targets_t &entry) const  

Generate light rays from source

double get_max_intensity() const  

Get maximal spectral line intensity

double get_min_intensity() const  

Get minimal spectral line intensity

void set_material(const const_ref<Material::Base> &m)  

Set material where light rays are generated. system environment material is used by default.

void set_spectral_line(const Light::SpectralLine &l, int index = 0)  

Set a wavelen in list for ray generation

void single_spectral_line(const Light::SpectralLine &l)  

Clear ray wavelen list and set a single wavelen

typedef std::vector<const Sys::Element*> targets_t  

No documentation available

Valid XHTML 1.0 StrictGenerated by diaxen on Sun Jan 8 00:47:25 2012 using MkDoc