11#ifndef DATAVISUALISATION_WIDGETSDIALOGS_SRC_INCLUDE_DDT_WIDGETS_DDTGRAPHICSVIEWDRAW_HPP_
12#define DATAVISUALISATION_WIDGETSDIALOGS_SRC_INCLUDE_DDT_WIDGETS_DDTGRAPHICSVIEWDRAW_HPP_
41 const QPointF end)
const;
47 QGraphicsScene*
const scene,
const QPointF start,
48 const QPointF end)
const;
60 QGraphicsScene*
const scene, QPainter& painter,
61 const QPointF start,
const QPointF end)
const;
67 QGraphicsScene*
const scene,
const double x1,
68 const double y1,
const double x2,
69 const double y2)
const;
81 QGraphicsScene*
const scene, QPainter& painter,
82 const QPointF start,
const QPointF end)
const;
96 QGraphicsScene*
const scene, QPainter& painter,
const QPointF start,
97 const QPointF end,
const QString draw_mode,
99 const QString overlay_image_file)
const;
112 double convert_pixel_to_degrees = 0.0;
114 void DrawMeasurementLines(QPainter& painter,
const QLineF& line,
115 const QLineF& line2,
const QLineF& linex,
116 const QLineF& liney)
const;
117 void DrawMeasurementText(QPainter& painter,
const QRectF& measurement_rect,
118 const QRectF& textx_rect,
const QRectF& texty_rect,
119 const QString measurement_text,
120 const QString x_offset_text,
121 const QString y_offset_text)
const;
122 QString GetTextForMeasurementLine(
const qreal length,
123 const bool draw_distance_in_degrees)
const;
124 double GetPixelDistance(
const QPointF start,
const QPointF end,
125 double*
const xoffset,
double*
const yoffset)
const;
126 void GetMovementCorrectionValues(
const QPainter& painter,
127 const bool draw_distance_in_degrees,
128 qreal*
const movehorizontal,
129 qreal*
const movevertical,
130 qreal*
const rect_width,
131 qreal*
const rect_height)
const;
132 QRectF GetMeasurementRectangle(
const QPainter& painter,
const QLineF& line,
133 const QLineF& linex,
const QLineF& liney,
134 const qreal movehorizontal,
135 const qreal movevertical,
136 const qreal rect_width,
137 const qreal rect_height)
const;
138 QRectF GetLineXRectangle(
const QPainter& painter,
const QLineF& linex,
139 const QLineF& liney,
const qreal movehorizontal,
140 const qreal movevertical,
const qreal rect_width,
141 const qreal rect_height)
const;
142 QRectF GetLineYRectangle(
const QPainter& painter,
const QLineF& linex,
143 const QLineF& liney,
const qreal movehorizontal,
144 const qreal movevertical,
const qreal rect_width,
145 const qreal rect_height)
const;
154 QString DegreesToString(
double deg)
const;
165 QString ConstructDegreesString(
const qreal length)
const;
Definition ddtGraphicalElementProperties.hpp:20
Definition ddtGraphicalElementRefLine.hpp:20
Definition ddtGraphicalElementStatRectangle.hpp:19
void DrawMeasurements(QPainter &painter, const QPointF start, const QPointF end) const
Definition ddtGraphicsViewDraw.cpp:177
void DrawRefLine(DdtGraphicalElementRefLine *&ref_line_element, QGraphicsScene *const scene, QPainter &painter, const QPointF start, const QPointF end) const
Definition ddtGraphicsViewDraw.cpp:163
void DrawStatisticRectangle(DdtGraphicalElementStatRectangle *&statistic_rect, QGraphicsScene *const scene, QPainter &painter, const QPointF start, const QPointF end) const
Definition ddtGraphicsViewDraw.cpp:143
void DrawGraphicalElement(QGraphicsScene *const scene, QPainter &painter, const QPointF start, const QPointF end, const QString draw_mode, const DdtGraphicalElementProperties &overlay_properties, const QString overlay_image_file) const
Definition ddtGraphicsViewDraw.cpp:28
void SetConvertPixelToDegrees(const double conv_pixel_degrees)
Definition ddtGraphicsViewDraw.cpp:22
void CreateRefLine(DdtGraphicalElementRefLine *&ref_line_element, QGraphicsScene *const scene, const QPointF start, const QPointF end) const
Definition ddtGraphicsViewDraw.cpp:122
void CreateStatisticRect(DdtGraphicalElementStatRectangle *&statistic_rect, QGraphicsScene *const scene, const double x1, const double y1, const double x2, const double y2) const
Definition ddtGraphicsViewDraw.cpp:104
DdtGraphicsViewDraw()=default
DDT Graphics. Class for images. Class for the Graphical Elements - Image.
DDT Graphics. Class for common properties of graphical elements like line width, colour etc....
DDT Graphics. Class for reference line elements. Class for the Graphical Elements - Reference Line.
DDT Graphics. Class for slit elements. Class for the Graphical Elements - Slit.
DDT Graphics. Class for rectangles for statistics. Class for the Graphical Elements - Statistics Rect...
DDT Utils. Helper classes for DDT Datavisualisation. Utilities for the DDT Datavisualisation.
DDT Graphics. Class for the rendering of graphical elements into the view. Class for the Graphical Ov...