Class TLspCircleBy3PointsEditor

java.lang.Object
com.luciad.view.lightspeed.editor.ALspEditor
com.luciad.view.lightspeed.editor.TLspCircleBy3PointsEditor
All Implemented Interfaces:
ILspEditor

public class TLspCircleBy3PointsEditor extends ALspEditor
Enables visual editing of ILcd2DEditableCircleBy3Points objects in an ILspView.

Handles

The circle-by-3-points editor defines the following edit handles for a circle object:
  • Circle point handles: allows the user to edit the circle. When a circle point is translated, the circle will make sure it includes that point. The user can change the location if the points by dragging the handle. This handle generates MOVE operations, with a HANDLE_IDENTIFIER property and START_POINT, INTERMEDIATE_POINT or END_POINT as value.
  • Center point handle: allows the user to translate the center of the arc. The user can change the position of the center point by dragging the handle. This handle generates MOVE operations, with a HANDLE_IDENTIFIER property with CENTER as value.
  • Object translation handle: allows the user to translate the circle object. This handle generates MOVE operations, without any additional properties.

The following figure illustrates all the handles: the point and center handles are represented by red points, the green fill color indicates the area that can be used to activate the object translation handle (note that the outline is also included in this area).

The handles of a circle-by-3-points

Editing

Based on the TLspEditOperation, generated by an edit handle (see description of handles above), this editor performs different edit operations on the associated circle object. The images below illustrate the effect of the different handles. In each image the gray color represents the previous state of the object and the red color represents the edited object:
  • Circle point handles: the editor adjusts the circle so that it contains all three circle points of the circle-by-3-points. The figure below illustrates this behaviour.

    Moving the circle point handle.
  • Center point handle: translates the entire circle

    Moving the center point handle.
  • Object translation handle: the editor translates the entire circle. Note that the behaviour for this handle is identical to the behaviour of the center point handle, with the exception of how the handle is activated

Creation

The initialization process of a circle-by-3-points object consists of following steps:
  1. the first step sets the first intermediate point of the circle-by-3-points
  2. the second step sets the second intermediate point of the circle-by-3-points
  3. the third step sets the start point of the circle-by-3-points
The figures below illustrate the creation process. Relevant changes that are new in each step are marked in red:

Setting the first intermediate point
Setting the second intermediate point
Setting the start point
Setting the first intermediate point Setting the second intermediate point Setting the start point
Since:
2012.0