#include <ContourWarpEffect.h>
Inheritance diagram for ContourWarpEffect::
Most of the GUI interaction of the user is implemented here as well as the central class coordination. The ContourWarpEffect class communicates with the following classes:
|
|
|
|
|
Almost all gui widgets are initialized here except the parameter widgets and the "frame as edges"-checkbox of the warp dialog which is initialized in AlgorithmControl and the edit mode submenu which is initialized in PolygonShapeEditor.
Reimplemented from GLEffect. |
|
Reimplemented from GLEffect. |
|
Reimplemented from GLEffect. |
|
Deletes all contoures. Reimplemented from GLEffect. |
|
Renders the effect. Reimplemented from GLEffect. |
|
The following things does this method:
|
|
Marks that the warp has to be recalculated. |
|
Default: 20. |
|
|
|
In differential mode, the widgets for parameter control, the "frame as edges" checkbox and the resolution slider are disabled in order to avoid unpredictable results. Default: false
|
|
If m_bFrameAsEdges is Default: true |
|
Default: true |
|
Default: true |
|
Default: true |
|
Default: true |
|
Default: MODE_DRAW |
|
Default: false |
|
Reimplemented from GLEffect. |
|
Note for mathematicians: Draws a circle with radius r regarding the infinity norm.;-)
|
|
|
|
cuts a ray through the unprojected mouse coords on the near and far plane with the image plane. if m_bContOnlyImage is true the nearest point on the image is returned if the mouse position is outside the image.
|
|
Besides of drawing the contour, this function renders also the stuff needed for shape editing as e.g. the little nodes squares, the center of rotation and scale transformations, and rects and circles needed whithin the selecting mode.
|
|
In normal mode, the warp algorithm is called to calculate the warp based on the transformation of the edges between the original shape and the transformed one. In differential mode the warp algorithm is called to calculate the warp between the transformed edge in the last call and the actual transformed edge. As a result, the wedges are newly calculated in differential mode which makes overlaps rarer. |
|
|
|
|
|
|