13#include <QGraphicsScene>
39 QPointF posGraphTL, posGraphTR, posGraphBL, posGraphBR;
48 double arbitraryRange = qMax (posGraphTL.y(), qMax (posGraphTR.y(), qMax (posGraphBL.y(), posGraphBR.y())));
55 LOG4CPP_DEBUG_S ((*
mainCat)) <<
"GuidelineStateDeployedConstantTAbstract::convertGraphCoordinateToScreenPoint"
56 <<
" pos=(" << posScreen.x() <<
", " << posScreen.y() <<
")";
67 LOG4CPP_DEBUG_S ((*
mainCat)) <<
"GuidelineStateDeployedConstantTAbstract::convertScreenPointToGraphCoordinate"
68 <<
" pos=(" << posGraph.x() <<
", " << posGraph.y() <<
")";
92 if (!
context().transformation().transformIsDefined()) {
102 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...
QGraphicsScene & scene()
GraphicsScene that owns this class.
Line version of GuidelineAbstract.
Project a point along the radial direction in graph coordinates to produce a curve along the constant...
QLineF fromPosScreen(const Transformation &transformation, const QRectF &sceneRect, const QPointF &posScreen)
Return line through point in screen coordinates.
QLineF fromCoordinateT(const Transformation &transformation, const QRectF &sceneRect, double tGraph)
Return line through theta in graph 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 QPointF convertGraphCoordinateToScreenPoint(double valueGraph) const
Convert single graph coordinate into screen point pair.
GuidelineStateDeployedConstantTAbstract(GuidelineStateContext &context)
Single constructor.
virtual double convertScreenPointToGraphCoordinate(const QPointF &posScreen) const
Convert screen point pair into single graph coordinate.
virtual ~GuidelineStateDeployedConstantTAbstract()
virtual QLineF pointToLine(const QPointF &posScreen) const
Return line parallel to an axis line, that passes through the specified point.
virtual void updateWithLatestTransformation()
Update given Transformation in GuidelineStateContext.
virtual EllipseParameters pointToEllipse(const QPointF &posScreen) const
Return ellipse representing constant range, that passes through the specified point.
#define LOG4CPP_DEBUG_S(logger)