 |
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_RENDER_TARGET_FACTORY_INTERFACE_H_
11 #define SDK_2D_RENDER_TARGET_FACTORY_INTERFACE_H_
18 #include <geometry/inc/geometry/geometry2d/2d_geometry_objects.h>
19 #include "2d_graphics_objects.h"
20 #include "2d_custom_font_registrar_interface.h"
41 CustomFontRegistrarSP& font_registrar)
throw() = 0;
45 const sdk::gfx::RenderTargetInitSettingsSP& settings,
46 sdk::gfx::RenderTargetSP& render_target)
throw() = 0;
52 const sdk::geometry::GeometryPathSP& geometry_path,
53 sdk::gfx::GraphicsPathSP& new_path)
throw() = 0;
56 sdk::gfx::GraphicsPathSP& path)
throw() = 0;
59 const SDKRoundRectF2D& round_rect, sdk::gfx::GraphicsPathSP& path)
throw() = 0;
62 sdk::gfx::GraphicsPathSP& path)
throw() = 0;
67 sdk::vis::scene::ITextureSP& texture)
throw() = 0;
78 #endif // SDK_2D_RENDER_TARGET_FACTORY_INTERFACE_H_
Graphics path primitive, which can be drawn by using render target object.
virtual SDKResult SDK_CALLTYPE GetMultiThreadedSupport(bool &is_multithreaded_usage) const =0
Returns the multi-threaded support state flag.
Creates a render target for the Direct2D or SKIA backends.
Definition: 2d_render_target_factory_interface.h:30
virtual SDKResult SDK_CALLTYPE CreateRectGraphicsPath(const SDKRectF2D &rect, sdk::gfx::GraphicsPathSP &path)=0
Creates a new graphics path with rectangle geometry inside.
Interfaces wrapper with reference count control.
Generic 2D render target (allows to render 2D images)
virtual SDKResult SDK_CALLTYPE CreateRenderTarget2D(const sdk::gfx::RenderTarget2DType &type, const sdk::gfx::RenderTargetInitSettingsSP &settings, sdk::gfx::RenderTargetSP &render_target)=0
Creates a new 2D render target by using specified type and settings.
RenderTarget2DType
All of available render targets enumeration.
Definition: 2d_render_target_interface.h:32
virtual SDKResult SDK_CALLTYPE CreateSoftwareTexture(const sdk::vis::scene::TextureFormat &format, const SDKSize &size, sdk::vis::scene::ITextureSP &texture)=0
Creates software based texture.
Base interface for initialization of new Render Target.
2D Rectangle
Definition: geometry_base_types.h:1295
virtual SDKResult SDK_CALLTYPE GetCustomFontRegistrar(CustomFontRegistrarSP &font_registrar)=0
Returns custom font registrar.
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
TextureFormat
Texture bytes format.
Definition: texture_interface.h:30
Common base SDK interfaces.
virtual SDKResult SDK_CALLTYPE CreateRoundRectGraphicsPath(const SDKRoundRectF2D &round_rect, sdk::gfx::GraphicsPathSP &path)=0
Creates a new graphics path with rounded rectangle geometry inside.
virtual SDKResult SDK_CALLTYPE CreateGraphicsPath(sdk::gfx::GraphicsPathSP &path)=0
Creates new graphics path instance.
virtual SDKResult SDK_CALLTYPE CreateEllipseGraphicsPath(const SDKEllipseF2D &ellipse, sdk::gfx::GraphicsPathSP &path)=0
Creates a new graphics path with ellipse geometry inside.
virtual SDKResult SDK_CALLTYPE SetMultiThreadedSupport(bool is_multithreaded_usage)=0
Sets the flag state, which allows to use the objects from multi-threaded environment.
Rounded 2D rectangle.
Definition: geometry_base_types.h:1479
SizeUI.
Definition: geometry_base_types.h:1235
virtual SDKResult SDK_CALLTYPE CreateGraphicsPathFromGeometryPath(const sdk::geometry::GeometryPathSP &geometry_path, sdk::gfx::GraphicsPathSP &new_path)=0
Creates new graphics path instance from geometry path.
2D ellipse
Definition: geometry_base_types.h:1487