 |
NAVTOR SDK
v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
|
|
Go to the documentation of this file. 1 #ifndef SDK_2D_GRAPHICS_PATH_EDITOR_INTERFACE_H_
12 #define SDK_2D_GRAPHICS_PATH_EDITOR_INTERFACE_H_
20 #include "2d_graphics_objects.h"
33 } GraphicPathEditorProps;
61 const SDKUInt32& points_count)
throw() = 0;
67 const SDKUInt32& segments_count)
throw() = 0;
73 const SDKUInt32& segments_count)
throw() = 0;
83 #endif // SDK_2D_GRAPHICS_PATH_EDITOR_INTERFACE_H_
virtual SDKResult SDK_CALLTYPE AddLines(const SDKPointF2D *points, const SDKUInt32 &points_count)=0
Adds a set of connected lines to currently started figure.
FillModeType
Fill mode for 2D operations.
Definition: 2d_graphics_consts.h:41
virtual SDKResult SDK_CALLTYPE StartFigure(const SDKPointF2D &start_point, const sdk::gfx::StartFigureStyle &style)=0
Starts a new figure.
Object generic properties interface.
StartFigureStyle
New figure style (see I2DGraphicsPathEditor::StartFigure)
Definition: 2d_graphics_consts.h:50
@ kGraphicPathEditorProp_ApproximateCubicBeziersByLines
Approximate quadratic Beziers by lines on AddCubicBezier(s) call.
Definition: 2d_graphics_path_editor_interface.h:32
virtual SDKResult SDK_CALLTYPE AddLine(const SDKPointF2D &point)=0
Adds new line to figure between current and specified points.
Description of all of supported graphics constants.
Quadratic Bezier curve segment.
Definition: geometry_base_types.h:1495
virtual SDKResult SDK_CALLTYPE SetFillMode(const sdk::gfx::FillModeType &fill_mode_type)=0
Set ups the fill mode type.
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
GraphicPathEditorProps
Generic graphic path editor properties.
Definition: 2d_graphics_path_editor_interface.h:27
Provides access to members that control the properties.
Definition: properties_interface.h:32
virtual SDKResult SDK_CALLTYPE AddCubicBezier(const SDKCuBezierSegment &segment)=0
Adds new cubic Bezier curve segment to currently started figure.
Cubic Bezier curve segment.
Definition: geometry_base_types.h:1502
@ kGraphicPathEditorProp_ApproximateQuadraticBeziersByLines
Approximate quadratic Beziers by lines on AddQuadraticBezier(s) call.
Definition: 2d_graphics_path_editor_interface.h:30
Common base SDK interfaces.
Single 2D point.
Definition: geometry_base_types.h:33
Allows to edit the graphics path by adding geometric primitives, like line, Bezier curves,...
Definition: 2d_graphics_path_editor_interface.h:38
virtual SDKResult SDK_CALLTYPE AddQuadraticBeziers(const SDKQBezierSegment *segments, const SDKUInt32 &segments_count)=0
Adds set of quadratic Bezier curves to currently started figure.
virtual SDKResult SDK_CALLTYPE AddQuadraticBezier(const SDKQBezierSegment &segment)=0
Adds new quadratic Bezier curve segment to currently started figure.
virtual SDKResult SDK_CALLTYPE FinishFigure(const sdk::gfx::FinishFigureRule &rule)=0
Finishes previously started figure.
FinishFigureRule
Figure finish rule (see I2DGraphicsPathEditor::FinishFigure)
Definition: 2d_graphics_consts.h:58
virtual SDKResult SDK_CALLTYPE GetFillMode(sdk::gfx::FillModeType &fill_mode_type) const =0
Returns current fill mode type in use.
virtual SDKResult SDK_CALLTYPE AddCubicBeziers(const SDKCuBezierSegment *segments, const SDKUInt32 &segments_count)=0
Adds set of cubic Bezier curves to currently started figure.