BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Member Functions | |
GraphViewportPlotControllerImpl (GraphViewportPlotController *master, QCustomPlot *plot) | |
void | add_controller_for_item (SessionItem *parent, const TagRow &tagrow) |
Adds controller for item. More... | |
void | create_axis_controllers () |
Creates axes controllers. More... | |
void | create_graph_controllers () |
Run through all GraphItem's and create graph controllers for QCustomPlot. More... | |
void | remove_controller_for_item (SessionItem *parent, const TagRow &tagrow) |
Remove GraphPlotController corresponding to GraphItem. More... | |
void | setup_components () |
Setup controller components. More... | |
GraphViewportItem * | viewport_item () |
Public Attributes | |
QCustomPlot * | custom_plot {nullptr} |
std::list< std::unique_ptr< GraphPlotController > > | graph_controllers |
GraphViewportPlotController * | master {nullptr} |
std::unique_ptr< ViewportAxisPlotController > | xAxisController |
std::unique_ptr< ViewportAxisPlotController > | yAxisController |
Definition at line 27 of file graphviewportplotcontroller.cpp.
|
inline |
Definition at line 34 of file graphviewportplotcontroller.cpp.
|
inline |
Adds controller for item.
Definition at line 76 of file graphviewportplotcontroller.cpp.
References ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::custom_plot, ModelView::SessionItem::getItem(), ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::graph_controllers, ModelView::TagRow::row, and ModelView::TagRow::tag.
|
inline |
Creates axes controllers.
Definition at line 50 of file graphviewportplotcontroller.cpp.
References ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::custom_plot, ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::viewport_item(), ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::xAxisController, and ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::yAxisController.
Referenced by ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::setup_components().
|
inline |
Run through all GraphItem's and create graph controllers for QCustomPlot.
Definition at line 63 of file graphviewportplotcontroller.cpp.
References ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::custom_plot, ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::graph_controllers, and ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::viewport_item().
Referenced by ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::setup_components().
|
inline |
Remove GraphPlotController corresponding to GraphItem.
Definition at line 92 of file graphviewportplotcontroller.cpp.
References ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::custom_plot, ModelView::SessionItem::getItem(), ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::graph_controllers, ModelView::TagRow::row, and ModelView::TagRow::tag.
|
inline |
Setup controller components.
Definition at line 42 of file graphviewportplotcontroller.cpp.
References ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::create_axis_controllers(), and ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::create_graph_controllers().
|
inline |
Definition at line 39 of file graphviewportplotcontroller.cpp.
References ModelView::ItemListener< T >::currentItem(), and ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::master.
Referenced by ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::create_axis_controllers(), and ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::create_graph_controllers().
QCustomPlot* ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::custom_plot {nullptr} |
Definition at line 29 of file graphviewportplotcontroller.cpp.
Referenced by ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::add_controller_for_item(), ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::create_axis_controllers(), ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::create_graph_controllers(), and ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::remove_controller_for_item().
std::list<std::unique_ptr<GraphPlotController> > ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::graph_controllers |
Definition at line 30 of file graphviewportplotcontroller.cpp.
Referenced by ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::add_controller_for_item(), ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::create_graph_controllers(), and ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::remove_controller_for_item().
GraphViewportPlotController* ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::master {nullptr} |
Definition at line 28 of file graphviewportplotcontroller.cpp.
Referenced by ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::viewport_item().
std::unique_ptr<ViewportAxisPlotController> ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::xAxisController |
Definition at line 31 of file graphviewportplotcontroller.cpp.
Referenced by ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::create_axis_controllers().
std::unique_ptr<ViewportAxisPlotController> ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::yAxisController |
Definition at line 32 of file graphviewportplotcontroller.cpp.
Referenced by ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::create_axis_controllers().