NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
2d_geometry_path_figure_data_interface.h
Go to the documentation of this file.
1 #ifndef SDK_2D_GEOMETRY_PATH_FIGURE_DATA_INTERFACE_H_
12 #define SDK_2D_GEOMETRY_PATH_FIGURE_DATA_INTERFACE_H_
13 #pragma once
14 
15 #include <base/inc/platform.h>
16 #include <base/inc/base_types.h>
20 #include "2d_geometry_objects.h"
22 
23 namespace sdk {
24 namespace geometry {
25 
29 class I2DGeometryPathFigureData : public sdk::ISDKComponent
30 {
31 public:
34  virtual SDKResult SDK_CALLTYPE GetFigureFinishRule(
35  sdk::geometry::GeometryFinishFigureRule& finish_rule) const throw() = 0;
36 
38  virtual SDKResult SDK_CALLTYPE GetFigurePointsCount(
39  SDKUInt32& points_count) const throw() = 0;
40 
42  virtual SDKResult SDK_CALLTYPE GetFigurePointsData(
43  const SDKUInt32& number_of_points_to_copy,
44  SDKPointF2D* dest_points_array) const throw() = 0;
45 
55  virtual SDKResult SDK_CALLTYPE GetFigurePointsData(
56  const SDKPointF2D** points_buffer) const throw() = 0;
57 
59  SDK_IMPLEMENT_IID(I2DGeometryPathFigureData)
60  SDK_END_INTERFACE(I2DGeometryPathFigureData)
61 };
62 SDK_DECLARE_IID(I2DGeometryPathFigureData)
63 } // namespace geometry
64 } // namespace sdk
65 
66 #endif // SDK_2D_GEOMETRY_PATH_FIGURE_DATA_INTERFACE_H_
sdk::geometry::I2DGeometryPathFigureData::GetFigurePointsCount
virtual SDKResult SDK_CALLTYPE GetFigurePointsCount(SDKUInt32 &points_count) const =0
Returns the number of points, which belongs to given figure.
base_types.h
SDK base types.
sdk::geometry::I2DGeometryPathFigureData
Describes interface for 2D geometry path figure data, which allows to extract the point coordinates f...
Definition: 2d_geometry_path_figure_data_interface.h:29
sdk_string_handler.h
Wrappers and helper functions for SDKString.
SDKResult
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
sdk::geometry::I2DGeometryPathFigureData::GetFigurePointsData
virtual SDKResult SDK_CALLTYPE GetFigurePointsData(const SDKUInt32 &number_of_points_to_copy, SDKPointF2D *dest_points_array) const =0
Copies the points data to passed destination array.
sdk_component_interface.h
Common base SDK interfaces.
2d_geometry_path_editor_interface.h
Allows to edit the geometry path by adding geometric primitives, like line, Bezier curves,...
SDKPointF2D
Single 2D point.
Definition: geometry_base_types.h:33
platform.h
Describes the platform constants.
sdk::geometry::I2DGeometryPathFigureData::GetFigureFinishRule
virtual SDKResult SDK_CALLTYPE GetFigureFinishRule(sdk::geometry::GeometryFinishFigureRule &finish_rule) const =0
Returns the appropriate figure finish rule, i.e. is figure closed or not.
geometry_base_types.h
Geometry base types.
sdk::geometry::GeometryFinishFigureRule
GeometryFinishFigureRule
Figure finish rule (see I2DGeometryPathEditor::FinishFigure)
Definition: 2d_geometry_path_editor_interface.h:74