BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Interface to convert coordinates of "scene" to coordinates of "widget". More...
Public Member Functions | |
virtual | ~SceneAdapterInterface ()=default |
virtual double | fromSceneX (double) const =0 |
convert scene x-coordinate to local axis coordinate More... | |
virtual double | fromSceneY (double) const =0 |
convert scene y-coordinate to local axis coordinate More... | |
virtual double | toSceneX (double) const =0 |
convert local x-coordinate to scene coordinate More... | |
virtual double | toSceneY (double) const =0 |
convert local y-coordinate to scene coordinate More... | |
virtual QRectF | viewportRectangle () const =0 |
returns viewport rectangle in scene coordinates More... | |
Interface to convert coordinates of "scene" to coordinates of "widget".
Used in the context of QCustomPlot being embedded into QGraphicsScene. Converts QGraphicsScene coordinates in the coordinates of local system of QCustomPlot and vice versa.
Definition at line 28 of file sceneadapterinterface.h.
|
virtualdefault |
|
pure virtual |
convert scene x-coordinate to local axis coordinate
Implemented in ModelView::CustomPlotSceneAdapter.
|
pure virtual |
convert scene y-coordinate to local axis coordinate
Implemented in ModelView::CustomPlotSceneAdapter.
|
pure virtual |
convert local x-coordinate to scene coordinate
Implemented in ModelView::CustomPlotSceneAdapter.
|
pure virtual |
convert local y-coordinate to scene coordinate
Implemented in ModelView::CustomPlotSceneAdapter.
|
pure virtual |
returns viewport rectangle in scene coordinates
Implemented in ModelView::CustomPlotSceneAdapter.
Referenced by gui2::ElementView::stretchRectLeft(), and gui2::ElementView::stretchRectRight().