26 #ifndef GRALE_POINTSOURCE_H
28 #define GRALE_POINTSOURCE_H
30 #include "graleconfig.h"
31 #include "sourceimage.h"
36 class GRALE_IMPORTEXPORT PointSource :
public SourceImage
39 PointSource(Vector2D<double> angularpos,
double brightnessScale);
41 SourceImage *createCopy()
const;
42 bool isSerializable()
const {
return true; }
46 bool writeInternal(serut::SerializationInterface &si)
const;
47 bool readInternal(serut::SerializationInterface &si);
48 double getIntensityInternal(Vector2D<double> diff)
const {
return 1.0; }
49 double getMaxRadius()
const {
return 0; }
51 friend class SourceImage;
56 #endif // GRALE_POINTSOURCE_H