 |
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.
20 #ifndef SDK_VIS_BACKEND_INTERFACE_H_
21 #define SDK_VIS_BACKEND_INTERFACE_H_
74 kBackendProperty_EraseBackground,
112 const IBackendInitialParametersSP& backend_parameters,
113 const IGraphicContextInitialParametersSP& gc_parameters,
114 const IBackendEventsSP& events_handler, IBackendSP& backend)
throw() = 0;
123 SDK_DECLARE_IID(IBackendFactory)
132 virtual BackendType SDK_CALLTYPE
GetType()
const throw() = 0;
135 virtual GraphicContextType SDK_CALLTYPE
GetGCType() const throw() = 0;
139 IGraphicContextSP& context) throw() = 0;
143 const SDKMatrix4X4& scene_viewport_transform) throw() = 0;
151 const SDKMatrix4X4& transform,
float opacity,
152 const ILayerClippingSP& clipping) throw() = 0;
156 const
SDKRectF2D& viewport, const SDKMatrix4X4* transforms, SDKUInt64 num,
157 const SDKMatrix4X4& transform,
float opacity) throw() = 0;
165 const TextureFormat& format, const SDKUInt32& stride_size,
166 const TextureStrideOrder& stride_order, const SDKUInt32& bits_size,
167 SDKUInt8* const bits) const throw() = 0;
169 SDK_IMPLEMENT_IID(IBackend)
170 SDK_END_INTERFACE(IBackend)
172 SDK_DECLARE_IID(IBackend)
198 #endif // SDK_VIS_BACKEND_INTERFACE_H_
virtual BackendType SDK_CALLTYPE GetType() const =0
Returns backend type (Window/Texture)
BackendPropertyIDs
The backend property ids.
Definition: backend_interface.h:47
@ kBackendType_Texture
backend based on texture.
Definition: backend_interface.h:42
virtual SDKResult SDK_CALLTYPE IsGraphicContextAvailable(GraphicContextType type) const =0
Checks, if backend, based on specified graphic context type can be created. Same as IGraphicContextFa...
BackendType
The backend type.
Definition: backend_interface.h:39
Interfaces wrapper with reference count control.
@ kBackendInitialParameter_TextureWidth
Target texture width.
Definition: backend_interface.h:84
Object generic properties interface.
virtual SDKResult SDK_CALLTYPE CreateBackend(BackendType type, GraphicContextType gc_type, const IBackendInitialParametersSP &backend_parameters, const IGraphicContextInitialParametersSP &gc_parameters, const IBackendEventsSP &events_handler, IBackendSP &backend)=0
Creates backend according to a specified type.
virtual SDKResult SDK_CALLTYPE DrawTexture(const ITextureSP &texture, const SDKRectF2D &bounds, const SDKRectF2D &viewport, const SDKMatrix4X4 &transform, float opacity, const ILayerClippingSP &clipping)=0
Draws texture.
virtual SDKResult SDK_CALLTYPE FinishDraw()=0
Should be called after Draw* functions.
@ kBackendInitialParameter_TextureHeight
Target texture height.
Definition: backend_interface.h:85
@ kBackendProperty_Texture
Initiates backend resizing procedures (sometimes drawing stops working w/o it)
Definition: backend_interface.h:59
virtual SDKResult SDK_CALLTYPE CopyBits(const SDKRect2D &rect_to_copy, const TextureFormat &format, const SDKUInt32 &stride_size, const TextureStrideOrder &stride_order, const SDKUInt32 &bits_size, SDKUInt8 *const bits) const =0
Shortcut for getting data from scene backend image. (Synchronized with Draw functions)
BackendEventID
Generic backend event IDs.
Definition: backend_interface.h:176
Provides access to members for managing a parameter set.
2D Rectangle
Definition: geometry_base_types.h:1295
virtual GraphicContextType SDK_CALLTYPE GetGCType() const =0
Returns graphic context type.
Provides access to members that manage parameters of an object.
Definition: parameters_interface.h:33
GraphicContextType
Possible types of graphics context, like context based on DirectX or OpenGL.
Definition: graphic_context_interface.h:49
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
Matrix 4X4 implementation.
BackendInitialParametersID
Initialization parameters for Window/Texture backends.
Definition: backend_interface.h:79
static const float kOpaqueLayer_Opacity
Reserved opacity value for opaque layer.
Definition: backend_interface.h:90
Provides access to members that control the properties.
Definition: properties_interface.h:32
virtual SDKResult SDK_CALLTYPE DrawSprites(const ITextureSP &texture, const SDKRectF2D &viewport, const SDKMatrix4X4 *transforms, SDKUInt64 num, const SDKMatrix4X4 &transform, float opacity)=0
Draws sprites list.
@ kBackendProperty_ForceResize
Use texture antialiasing during combining several layers textures (kSDKAnyType_Bool)
Definition: backend_interface.h:62
Common base SDK interfaces.
Definition of graphic context interfaces.
@ kBackendProperty_UseTextureAntialiasing
Use texture filtering during combining several layers textures (kSDKAnyType_Bool)
Definition: backend_interface.h:65
@ kBackendInitialParameter_DeviceDisplay
OS specific display.
Definition: backend_interface.h:82
@ kBackendProperty_UseTextureFiltering
Switch on debug logging (kSDKAnyType_Bool)
Definition: backend_interface.h:68
Base interface for all SDK interfaces.
Definition: sdk_component_interface.h:41
@ kBackendProperty_DebugLogging
Erase backend background on start (kSDKAnyType_Bool)
Definition: backend_interface.h:71
@ kBackendInitialParameter_DeviceWnd
OS specific window handle.
Definition: backend_interface.h:81
@ kBackendProperty_BackgroundColor
Background color (kSDKAnyType_Uint32 - ARGB)
Definition: backend_interface.h:50
virtual SDKResult SDK_CALLTYPE StartDraw()=0
Should be called before Draw* functions.
Generic backend events.
Definition: backend_interface.h:182
@ kBackendProperty_Width
Height of the backend space. (kSDKAnyType_Uint32)
Definition: backend_interface.h:53
@ kBackendInitialParameter_VisualInfo
OS specific visual info.
Definition: backend_interface.h:83
@ kBackendType_Window
backend based on OS window.
Definition: backend_interface.h:41
@ kBackendProperty_Height
Returns texture with drawing results (kSDKAnyType_SDKComponentPtr with ITexture)
Definition: backend_interface.h:56
Factory for all graphic context implementations.
Definition: backend_interface.h:106
virtual SDKResult SDK_CALLTYPE GetGraphicContext(IGraphicContextSP &context)=0
Returns associated graphic context (can absent)
FWD_DECL_INTERFACE(ILWEParserWrapper)
Provides a wrapper around the message parser to get, add or remove the.
Initial settings to create an appropriate backend by factory.
Definition: backend_interface.h:94
virtual SDKResult SDK_CALLTYPE SetViewportParams(const SDKMatrix4X4 &scene_viewport_transform)=0
Sets scene viewport parameters.