BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Member Functions | |
AxesPlotControllerImpl (ViewportAxisPlotController *controller, QCPAxis *axis) | |
~AxesPlotControllerImpl () | |
void | init_axis () |
Init axis from item and setup connections. More... | |
void | setAxisLogScaleFromItem () |
Sets log scale from item. More... | |
void | setAxisRangeFromItem () |
Sets axesRange from SessionItem. More... | |
void | setConnected () |
Connects QCustomPlot signals with controller methods. More... | |
void | setDisconnected () |
Disonnects QCustomPlot signals. More... | |
void | updateLowerRange (const ViewportAxisItem *item) |
void | updateUpperRange (const ViewportAxisItem *item) |
Public Attributes | |
QCPAxis * | m_axis {nullptr} |
std::unique_ptr< QMetaObject::Connection > | m_axisConn |
bool | m_blockUpdate {false} |
ViewportAxisPlotController * | m_self {nullptr} |
std::unique_ptr< AxisTitleController > | m_titleController |
Definition at line 26 of file viewportaxisplotcontroller.cpp.
|
inline |
Definition at line 34 of file viewportaxisplotcontroller.cpp.
References ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_axisConn.
|
inline |
Definition at line 101 of file viewportaxisplotcontroller.cpp.
References ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setDisconnected().
|
inline |
Init axis from item and setup connections.
Definition at line 77 of file viewportaxisplotcontroller.cpp.
References ModelView::ItemListener< T >::currentItem(), ModelView::SessionItem::item(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_axis, ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_self, ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_titleController, ModelView::ViewportAxisItem::P_TITLE, ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setAxisLogScaleFromItem(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setAxisRangeFromItem(), and ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setConnected().
|
inline |
Sets log scale from item.
Definition at line 70 of file viewportaxisplotcontroller.cpp.
References ModelView::ItemListener< T >::currentItem(), ModelView::ViewportAxisItem::is_in_log(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_axis, ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_self, and ModelView::Utils::SetLogarithmicScale().
Referenced by ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::init_axis().
|
inline |
Sets axesRange from SessionItem.
Definition at line 62 of file viewportaxisplotcontroller.cpp.
References ModelView::ItemListener< T >::currentItem(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_axis, ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_self, and ModelView::ViewportAxisItem::range().
Referenced by ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::init_axis().
|
inline |
Connects QCustomPlot signals with controller methods.
Definition at line 43 of file viewportaxisplotcontroller.cpp.
References ModelView::ItemListener< T >::currentItem(), ModelView::ItemListenerBase::item(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_axis, ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_axisConn, ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_blockUpdate, and ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_self.
Referenced by ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::init_axis(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::updateLowerRange(), and ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::updateUpperRange().
|
inline |
Disonnects QCustomPlot signals.
Definition at line 59 of file viewportaxisplotcontroller.cpp.
References ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_axisConn.
Referenced by ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::~AxesPlotControllerImpl(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::updateLowerRange(), and ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::updateUpperRange().
|
inline |
Definition at line 87 of file viewportaxisplotcontroller.cpp.
References ModelView::ItemListenerBase::item(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_axis, ModelView::BasicAxisItem::P_MIN, ModelView::SessionItem::property(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setConnected(), and ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setDisconnected().
|
inline |
Definition at line 94 of file viewportaxisplotcontroller.cpp.
References ModelView::ItemListenerBase::item(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_axis, ModelView::BasicAxisItem::P_MAX, ModelView::SessionItem::property(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setConnected(), and ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setDisconnected().
QCPAxis* ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_axis {nullptr} |
Definition at line 29 of file viewportaxisplotcontroller.cpp.
Referenced by ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::init_axis(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setAxisLogScaleFromItem(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setAxisRangeFromItem(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setConnected(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::updateLowerRange(), and ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::updateUpperRange().
std::unique_ptr<QMetaObject::Connection> ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_axisConn |
Definition at line 31 of file viewportaxisplotcontroller.cpp.
Referenced by ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::AxesPlotControllerImpl(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setConnected(), and ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setDisconnected().
bool ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_blockUpdate {false} |
Definition at line 30 of file viewportaxisplotcontroller.cpp.
Referenced by ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setConnected().
ViewportAxisPlotController* ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_self {nullptr} |
Definition at line 28 of file viewportaxisplotcontroller.cpp.
Referenced by ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::init_axis(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setAxisLogScaleFromItem(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setAxisRangeFromItem(), and ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setConnected().
std::unique_ptr<AxisTitleController> ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::m_titleController |
Definition at line 32 of file viewportaxisplotcontroller.cpp.
Referenced by ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::init_axis().