BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
This is a View of polygon point for PolygonMaskItem. More...
Signals | |
void | closePolygonRequest (bool) |
void | propertyChanged () |
Public Member Functions | |
PolygonPointView () | |
virtual void | addView (IShape2DView *childView, int row=0) |
QRectF | boundingRect () const |
virtual SessionItem * | parameterizedItem () |
virtual void | setParameterizedItem (SessionItem *item) |
void | setSceneAdaptor (const ISceneAdaptor *adaptor) |
int | type () const |
void | updateParameterizedItem (const QPointF &pos) |
Protected Slots | |
virtual void | onChangedX () |
virtual void | onChangedY () |
virtual void | onPropertyChange (const QString &) |
virtual void | update_view () |
Protected Member Functions | |
bool | blockOnProperty () const |
qreal | fromSceneX (qreal value) const |
convert scene coordinates to ColorMap plot coordinates More... | |
qreal | fromSceneY (qreal value) const |
void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) |
double | par (const QString &property_name) const |
void | setBlockOnProperty (bool value) |
qreal | toSceneX (const QString &property_name) const |
qreal | toSceneX (qreal value) const |
qreal | toSceneY (const QString &property_name) const |
qreal | toSceneY (qreal value) const |
Protected Attributes | |
const ISceneAdaptor * | m_adaptor |
bool | m_block_on_property_change |
QRectF | m_bounding_rect |
SessionItem * | m_item |
Private Member Functions | |
void | onItemPropertyChange (const QString &propertyName) |
Private Attributes | |
bool | m_on_hover |
This is a View of polygon point for PolygonMaskItem.
Definition at line 22 of file PolygonPointView.h.
PolygonPointView::PolygonPointView | ( | ) |
Definition at line 20 of file PolygonPointView.cpp.
|
virtualinherited |
Reimplemented in PolygonView.
Definition at line 116 of file IShape2DView.cpp.
Referenced by MaskGraphicsScene::updateViews().
|
protectedinherited |
Definition at line 127 of file IShape2DView.cpp.
References IShape2DView::m_block_on_property_change.
QRectF PolygonPointView::boundingRect | ( | ) | const |
Definition at line 26 of file PolygonPointView.cpp.
Referenced by paint().
|
signal |
Referenced by PolygonView::addView(), hoverEnterEvent(), and hoverLeaveEvent().
|
protectedinherited |
convert scene coordinates to ColorMap plot coordinates
Definition at line 106 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 111 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().
|
protected |
Definition at line 64 of file PolygonPointView.cpp.
References closePolygonRequest(), and m_on_hover.
|
protected |
Definition at line 71 of file PolygonPointView.cpp.
References closePolygonRequest(), and m_on_hover.
|
protected |
Definition at line 59 of file PolygonPointView.cpp.
References updateParameterizedItem().
|
inlineprotectedvirtualslotinherited |
|
inlineprotectedvirtualslotinherited |
|
privateinherited |
Definition at line 132 of file IShape2DView.cpp.
References IShape2DView::m_block_on_property_change, IShape2DView::onPropertyChange(), MaskItem::P_IS_VISIBLE, MaskItem::P_MASK_VALUE, and IShape2DView::parameterizedItem().
Referenced by IShape2DView::setParameterizedItem().
|
protectedvirtualslot |
Definition at line 42 of file PolygonPointView.cpp.
References propertyChanged().
|
protected |
Definition at line 47 of file PolygonPointView.cpp.
References boundingRect(), MaskEditorHelper::getSelectionMarkerBrush(), MaskEditorHelper::getSelectionMarkerPen(), and m_on_hover.
|
protectedinherited |
Definition at line 81 of file IShape2DView.cpp.
References SessionItem::getItemValue(), and IShape2DView::m_item.
Referenced by EllipseView::bottom(), RectangleView::bottom(), EllipseView::left(), RectangleView::left(), EllipseView::onPropertyChange(), EllipseView::right(), RectangleView::right(), EllipseView::top(), RectangleView::top(), and EllipseView::update_position().
|
virtualinherited |
Definition at line 61 of file IShape2DView.cpp.
References IShape2DView::m_item.
Referenced by IShape2DView::onItemPropertyChange().
|
signal |
Referenced by PolygonView::addView(), onPropertyChange(), and PolygonView::update_points().
|
protectedinherited |
Definition at line 122 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().
|
virtualinherited |
Definition at line 41 of file IShape2DView.cpp.
References IShape2DView::m_item, SessionItem::mapper(), RealSpace::Particles::name(), IShape2DView::onItemPropertyChange(), ModelMapper::setOnItemDestroy(), ModelMapper::setOnPropertyChange(), and ModelMapper::unsubscribe().
Referenced by MaskViewFactory::createMaskView().
|
inherited |
Definition at line 66 of file IShape2DView.cpp.
References ASSERT, IShape2DView::m_adaptor, ISceneAdaptor::update_request(), and IShape2DView::update_view().
Referenced by MaskViewFactory::createMaskView().
|
protectedinherited |
Definition at line 86 of file IShape2DView.cpp.
References SessionItem::getItemValue(), and IShape2DView::m_item.
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 91 of file IShape2DView.cpp.
References IShape2DView::m_adaptor, and ISceneAdaptor::toSceneX().
|
protectedinherited |
Definition at line 96 of file IShape2DView.cpp.
References SessionItem::getItemValue(), and IShape2DView::m_item.
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().
|
protectedinherited |
Definition at line 101 of file IShape2DView.cpp.
References IShape2DView::m_adaptor, and ISceneAdaptor::toSceneY().
|
inlinevirtual |
Reimplemented from IShape2DView.
Definition at line 26 of file PolygonPointView.h.
References MaskEditorHelper::POLYGONPOINT.
|
protectedvirtualslot |
Definition at line 37 of file PolygonPointView.cpp.
void PolygonPointView::updateParameterizedItem | ( | const QPointF & | pos | ) |
Definition at line 31 of file PolygonPointView.cpp.
References IShape2DView::fromSceneX(), IShape2DView::fromSceneY(), IShape2DView::m_item, PolygonPointItem::P_POSX, PolygonPointItem::P_POSY, and SessionItem::setItemValue().
Referenced by mouseMoveEvent(), and PolygonView::update_points().
|
protectedinherited |
Definition at line 66 of file IShape2DView.h.
Referenced by IShape2DView::fromSceneX(), IShape2DView::fromSceneY(), IShape2DView::setSceneAdaptor(), IShape2DView::toSceneX(), IShape2DView::toSceneY(), IntensityDataView::update_view(), VerticalLineView::update_view(), HorizontalLineView::update_view(), MaskAllView::update_view(), and MaskContainerView::update_view().
|
protectedinherited |
Definition at line 68 of file IShape2DView.h.
Referenced by IShape2DView::blockOnProperty(), IShape2DView::onItemPropertyChange(), and IShape2DView::setBlockOnProperty().
|
protectedinherited |
Definition at line 67 of file IShape2DView.h.
Referenced by IShape2DView::boundingRect(), VerticalLineView::paint(), HorizontalLineView::paint(), MaskAllView::paint(), RectangleBaseView::update_bounding_rect(), PolygonView::update_polygon(), IntensityDataView::update_view(), VerticalLineView::update_view(), HorizontalLineView::update_view(), MaskAllView::update_view(), and MaskContainerView::update_view().
|
protectedinherited |
Definition at line 65 of file IShape2DView.h.
Referenced by IShape2DView::~IShape2DView(), PolygonView::closePolygonIfNecessary(), PolygonView::isClosedPolygon(), EllipseView::mouseMoveEvent(), RectangleView::mouseMoveEvent(), EllipseView::onChangedX(), VerticalLineView::onChangedX(), RectangleView::onChangedX(), EllipseView::onChangedY(), HorizontalLineView::onChangedY(), RectangleView::onChangedY(), EllipseView::paint(), VerticalLineView::paint(), HorizontalLineView::paint(), PolygonView::paint(), RectangleView::paint(), IShape2DView::par(), IShape2DView::parameterizedItem(), IShape2DView::setParameterizedItem(), IShape2DView::toSceneX(), IShape2DView::toSceneY(), RectangleBaseView::update_bounding_rect(), PolygonView::update_polygon(), and updateParameterizedItem().
|
private |
Definition at line 49 of file PolygonPointView.h.
Referenced by hoverEnterEvent(), hoverLeaveEvent(), and paint().