29 QPointF posGraphCenter (0, 0);
31 posGraphCenter = QPointF (0,
36 QPointF posScreenOrigin, posScreen0, posScreen90, posScreen180;
46 QPointF centerTo90 = posScreen90 - posScreenOrigin;
49 QPointF posScreenTL = posScreen180 + centerTo90;
50 QPointF posScreenTR = posScreen0 + centerTo90;
51 QPointF posScreenBR = posScreen0 - centerTo90;
53 double angleRadians = 0, aAligned = 0, bAligned = 0;
55 posScreenTL.y() - posScreenOrigin.y(),
56 posScreenTR.x() - posScreenOrigin.x(),
57 posScreenTR.y() - posScreenOrigin.y(),
58 posScreenBR.x() - posScreenOrigin.x(),
59 posScreenBR.y() - posScreenOrigin.y(),
71 const QRectF &sceneRect,
72 const QPointF &posScreen)
77 double rGraph = posGraph.y();
83 LOG4CPP_ERROR_S ((*
mainCat)) <<
"GuidelineProjectorConstantR::fromPosScreen out of bounds range " << rGraph;
log4cpp::Category * mainCat
CoordScale coordScaleYRadius() const
Get method for linear/log scale on y/radius.
double originRadius() const
Get method for origin radius in polar mode.
Parameters that define an ellipse about the specified center, at the specified angle from alignment w...
GuidelineProjectorConstantR()
Single constructor.
EllipseParameters fromCoordinateR(const Transformation &transformation, const QRectF &sceneRect, double rGraph)
Return line through y in graph coordinates.
EllipseParameters fromPosScreen(const Transformation &transformation, const QRectF &sceneRect, const QPointF &posScreen)
Return line through point in screen coordinates.
~GuidelineProjectorConstantR()
#define LOG4CPP_ERROR_S(logger)
void ellipseFromParallelogram(double xTL, double yTL, double xTR, double yTR, double xBR, double yBR, double &angleRadians, double &aAligned, double &bAligned)
Calculate ellipse parameters that is incribed in a parallelogram centered at the origin,...