Refactoring #2240

GUI: InstrumentItem: refactor unit convertor construction

Added by pospelov about 2 years ago. Updated 4 months ago.

Status:BacklogStart date:03 Dec 2018
Priority:NormalDue date:
Assignee:-% Done:


Target version:-



  • Introduce public Simulation::createConvertor()
    • Thus, move all convertors creation on board of corresponding Simulation, get rid of ConverterUtils::createConverter
  • Remove InstrumentItem::createInstrument()
  • Introduce InstrumentItem::createSimulation()
    • Move all simulation creation code from DomainBuilder* on board of corresponding instrument.
  • Introduce InstrumentItem::createConverter()
    • On board it will simply do createSimulation().createConverter()
    • Get rid of DomainObjectBuilder::createUnitConverter
  • Make InstrumentItem to be the interface class which contains only virtual createSimulation()
    • No background, masks, initBeamGroup, updateToRealData, alignedWith etc.


#1 Updated by wuttke 4 months ago

  • Subject changed from Refactor unit convertor construction in InstrumentItem to GUI: InstrumentItem: refactor unit convertor construction

Also available in: Atom PDF