Graph - correction of flows using a mouse
A flow correction (it starts with the help of function %HI_GraphCorrectionStart)
allows a user to correct a data curve in the graph using the mouse.
The user has to create the correction points (up to 50) that help to define the
data correction by the change of their position. The correction points are
specified by the marks and linked by the correction curve.
When you left-click over the control point and drag and drop it on the new position, it causes the change. When dragging, the control point, correction curve and data flow are redrawn.
The difference against the previous position is shown at the cursor and in the
dialog box.
The correction is linear, calculated in the D2000 HI process from the
leftmost point to the rightmost one. The final data are stored in the graph and
are accessible from the picture script.
To stop the correction, press the Stop button in the dialog window or use the
proper function in the script or start correcting next flow in the graph.
Used definitions:
- Correction point – a definition point of correction which is
placed in the graph
- Shifted correction point – a control point of correction, whose
distance from the correction point defines the size of change
- Correction curve – a curve that joins the correction points
- Shifted correction curve - a curve that joins the shifted correction
points
Correction procedure
After starting the correction, the dialog window opens. It contains the list
of correction points and the control buttons.
The meaning of the buttons (left to right) is following:
- Number of flow. It enables to move the window to other position (press
left-mouse button, drag and drop it).
- List of correction points – their position on the x-axis and correction size.
- Correction size of the point. It is editable.
- Acknowledges the value of the point 3.
- Cancels all correction points.
- Saves the changes. They are stored in the data of graph and are processed by
a picture script.
- Ends the correction.
Control in the graph
Add / remove the correction points
When pressing left-mouse button together with CTRL key:
- it enables to define the control points, if you do not press the button
over the already defined point. If the defined point is placed close to the
data point, this point will move on the position of the data point.
- close to the control point, this point will be used for correction of
flow.
When pressing right-mouse button together with CTRL key:
- close to Shifted correction point, it cancels the correction.
- close to Correction point, it removes it.
Change position of the correction point
To appear the cursor for the change of position, press the CTRL and
SHIFT key and
move the mouse pointer over the correction point or shifted correction point.
Press the left-mouse button, drag the point and drop it. On the time zoom, the
point may be moved only to near control point.
Notes:
- Data are corrected if the selected point changes its position.
- Data between the shifted point and adjacent points are corrected.
- Only analog flows, which are placed on the analog axes, can be corrected.
- The correction points can be defined in the level which contains the
corrected flow.
- The point reacts on the mouse in the area of the most 5 points from the
correction point.
- The correction point can not be defined close to other one - in regard of
x-axis.
You can avoid this feature when using the zoom but some points could be
unavailable after you cancel the zoom.
- The correction points that are outside the display field are visible on
the edge of the area of graph and the curve to the closest point is
deformed.
- Data correction is visible only if the corrected flow is visible.
- After changing the time interval in the graph, the correction points are
canceled.