26 const double ARBITRARY_X = 1.0;
32 LOG4CPP_DEBUG_S ((*
mainCat)) <<
"GuidelineStateDeployedConstantYAbstract::convertGraphCoordinateToScreenPoint"
33 <<
" pos=(" << posScreen.x() <<
", " << posScreen.y() <<
")";
44 LOG4CPP_DEBUG_S ((*
mainCat)) <<
"GuidelineStateDeployedConstantYAbstract::convertScreenPointToGraphCoordinate"
45 <<
" pos=(" << posGraph.x() <<
", " << posGraph.y() <<
")";
69 if (!
context().transformation().transformIsDefined()) {
79 context().posCursorGraph ().y()));
@ GUIDELINE_STATE_DISCARDED
log4cpp::Category * mainCat
Parameters that define an ellipse about the specified center, at the specified angle from alignment w...
Line version of GuidelineAbstract.
Project a point along the horizontal direction in graph coordinates to produce a line segment along t...
QLineF fromCoordinateY(const Transformation &transformation, const QRectF &sceneRect, double yGraph)
Return line through y in graph coordinates.
QLineF fromPosScreen(const Transformation &transformation, const QRectF &sceneRect, const QPointF &posScreen)
Return line through point in screen coordinates.
QRectF sceneRect() const
Scene rectangle in screen coordinates (=pixels)
GuidelineStateContext & context() const
Context in charge of the state classes.
Context class for state machine that belongs to the Guideline class.
Transformation transformation() const
Return copy of transformation owned by MainWindow.
GuidelineAbstract & guideline()
Guideline that owns this context class.
void requestStateTransition(GuidelineState guidelineState)
Request a state transition.
GuidelineStateDeployedAbstract(GuidelineStateContext &context)
Single constructor.
virtual EllipseParameters pointToEllipse(const QPointF &posScreen) const
Return ellipse representing constant range, that passes through the specified point.
virtual void updateWithLatestTransformation()
Update given Transformation in GuidelineStateContext.
virtual QPointF convertGraphCoordinateToScreenPoint(double valueGraph) const
Convert single graph coordinate into screen point pair.
virtual QLineF pointToLine(const QPointF &posScreen) const
Return line parallel to an axis line, that passes through the specified point.
virtual ~GuidelineStateDeployedConstantYAbstract()
virtual double convertScreenPointToGraphCoordinate(const QPointF &posScreen) const
Convert screen point pair into single graph coordinate.
GuidelineStateDeployedConstantYAbstract(GuidelineStateContext &context)
Single constructor.
#define LOG4CPP_DEBUG_S(logger)