Feature #762

Updated by Knödlseder Jürgen over 11 years ago

The sky models have actually a double logic, with major spatial classes such as point source, extended models and diffuse models that reflect themselves in the implementation of the @GModelSky@ class. This is not really necessary.

@GModelSky@ should therefore become a real class instead of an abstract class, and the derived classes @GModelPointSource@, @GModelExtendedSource@ and @GModelDiffuseSource@ should be removed. The @GModelSky::type@ method needs to be implemented for this purpose, and the method should return the type string dependent on the spatial model type.

The spatial model type, implemented by the base class @GModelSpatial@ should be declinated in the following derived classes:
* @GModelSpatialPointSource@
* @GModelSpatialRadial@
* @GModelSpatialElliptical@
* @GModelSpatialDiffuse@

The @GModelSpatialPointSource@ is the existing @GModelSpatialPtsrc@ class that simply needs to be renamed, all other classes are abstract base classes from which the particular spatial models derived. Below a graphical representation of the new organization.

!spatial-reorganisation.jpg!

Back