BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
MaskViewFactory.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Mask/MaskViewFactory.h
6 //! @brief Defines class MaskViewFactory
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_VIEW_MASK_MASKVIEWFACTORY_H
16 #define BORNAGAIN_GUI_VIEW_MASK_MASKVIEWFACTORY_H
17 
18 #include <QString>
19 
20 class IShape2DView;
21 class SessionItem;
22 class ISceneAdaptor;
23 
24 //! Factory to construct views out of MaskItems for MaskGraphicsScene
25 
27 public:
28  static IShape2DView* createMaskView(SessionItem* item, ISceneAdaptor* adaptor = nullptr);
29 };
30 
31 #endif // BORNAGAIN_GUI_VIEW_MASK_MASKVIEWFACTORY_H
Interface to adapt MaskItems coordinates (expressed in units of IntensityDataItem) to/from scene coor...
Definition: ISceneAdaptor.h:24
Main interface class for views representing MaskItems, Projections on graphics scene.
Definition: IShape2DView.h:27
Factory to construct views out of MaskItems for MaskGraphicsScene.
static IShape2DView * createMaskView(SessionItem *item, ISceneAdaptor *adaptor=nullptr)
Base class for a GUI data item.
Definition: SessionItem.h:204