30 QPointF posScreenCenter, posScreenTL, posScreenTR, posScreenBR;
40 double angleRadians = 0, aAligned = 0, bAligned = 0;
42 posScreenTL.y() - posScreenCenter.y(),
43 posScreenTR.x() - posScreenCenter.x(),
44 posScreenTR.y() - posScreenCenter.y(),
45 posScreenBR.x() - posScreenCenter.x(),
46 posScreenBR.y() - posScreenCenter.y(),
58 const QRectF &sceneRect,
59 const QPointF &posScreen)
64 double rGraph = posGraph.y();
70 LOG4CPP_ERROR_S ((*
mainCat)) <<
"GuidelineProjectorConstantR::fromPosScreen out of bounds range " << rGraph;
75 rGraph = qLn (rGraph);
log4cpp::Category * mainCat
CoordScale coordScaleYRadius() const
Get method for linear/log scale on y/radius.
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,...