BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
ISceneAdaptor Class Referenceabstract

Description

Interface to adapt MaskItems coordinates (expressed in units of IntensityDataItem) to/from scene coordinates.

Definition at line 24 of file ISceneAdaptor.h.

Inheritance diagram for ISceneAdaptor:
[legend]
Collaboration diagram for ISceneAdaptor:
[legend]

Signals

void update_request ()
 

Public Member Functions

 ~ISceneAdaptor () override=default
 
virtual qreal fromSceneX (qreal) const =0
 convert scene x-coordinate to native mask coordinate More...
 
virtual qreal fromSceneY (qreal) const =0
 convert scene y-coordinate to native mask coordinate More...
 
virtual qreal toSceneX (qreal) const =0
 convert native mask x-coordinate to scene coordinate More...
 
virtual qreal toSceneY (qreal) const =0
 convert native mask y-coordinate to scene coordinate More...
 
virtual const QRectF & viewportRectangle () const
 Returns viewport rectangle in scene coordinates. More...
 

Protected Attributes

QRectF m_viewport_rectangle
 

Constructor & Destructor Documentation

◆ ~ISceneAdaptor()

ISceneAdaptor::~ISceneAdaptor ( )
overridedefault

Member Function Documentation

◆ fromSceneX()

virtual qreal ISceneAdaptor::fromSceneX ( qreal  ) const
pure virtual

convert scene x-coordinate to native mask coordinate

Implemented in DefaultSceneAdaptor, and ColorMapSceneAdaptor.

Referenced by IShape2DView::fromSceneX().

◆ fromSceneY()

virtual qreal ISceneAdaptor::fromSceneY ( qreal  ) const
pure virtual

convert scene y-coordinate to native mask coordinate

Implemented in DefaultSceneAdaptor, and ColorMapSceneAdaptor.

Referenced by IShape2DView::fromSceneY().

◆ toSceneX()

virtual qreal ISceneAdaptor::toSceneX ( qreal  ) const
pure virtual

convert native mask x-coordinate to scene coordinate

Implemented in DefaultSceneAdaptor, and ColorMapSceneAdaptor.

Referenced by IShape2DView::toSceneX().

◆ toSceneY()

virtual qreal ISceneAdaptor::toSceneY ( qreal  ) const
pure virtual

convert native mask y-coordinate to scene coordinate

Implemented in DefaultSceneAdaptor, and ColorMapSceneAdaptor.

Referenced by IShape2DView::toSceneY().

◆ update_request

void ISceneAdaptor::update_request ( )
signal

◆ viewportRectangle()

virtual const QRectF& ISceneAdaptor::viewportRectangle ( ) const
inlinevirtual

Member Data Documentation

◆ m_viewport_rectangle

QRectF ISceneAdaptor::m_viewport_rectangle
protected

The documentation for this class was generated from the following file: