26 #ifndef GRALE_POLYGONSOURCE_H
28 #define GRALE_POLYGONSOURCE_H
30 #include "graleconfig.h"
31 #include "sourceimage.h"
37 class GRALE_IMPORTEXPORT PolygonSource :
public SourceImage
40 PolygonSource(Vector2D<double> angularpos,
const Polygon2D<double> &p,
double rotangle,
double brightnessScale);
43 SourceImage *createCopy()
const;
44 bool isSerializable()
const {
return true; }
48 bool writeInternal(serut::SerializationInterface &si)
const;
49 bool readInternal(serut::SerializationInterface &si);
50 double getIntensityInternal(Vector2D<double> diff)
const;
51 double getMaxRadius()
const {
return m_maxRadius; }
55 Polygon2D<double> polygon;
58 friend class SourceImage;
63 #endif // GRALE_POLYGONSOURCE_H