BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
This is a view of HorizontalLineItem mask.
Definition at line 55 of file LineViews.h.
Public Member Functions | |
HorizontalLineView (HorizontalLineItem *item) | |
~HorizontalLineView () 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 | |
virtual void | onChangedX () |
void | onChangedY () override |
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 y, prevent movement along x. 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 | |
HorizontalLineItem * | m_item |
|
explicit |
Definition at line 116 of file LineViews.cpp.
|
override |
Definition at line 126 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(), MaskAllView::~MaskAllView(), MaskContainerView::~MaskContainerView(), PolygonPointView::~PolygonPointView(), PolygonView::~PolygonView(), RectangleView::~RectangleView(), and VerticalLineView::~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(), VerticalLineView::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(), onChangedY(), RectangleView::onChangedY(), and PolygonPointView::updateParameterizedItem().
|
overrideprotected |
Allows item movement along y, prevent movement along x.
Definition at line 186 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().
|
inlineprotectedvirtualslotinherited |
|
overrideprotectedslot |
Definition at line 144 of file LineViews.cpp.
References IShape2DView::fromSceneY(), m_item, IShape2DView::setBlockOnProperty(), and HorizontalLineItem::setPosY().
|
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 151 of file LineViews.cpp.
References m_item, HorizontalLineItem::posY(), and IShape2DView::toSceneY().
|
overrideprotected |
Definition at line 167 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(), VerticalLineView::onChangedX(), RectangleView::onChangedX(), EllipseView::onChangedY(), 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(), VerticalLineView::onPropertyChange(), EllipseView::right(), RectangleView::right(), PolygonView::update_polygon(), EllipseView::update_position(), RectangleView::update_position(), and VerticalLineView::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(), onPropertyChange(), EllipseView::top(), RectangleView::top(), PolygonView::update_polygon(), EllipseView::update_position(), RectangleView::update_position(), and update_view().
|
inlineoverride |
|
overrideprotectedslot |
Definition at line 156 of file LineViews.cpp.
References IShape2DView::m_adaptor, IShape2DView::m_bounding_rect, m_item, HorizontalLineItem::posY(), IShape2DView::toSceneY(), 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(), VerticalLineView::update_view(), 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(), VerticalLineView::paint(), paint(), MaskAllView::paint(), VerticalLineView::shape(), shape(), RectangleBaseView::update_bounding_rect(), PolygonView::update_polygon(), VerticalLineView::update_view(), update_view(), MaskAllView::update_view(), MaskContainerView::update_view(), and RegionOfInterestView::update_view().
|
private |
Definition at line 79 of file LineViews.h.
Referenced by ~HorizontalLineView(), onChangedY(), onItemDestroyed(), onPropertyChange(), paint(), parameterizedItem(), and update_view().