BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
This is a View of polygon point for PolygonMaskItem.
Definition at line 24 of file PolygonPointView.h.
Signals | |
void | closePolygonRequest (bool) |
void | propertyChanged () |
Public Member Functions | |
PolygonPointView (PolygonPointItem *item) | |
~PolygonPointView () override | |
virtual void | addView (IShape2DView *childView, int row=0) |
QRectF | boundingRect () const override |
SessionItem * | parameterizedItem () const override |
void | setSceneAdaptor (const ISceneAdaptor *adaptor) |
int | type () const override |
void | updateParameterizedItem (const QPointF &pos) |
Protected Slots | |
virtual void | onChangedX () |
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 |
void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
QPainterPath | maskedShape () const |
Returns the shape with all masking already applied. More... | |
void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) override |
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 | |
PolygonPointItem * | m_item |
bool | m_on_hover |
|
explicit |
Definition at line 20 of file PolygonPointView.cpp.
|
override |
Definition at line 29 of file PolygonPointView.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.
|
override |
Definition at line 34 of file PolygonPointView.cpp.
Referenced by paint().
|
signal |
Referenced by PolygonView::addView(), hoverEnterEvent(), and hoverLeaveEvent().
|
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(), 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 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 updateParameterizedItem().
|
overrideprotected |
Definition at line 76 of file PolygonPointView.cpp.
References closePolygonRequest(), and m_on_hover.
|
overrideprotected |
Definition at line 83 of file PolygonPointView.cpp.
References closePolygonRequest(), and m_on_hover.
|
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().
|
overrideprotected |
Definition at line 71 of file PolygonPointView.cpp.
References updateParameterizedItem().
|
inlineprotectedvirtualslotinherited |
|
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 55 of file PolygonPointView.cpp.
References propertyChanged().
|
overrideprotected |
Definition at line 60 of file PolygonPointView.cpp.
References boundingRect(), MaskEditorHelper::getSelectionMarkerBrush(), MaskEditorHelper::getSelectionMarkerPen(), and m_on_hover.
|
overridevirtual |
|
signal |
Referenced by PolygonView::addView(), onPropertyChange(), and PolygonView::update_points().
|
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(), 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().
|
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(), HorizontalLineView::onPropertyChange(), EllipseView::top(), RectangleView::top(), PolygonView::update_polygon(), EllipseView::update_position(), RectangleView::update_position(), and HorizontalLineView::update_view().
|
inlineoverride |
|
overrideprotectedslot |
Definition at line 50 of file PolygonPointView.cpp.
void PolygonPointView::updateParameterizedItem | ( | const QPointF & | pos | ) |
Definition at line 44 of file PolygonPointView.cpp.
References IShape2DView::fromSceneX(), IShape2DView::fromSceneY(), m_item, PolygonPointItem::setPosX(), and PolygonPointItem::setPosY().
Referenced by mouseMoveEvent().
|
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(), 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(), VerticalLineView::paint(), HorizontalLineView::paint(), MaskAllView::paint(), VerticalLineView::shape(), HorizontalLineView::shape(), RectangleBaseView::update_bounding_rect(), PolygonView::update_polygon(), VerticalLineView::update_view(), HorizontalLineView::update_view(), MaskAllView::update_view(), MaskContainerView::update_view(), and RegionOfInterestView::update_view().
|
private |
Definition at line 57 of file PolygonPointView.h.
Referenced by ~PolygonPointView(), onItemDestroyed(), parameterizedItem(), and updateParameterizedItem().
|
private |
Definition at line 58 of file PolygonPointView.h.
Referenced by hoverEnterEvent(), hoverLeaveEvent(), and paint().