26 const double ARBITRARY_Y = 1.0;
32 LOG4CPP_DEBUG_S ((*
mainCat)) <<
"GuidelineStateDeployedConstantXAbstract::convertGraphCoordinateToScreenPoint"
33 <<
" pos=(" << posScreen.x() <<
", " << posScreen.y() <<
")";
44 LOG4CPP_DEBUG_S ((*
mainCat)) <<
"GuidelineStateDeployedConstantXAbstract::convertScreenPointToGraphCoordinate"
45 <<
" pos=(" << posGraph.x() <<
", " << posGraph.y() <<
")";
69 if (!
context().transformation().transformIsDefined()) {
79 context().posCursorGraph ().x()));
@ 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 vertical direction in graph coordinates to produce a line segment along the...
QLineF fromCoordinateX(const Transformation &transformation, const QRectF &sceneRect, double xGraph)
Return line through x 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 ~GuidelineStateDeployedConstantXAbstract()
virtual void updateWithLatestTransformation()
Update given Transformation in GuidelineStateContext.
virtual double convertScreenPointToGraphCoordinate(const QPointF &posScreen) const
Convert screen point pair into single graph coordinate.
GuidelineStateDeployedConstantXAbstract(GuidelineStateContext &context)
Single constructor.
virtual QLineF pointToLine(const QPointF &posScreen) const
Return line parallel to an axis line, that passes through the specified point.
virtual QPointF convertGraphCoordinateToScreenPoint(double valueGraph) const
Convert single graph coordinate into screen point pair.
virtual EllipseParameters pointToEllipse(const QPointF &posScreen) const
Return ellipse representing constant range, that passes through the specified point.
#define LOG4CPP_DEBUG_S(logger)