15 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_SAMPLEDESIGNER_DESIGNERHELPER_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_SAMPLEDESIGNER_DESIGNERHELPER_H
20 #include <QGraphicsItem>
57 static bool sort_layers(QGraphicsItem* left, QGraphicsItem* right);
collection of static methods with SampleDesigner geometry settings
static QPixmap getSceneBackground()
static QRectF getParticleLayoutBoundingRect()
static QRectF getInterferenceFunctionBoundingRect()
static int getPythonEditorFontSize()
static QRectF getParticleBoundingRect()
static QPixmap getPixmapParticleLayout()
static QRectF getDefaultBoundingRect(const QString &name)
returns default bounding rectangle for given IvView name
static bool sort_layers(QGraphicsItem *left, QGraphicsItem *right)
sort graphics item according they y-coordinate
static QPixmap getPixmapInterferenceFunction()
static QColor getDefaultMaterialColor()
static QPixmap getMimePixmap(const QString &name)
returns Mime pixmap for givew IView name
static QGradient getDecorationGradient(const QColor &color, const QRectF &rect)
static QColor getDefaultParticleColor()
static int getHeaderFontSize()
returns system dependent font size
static QColor getRandomColor()
static QGradient getLayerGradient(const QColor &color, const QRectF &rect)
static int getLabelFontSize()
static QPixmap getPixmapParticle()
static QRectF getDefaultMultiLayerRect()
static QColor getDefaultLayerColor()
static int nanometerToScreen(double nanometer)
non-linear conversion of layer's thickness in nanometers to screen size to have reasonable graphics r...
static int getPortFontSize()
static QColor getDefaultColor(const QString &name)
returns default color for IView with given name
static QRectF getTransformationBoundingRect()
static int getSectionFontSize()
static QPixmap getPixmapLayer()
static QColor getDefaultTransformationColor()
static QPixmap getPixmapMultiLayer()
QString const & name(EShape k)
static constexpr double nanometer
Internal unit for lengths.