15 #ifndef BORNAGAIN_GUI_VIEW_REALSPACE_REALSPACECANVAS_H
16 #define BORNAGAIN_GUI_VIEW_REALSPACE_REALSPACECANVAS_H
48 std::variant<MultiLayerItem*, LayerItem*, ParticleLayoutItem*, ItemWithParticles*>;
85 T* ppCurrent = std::get_if<T>(¤tVariant);
86 return ppCurrent ? *ppCurrent :
nullptr;
The CautionSign controls appearance of CautionSignWidget on top of parent widget.
Provides 3D object generation for RealSpace presentation.
SceneGeometry m_sceneGeometry
void setCurrentItem(MultiLayerItem *containingMultiLayerItem, ItemForRealSpace item)
GUI::RealSpace::Canvas * m_view
std::variant< MultiLayerItem *, LayerItem *, ParticleLayoutItem *, ItemWithParticles * > ItemForRealSpace
Defines the item types which can be the "current item".
std::optional< ItemForRealSpace > m_currentItem
void showEvent(QShowEvent *) override
CautionSign * m_cautionSign
void changeLayerSize(double layerSizeChangeScale)
MultiLayerItem * m_containingMultiLayerItem
std::unique_ptr< GUI::RealSpace::Model > m_realSpaceModel
RealSpaceCanvas(QWidget *parent=nullptr)
Size and thickness information of layers.
double topOrBottomLayerThickness
double layerMinimumThickness