rm duplicate code in ISimulation child classes; unify IElement child classes

In !1269 (merged) (#409 (closed)), the ISimulation hierarchy was flattened by removing ISimulation2D. To make this possible, some duplicate code had to be admitted in ScatteringSimulation and OffspecSimulation. Even before, some code was duplicate in ISimulation2D and DepthprobeSimulation. This needs to be cleaned up.

Specifically, we have identical code in ScatteringSimulation and OffspecSimulation for fcts

  • initDistributionHandler
  • createComputation
  • normalize
  • addBackgroundIntensity
  • addDataToCache
  • moveDataFromCache (gone in i410c, 0cf87f6d)
  • force_polarized
Edited by Joachim Wuttke