26 #ifndef GRALE_DISCRETESOURCE_H
28 #define GRALE_DISCRETESOURCE_H
30 #include "graleconfig.h"
31 #include "sourceimage.h"
39 class GRALE_IMPORTEXPORT DiscreteSource :
public SourceImage
42 DiscreteSource(Vector2D<double> angularpos,
double angle,
double brightnessScale);
45 bool loadFITS(
const std::string &fname,
double angularWidth,
double angularHeight);
46 bool setGridFunction(
const GridFunction *pGridFunction);
48 SourceImage *createCopy()
const;
51 double getIntensityInternal(Vector2D<double> diff)
const;
52 double getMaxRadius()
const {
return m_maxRadius; }
56 GridFunction *m_pGridFunction;
58 friend class SourceImage;
64 #endif // GRALE_DISCRETESOURCE_H