BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
This is a view of HorizontalLineItem mask. More...
Public Member Functions | |
HorizontalLineView () | |
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 |
Protected Slots | |
virtual void | onChangedX () |
virtual void | onChangedY () |
virtual void | onPropertyChange (const QString &propertyName) |
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 |
QVariant | itemChange (GraphicsItemChange change, const QVariant &value) |
Allows item movement along y, prevent movement along x. More... | |
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) |
This is a view of HorizontalLineItem mask.
Definition at line 42 of file LineViews.h.
HorizontalLineView::HorizontalLineView | ( | ) |
Definition at line 91 of file LineViews.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.
|
inherited |
|
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 PolygonPointView::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(), onChangedY(), RectangleView::onChangedY(), and PolygonPointView::updateParameterizedItem().
|
protected |
Allows item movement along y, prevent movement along x.
Definition at line 142 of file LineViews.cpp.
|
inlineprotectedvirtualslotinherited |
|
protectedvirtualslot |
Definition at line 99 of file LineViews.cpp.
References IShape2DView::fromSceneY(), IShape2DView::m_item, HorizontalLineItem::P_POSY, IShape2DView::setBlockOnProperty(), and SessionItem::setItemValue().
|
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 106 of file LineViews.cpp.
References HorizontalLineItem::P_POSY, and IShape2DView::toSceneY().
|
protected |
Definition at line 123 of file LineViews.cpp.
References SessionItem::getItemValue(), MaskEditorHelper::getMaskBrush(), MaskEditorHelper::getMaskPen(), IShape2DView::m_bounding_rect, IShape2DView::m_item, and MaskItem::P_MASK_VALUE.
|
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().
|
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(), 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(), onPropertyChange(), EllipseView::top(), RectangleView::top(), PolygonView::update_polygon(), EllipseView::update_position(), RectangleView::update_position(), and 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 46 of file LineViews.h.
References MaskEditorHelper::HORIZONTALLINE.
|
protectedvirtualslot |
Definition at line 112 of file LineViews.cpp.
References IShape2DView::m_adaptor, IShape2DView::m_bounding_rect, HorizontalLineItem::P_POSY, IShape2DView::toSceneY(), and ISceneAdaptor::viewportRectangle().
|
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(), 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(), paint(), MaskAllView::paint(), RectangleBaseView::update_bounding_rect(), PolygonView::update_polygon(), IntensityDataView::update_view(), VerticalLineView::update_view(), 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(), onChangedY(), RectangleView::onChangedY(), EllipseView::paint(), VerticalLineView::paint(), paint(), PolygonView::paint(), RectangleView::paint(), IShape2DView::par(), IShape2DView::parameterizedItem(), IShape2DView::setParameterizedItem(), IShape2DView::toSceneX(), IShape2DView::toSceneY(), RectangleBaseView::update_bounding_rect(), PolygonView::update_polygon(), and PolygonPointView::updateParameterizedItem().