Change request #3145

Properly set region for GModelSpatialDiffuseCube and GModelSpatialComposite

Added by Tibaldo Luigi almost 5 years ago. Updated over 4 years ago.

Status:ClosedStart date:01/23/2020
Priority:NormalDue date:
Assigned To:Knödlseder Jürgen% Done:

100%

Category:-
Target version:1.7.0
Duration:

Description

For the moment the region is centered on 0,0 and has a radius of 180 deg (I guess this was a placeholder).
For GModelSpatialDiffuseCube it should be implemented in the same way as GModelSpatialDiffuseMap.


Recurrence

No recurrence.


Related issues

Related to GammaLib - Change request #3258: Change GModelSpatial::region() method to GModelSpatial::r... New 06/30/2020
Related to GammaLib - Feature #3099: Implement region method for spatial model type 'DiffuseMa... Closed 12/11/2019

History

#1 Updated by Knödlseder Jürgen almost 5 years ago

  • Target version set to 1.7.0

#2 Updated by Knödlseder Jürgen over 4 years ago

  • Status changed from New to In Progress
  • Assigned To set to Knödlseder Jürgen
  • % Done changed from 0 to 50

The code now uses the GSkyMap::region_circle() method to set the sky region in both the GModelSpatialDiffuseCube and GModelSpatialDiffuseMap classes.

I also implemented the GModelSpatialDiffuseCube::contains() method, which is a copy of the GModelSpatialDiffuseMap::contains() method.

#3 Updated by Knödlseder Jürgen over 4 years ago

For the GModelSpatialComposite model the situation is more complicated, since it would require a method that combines different sky region circles into a single sky region circle, and it is actually questionable whether this would make sense.

Probably a better approach would be that GModelSpatial::region() returns a GRegions() object, that in case of a composite model would simply contain a list of sky regions. I added the change request #3258 to cover this future change.

#4 Updated by Knödlseder Jürgen over 4 years ago

  • Related to Change request #3258: Change GModelSpatial::region() method to GModelSpatial::regions() that returns a GRegions object added

#5 Updated by Knödlseder Jürgen over 4 years ago

  • Related to Feature #3099: Implement region method for spatial model type 'DiffuseMapCube' added

#6 Updated by Knödlseder Jürgen over 4 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100

Merged into devel.

Also available in: Atom PDF