 |
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.
11 #ifndef SDK_2D_GRAPHICS_PATH_INTERFACE_H_
12 #define SDK_2D_GRAPHICS_PATH_INTERFACE_H_
19 #include "2d_graphics_objects.h"
39 virtual SDKResult SDK_CALLTYPE
GetParent(sdk::gfx::RenderTargetFactorySP& parent)
const throw() = 0;
43 virtual SDKResult SDK_CALLTYPE
StartEdit(sdk::gfx::GraphicsPathEditorSP& editor)
throw() = 0;
50 sdk::gfx::GraphicsPathSP& transformed_path)
const throw() = 0;
54 virtual SDKResult SDK_CALLTYPE
Combine(
const sdk::gfx::GraphicsPathSP& input_path,
55 const SDKMatrix3X2& input_path_transformation_matrix,
57 sdk::gfx::GraphicsPathSP& combined_path)
const throw() = 0;
60 virtual SDKResult SDK_CALLTYPE
Compare(
const sdk::gfx::GraphicsPathSP& input_path,
61 const SDKMatrix3X2& input_path_transformation_matrix,
67 const SDKMatrix3X2& transformation_matrix,
68 sdk::gfx::GraphicsPathSP& simplified_path)
const throw() = 0;
77 const SDKMatrix3X2& transformation_matrix,
SDKRectF2D& bounds)
const throw() = 0;
88 #endif // SDK_2D_GRAPHICS_PATH_INTERFACE_H_
PathCompareResult
Possible results of graphics path compare methods.
Definition: 2d_graphics_consts.h:76
virtual SDKResult SDK_CALLTYPE StartEdit(sdk::gfx::GraphicsPathEditorSP &editor)=0
Returns the path editor, which allows to add geometric primitives to graphics path Some implementatio...
virtual SDKResult SDK_CALLTYPE Compare(const sdk::gfx::GraphicsPathSP &input_path, const SDKMatrix3X2 &input_path_transformation_matrix, sdk::gfx::PathCompareResult &compare_result) const =0
Compares the given graphics path with specified.
virtual SDKResult SDK_CALLTYPE Transform(const SDKMatrix3X2 &transformation_matrix, sdk::gfx::GraphicsPathSP &transformed_path) const =0
Transforms the graphics path by using transformation matrix New transformed path will be generated af...
virtual SDKResult SDK_CALLTYPE CalcBounds(const SDKMatrix3X2 &transformation_matrix, SDKRectF2D &bounds) const =0
Calculates the path bounding rectangle.
Object generic properties interface.
PathCombineMode
Possible modes for combining two paths.
Definition: 2d_graphics_consts.h:66
virtual SDKResult SDK_CALLTYPE Simplify(const sdk::gfx::PathSimplifyMode &simplify_mode, const SDKMatrix3X2 &transformation_matrix, sdk::gfx::GraphicsPathSP &simplified_path) const =0
Simplifies the given graphics path by replacing all of curves, by lines and optionally cubic Bezier c...
2D Rectangle
Definition: geometry_base_types.h:1295
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
Allows to edit the graphics path by adding geometric primitives, like line, Bezier curves,...
Provides access to members that control the properties.
Definition: properties_interface.h:32
virtual SDKResult SDK_CALLTYPE Combine(const sdk::gfx::GraphicsPathSP &input_path, const SDKMatrix3X2 &input_path_transformation_matrix, const sdk::gfx::PathCombineMode &combine_mode, sdk::gfx::GraphicsPathSP &combined_path) const =0
Combines the given graphics path with specified and generates a new path object, which contains combi...
Common base SDK interfaces.
GraphicPathProps
Generic graphic path properties.
Definition: 2d_graphics_path_interface.h:27
virtual SDKResult SDK_CALLTYPE FastCalcBounds(const SDKMatrix3X2 &transformation_matrix, SDKRectF2D &bounds) const =0
Calculates the graphics path bounding rectangle Inaccurate, but fast algorithm, for exact bounds use ...
virtual SDKResult SDK_CALLTYPE GetParent(sdk::gfx::RenderTargetFactorySP &parent) const =0
Returns the parent factory instance, which created the given instance.
PathSimplifyMode
Possible modes for graphics path simplification.
Definition: 2d_graphics_consts.h:87
Graphics path primitive, that can be drawn by the render target.
Definition: 2d_graphics_path_interface.h:35
virtual SDKResult SDK_CALLTYPE FinishEdit()=0
Finishes the edit process by appending new data to existing graphics path.
@ kGraphicPathProp_CacheInternalPathStructures
Cache the internal path structures to speed up the operations.
Definition: 2d_graphics_path_interface.h:30