BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Provides 3D object generation for RealSpaceWidget. More...
Public Slots | |
void | onChangeLayerSizeAction (double layer_size_scale) |
void | onDefaultViewAction () |
void | onLockViewAction (bool view_locked) |
void | onRowsAboutToBeRemoved (const QModelIndex &parent, int first, int last) |
void | onSavePictureAction () |
void | onSelectionChanged (const QItemSelection &, const QItemSelection &) |
void | onSideViewAction () |
void | onTopViewAction () |
void | updateToSelection () |
Public Member Functions | |
RealSpaceCanvas (QWidget *parent=nullptr) | |
~RealSpaceCanvas () | |
void | setModel (SampleModel *sampleModel=nullptr, QItemSelectionModel *selectionModel=nullptr) |
Private Slots | |
void | defaultView () |
void | onDataChanged (const QModelIndex &index) |
void | resetScene () |
void | sideView () |
void | topView () |
void | updateScene () |
Private Member Functions | |
void | savePicture (const QPixmap &pixmap) |
void | setConnected (SampleModel *model, bool makeConnected) |
Private Attributes | |
QModelIndex | m_currentSelection |
std::unique_ptr< RealSpaceModel > | m_realSpaceModel |
SampleModel * | m_sampleModel |
std::unique_ptr< SceneGeometry > | m_sceneGeometry |
QItemSelectionModel * | m_selectionModel |
RealSpaceView * | m_view |
bool | m_view_locked |
WarningSign * | m_warningSign |
Provides 3D object generation for RealSpaceWidget.
Definition at line 57 of file RealSpaceCanvas.h.
RealSpaceCanvas::RealSpaceCanvas | ( | QWidget * | parent = nullptr | ) |
Definition at line 30 of file RealSpaceCanvas.cpp.
References m_view.
|
default |
|
privateslot |
Definition at line 219 of file RealSpaceCanvas.cpp.
References RealSpaceView::defaultView(), and m_view.
Referenced by onDefaultViewAction(), and updateScene().
|
slot |
Definition at line 122 of file RealSpaceCanvas.cpp.
References m_currentSelection, m_sceneGeometry, and updateScene().
Referenced by RealSpaceWidget::RealSpaceWidget().
|
privateslot |
Definition at line 170 of file RealSpaceCanvas.cpp.
References SessionItemUtils::IsPositionRelated(), SessionModel::itemForIndex(), m_sampleModel, and updateScene().
Referenced by setConnected().
|
slot |
Definition at line 99 of file RealSpaceCanvas.cpp.
References defaultView().
Referenced by RealSpaceWidget::RealSpaceWidget().
|
slot |
Definition at line 114 of file RealSpaceCanvas.cpp.
References m_view_locked, and updateToSelection().
Referenced by RealSpaceWidget::RealSpaceWidget().
|
slot |
Definition at line 139 of file RealSpaceCanvas.cpp.
References SessionModel::index(), m_currentSelection, m_sampleModel, and resetScene().
Referenced by setConnected().
|
slot |
Definition at line 132 of file RealSpaceCanvas.cpp.
References savePicture().
Referenced by RealSpaceWidget::RealSpaceWidget().
|
slot |
Definition at line 76 of file RealSpaceCanvas.cpp.
References updateToSelection().
Referenced by setModel().
|
slot |
Definition at line 104 of file RealSpaceCanvas.cpp.
References sideView().
Referenced by RealSpaceWidget::RealSpaceWidget().
|
slot |
Definition at line 109 of file RealSpaceCanvas.cpp.
References topView().
Referenced by RealSpaceWidget::RealSpaceWidget().
|
privateslot |
Definition at line 212 of file RealSpaceCanvas.cpp.
References m_currentSelection, m_realSpaceModel, m_view, and RealSpaceView::setModel().
Referenced by onRowsAboutToBeRemoved(), and setConnected().
|
private |
Definition at line 146 of file RealSpaceCanvas.cpp.
References AppSvc::projectManager(), ProjectManager::userExportDir(), and GUIHelpers::warning().
Referenced by onSavePictureAction().
|
private |
Definition at line 234 of file RealSpaceCanvas.cpp.
References m_currentSelection, onDataChanged(), onRowsAboutToBeRemoved(), resetScene(), and updateScene().
Referenced by setModel().
void RealSpaceCanvas::setModel | ( | SampleModel * | sampleModel = nullptr , |
QItemSelectionModel * | selectionModel = nullptr |
||
) |
Definition at line 48 of file RealSpaceCanvas.cpp.
References m_sampleModel, m_selectionModel, onSelectionChanged(), setConnected(), and updateToSelection().
Referenced by RealSpaceWidget::hideEvent(), and RealSpaceWidget::showEvent().
|
privateslot |
Definition at line 224 of file RealSpaceCanvas.cpp.
References m_view, and RealSpaceView::sideView().
Referenced by onSideViewAction().
|
privateslot |
Definition at line 229 of file RealSpaceCanvas.cpp.
References m_view, and RealSpaceView::topView().
Referenced by onTopViewAction().
|
privateslot |
Definition at line 180 of file RealSpaceCanvas.cpp.
References WarningSign::clear(), defaultView(), RealSpaceView::getCamera(), RealSpace::Camera::getPos(), SessionModel::itemForIndex(), m_currentSelection, m_realSpaceModel, m_sampleModel, m_sceneGeometry, m_view, m_view_locked, m_warningSign, RealSpaceBuilder::populate(), RealSpaceView::setModel(), and WarningSign::setWarningMessage().
Referenced by onChangeLayerSizeAction(), onDataChanged(), setConnected(), and updateToSelection().
|
slot |
Definition at line 81 of file RealSpaceCanvas.cpp.
References m_currentSelection, m_selectionModel, m_view_locked, FilterPropertyProxy::toSourceIndex(), and updateScene().
Referenced by onLockViewAction(), onSelectionChanged(), and setModel().
|
private |
Definition at line 92 of file RealSpaceCanvas.h.
Referenced by onChangeLayerSizeAction(), onRowsAboutToBeRemoved(), resetScene(), setConnected(), updateScene(), and updateToSelection().
|
private |
Definition at line 94 of file RealSpaceCanvas.h.
Referenced by resetScene(), and updateScene().
|
private |
Definition at line 91 of file RealSpaceCanvas.h.
Referenced by onDataChanged(), onRowsAboutToBeRemoved(), setModel(), and updateScene().
|
private |
Definition at line 97 of file RealSpaceCanvas.h.
Referenced by onChangeLayerSizeAction(), and updateScene().
|
private |
Definition at line 95 of file RealSpaceCanvas.h.
Referenced by setModel(), and updateToSelection().
|
private |
Definition at line 93 of file RealSpaceCanvas.h.
Referenced by RealSpaceCanvas(), defaultView(), resetScene(), sideView(), topView(), and updateScene().
|
private |
Definition at line 96 of file RealSpaceCanvas.h.
Referenced by onLockViewAction(), updateScene(), and updateToSelection().
|
private |
Definition at line 98 of file RealSpaceCanvas.h.
Referenced by updateScene().