BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
This is a view of VerticalLineItem mask.
Definition at line 25 of file LineViews.h.
Public Member Functions | |
VerticalLineView (VerticalLineItem *item) | |
~VerticalLineView () override | |
virtual void | addView (IShape2DView *childView, int row=0) |
QRectF | boundingRect () const override |
SessionItem * | parameterizedItem () const override |
void | setSceneAdaptor (const ISceneAdaptor *adaptor) |
QPainterPath | shape () const override |
int | type () const override |
Protected Slots | |
void | onChangedX () override |
virtual void | onChangedY () |
void | onPropertyChange () override |
void | update_view () override |
Protected Member Functions | |
bool | blockOnProperty () const |
void | disconnectFromItem (SessionItem *item) |
qreal | fromSceneX (qreal value) const |
convert scene coordinates to ColorMap plot coordinates More... | |
qreal | fromSceneY (qreal value) const |
QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
Allows item movement along x, prevent movement along y. More... | |
QPainterPath | maskedShape () const |
Returns the shape with all masking already applied. More... | |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) override |
void | setBlockOnProperty (bool value) |
qreal | toSceneX (qreal value) const |
qreal | toSceneY (qreal value) const |
Protected Attributes | |
const ISceneAdaptor * | m_adaptor |
bool | m_block_on_property_change |
QRectF | m_bounding_rect |
Private Member Functions | |
void | onItemDestroyed () override |
void | onItemPropertyChange (const QString &propertyName) |
Private Attributes | |
VerticalLineItem * | m_item |
|
explicit |
Definition at line 29 of file LineViews.cpp.
|
override |
Definition at line 39 of file LineViews.cpp.
References IShape2DView::disconnectFromItem(), and m_item.
|
virtualinherited |
Reimplemented in PolygonView.
Definition at line 129 of file IShape2DView.cpp.
Referenced by MaskGraphicsScene::updateViews().
|
protectedinherited |
Definition at line 140 of file IShape2DView.cpp.
References IShape2DView::m_block_on_property_change.
|
overrideinherited |
|
protectedinherited |
Definition at line 145 of file IShape2DView.cpp.
References SessionItem::mapper(), and ModelMapper::unsubscribe().
Referenced by EllipseView::~EllipseView(), HorizontalLineView::~HorizontalLineView(), MaskAllView::~MaskAllView(), MaskContainerView::~MaskContainerView(), PolygonPointView::~PolygonPointView(), PolygonView::~PolygonView(), RectangleView::~RectangleView(), and ~VerticalLineView().
|
protectedinherited |
convert scene coordinates to ColorMap plot coordinates
Definition at line 119 of file IShape2DView.cpp.
References ISceneAdaptor::fromSceneX(), and IShape2DView::m_adaptor.
Referenced by EllipseView::mouseMoveEvent(), RectangleView::mouseMoveEvent(), EllipseView::onChangedX(), onChangedX(), RectangleView::onChangedX(), and PolygonPointView::updateParameterizedItem().
|
protectedinherited |
Definition at line 124 of file IShape2DView.cpp.
References ISceneAdaptor::fromSceneY(), and IShape2DView::m_adaptor.
Referenced by EllipseView::mouseMoveEvent(), RectangleView::mouseMoveEvent(), EllipseView::onChangedY(), HorizontalLineView::onChangedY(), RectangleView::onChangedY(), and PolygonPointView::updateParameterizedItem().
|
overrideprotected |
Allows item movement along x, prevent movement along y.
Definition at line 98 of file LineViews.cpp.
|
protectedinherited |
Returns the shape with all masking already applied.
Definition at line 79 of file IShape2DView.cpp.
References MaskEditorHelper::ELLIPSE, MaskEditorHelper::HORIZONTALLINE, MaskEditorHelper::POLYGON, MaskEditorHelper::RECTANGLE, and MaskEditorHelper::VERTICALLINE.
Referenced by IShape2DView::paint().
|
overrideprotectedslot |
Definition at line 56 of file LineViews.cpp.
References IShape2DView::fromSceneX(), m_item, IShape2DView::setBlockOnProperty(), and VerticalLineItem::setPosX().
|
inlineprotectedvirtualslotinherited |
|
overrideprivatevirtual |
|
privateinherited |
Definition at line 151 of file IShape2DView.cpp.
References MaskItem::isIsVisiblePropertyName(), MaskItem::isMaskValuePropertyName(), IShape2DView::m_block_on_property_change, IShape2DView::onPropertyChange(), and IShape2DView::parameterizedItem().
Referenced by IShape2DView::IShape2DView().
|
overrideprotectedslot |
Definition at line 63 of file LineViews.cpp.
References m_item, VerticalLineItem::posX(), and IShape2DView::toSceneX().
|
overrideprotected |
Definition at line 79 of file LineViews.cpp.
References MaskEditorHelper::getMaskBrush(), MaskEditorHelper::getMaskPen(), IShape2DView::m_bounding_rect, and m_item.
|
overridevirtual |
|
protectedinherited |
Definition at line 135 of file IShape2DView.cpp.
References IShape2DView::m_block_on_property_change.
Referenced by EllipseView::onChangedX(), onChangedX(), RectangleView::onChangedX(), EllipseView::onChangedY(), HorizontalLineView::onChangedY(), and RectangleView::onChangedY().
|
inherited |
Definition at line 55 of file IShape2DView.cpp.
References IShape2DView::m_adaptor, ISceneAdaptor::update_request(), and IShape2DView::update_view().
Referenced by MaskViewFactory::createMaskView().
|
override |
|
protectedinherited |
Definition at line 109 of file IShape2DView.cpp.
References IShape2DView::m_adaptor, and ISceneAdaptor::toSceneX().
Referenced by EllipseView::left(), RectangleView::left(), EllipseView::onPropertyChange(), onPropertyChange(), EllipseView::right(), RectangleView::right(), PolygonView::update_polygon(), EllipseView::update_position(), RectangleView::update_position(), and update_view().
|
protectedinherited |
Definition at line 114 of file IShape2DView.cpp.
References IShape2DView::m_adaptor, and ISceneAdaptor::toSceneY().
Referenced by EllipseView::bottom(), RectangleView::bottom(), EllipseView::onPropertyChange(), HorizontalLineView::onPropertyChange(), EllipseView::top(), RectangleView::top(), PolygonView::update_polygon(), EllipseView::update_position(), RectangleView::update_position(), and HorizontalLineView::update_view().
|
inlineoverride |
|
overrideprotectedslot |
Definition at line 68 of file LineViews.cpp.
References IShape2DView::m_adaptor, IShape2DView::m_bounding_rect, m_item, VerticalLineItem::posX(), IShape2DView::toSceneX(), and ISceneAdaptor::viewportRectangle().
|
protectedinherited |
Definition at line 67 of file IShape2DView.h.
Referenced by RegionOfInterestView::boundingRect(), IShape2DView::fromSceneX(), IShape2DView::fromSceneY(), IShape2DView::setSceneAdaptor(), IShape2DView::toSceneX(), IShape2DView::toSceneY(), update_view(), HorizontalLineView::update_view(), MaskAllView::update_view(), MaskContainerView::update_view(), and RegionOfInterestView::update_view().
|
protectedinherited |
Definition at line 69 of file IShape2DView.h.
Referenced by IShape2DView::blockOnProperty(), IShape2DView::onItemPropertyChange(), and IShape2DView::setBlockOnProperty().
|
protectedinherited |
Definition at line 68 of file IShape2DView.h.
Referenced by IShape2DView::boundingRect(), paint(), HorizontalLineView::paint(), MaskAllView::paint(), shape(), HorizontalLineView::shape(), RectangleBaseView::update_bounding_rect(), PolygonView::update_polygon(), update_view(), HorizontalLineView::update_view(), MaskAllView::update_view(), MaskContainerView::update_view(), and RegionOfInterestView::update_view().
|
private |
Definition at line 49 of file LineViews.h.
Referenced by ~VerticalLineView(), onChangedX(), onItemDestroyed(), onPropertyChange(), paint(), parameterizedItem(), and update_view().