36 const double ARBITRARY_THETA = 1;
43 <<
" pos=(" << posScreen.x() <<
", " << posScreen.y() <<
")";
55 <<
" pos=(" << posGraph.x() <<
", " << posGraph.y() <<
")";
86 return QLineF (0, 0, 0, 0);
QString guidelineStateAsString(GuidelineState state)
@ GUIDELINE_STATE_DISCARDED
@ GUIDELINE_STATE_HANDLE_R
@ GUIDELINE_STATE_DEPLOYED_CONSTANT_R_SELECT_EDIT
log4cpp::Category * mainCat
Parameters that define an ellipse about the specified center, at the specified angle from alignment w...
void sacrificeHandleAndVisibleGuidelines(const QPointF &posScene, GuidelineState guidelineStateForReplacement)
Replace visible and handle Guidelines after click and drag.
virtual QString identifier() const =0
Unique identifier from QGraphicsItem.
Project a point along the tangential direction in graph coordinates to produce a curve along the cons...
EllipseParameters 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.
GuidelineStateHandleAbstract(GuidelineStateContext &context)
Single constructor.
virtual QPointF convertGraphCoordinateToScreenPoint(double valueGraph) const
Convert single graph coordinate into screen point pair.
GuidelineStateHandleR(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 ~GuidelineStateHandleR()
virtual EllipseParameters pointToEllipse(const QPointF &posScreen) const
Return ellipse representing constant range, that passes through the specified point.
virtual void end()
Transition out of state.
virtual void begin()
Transition into state.
virtual void handleMouseRelease(const QPointF &posScene)
At the end of dragging, clone the Guideline that owns the state machine where these states live.
virtual QString stateName() const
Name of state as a string for debugging only.
virtual double convertScreenPointToGraphCoordinate(const QPointF &posScreen) const
Convert screen point pair into single graph coordinate.
#define LOG4CPP_INFO_S(logger)
#define LOG4CPP_DEBUG_S(logger)