NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
backend_interface.h File Reference

Definition of 2D Scene backend interfaces. More...

Go to the source code of this file.

Data Structures

class  IBackendInitialParameters
 Initial settings to create an appropriate backend by factory. More...
 
class  IBackendFactory
 Factory for all graphic context implementations. More...
 
class  IBackend
 2D Scene backend - presents scene layers to the window | widget | texture... (Platform dependent) More...
 
class  IBackendEvents
 Generic backend events. More...
 

Enumerations

enum  BackendType { kBackendType_Window, kBackendType_Texture }
 The backend type. More...
 
enum  BackendPropertyIDs {
  kBackendProperty_BackgroundColor, kBackendProperty_Width, kBackendProperty_Height, kBackendProperty_Texture,
  kBackendProperty_ForceResize, kBackendProperty_UseTextureAntialiasing, kBackendProperty_UseTextureFiltering, kBackendProperty_DebugLogging
}
 The backend property ids. More...
 
enum  BackendInitialParametersID {
  kBackendInitialParameter_DeviceWnd, kBackendInitialParameter_DeviceDisplay, kBackendInitialParameter_VisualInfo, kBackendInitialParameter_TextureWidth,
  kBackendInitialParameter_TextureHeight
}
 Initialization parameters for Window/Texture backends. More...
 
enum  BackendEventID
 Generic backend event IDs.
 

Variables

static const float kOpaqueLayer_Opacity = -1.0
 Reserved opacity value for opaque layer.
 

Detailed Description

Definition of 2D Scene backend interfaces.

Copyright (c) 2011 The NAVTOR SDK. All Rights Reserved.

Author
The NAVTOR SDK authors.
Date
02/2012
Maintenance:
The NAVTOR SDK authors.

Enumeration Type Documentation

◆ BackendType

enum BackendType

The backend type.

Enumerator
kBackendType_Window 

backend based on OS window.

kBackendType_Texture 

backend based on texture.

◆ BackendPropertyIDs

enum BackendPropertyIDs

The backend property ids.

Enumerator
kBackendProperty_BackgroundColor 

Background color (kSDKAnyType_Uint32 - ARGB)

Width of the backend space. (kSDKAnyType_Uint32)

kBackendProperty_Width 

Height of the backend space. (kSDKAnyType_Uint32)

kBackendProperty_Height 

Returns texture with drawing results (kSDKAnyType_SDKComponentPtr with ITexture)

kBackendProperty_Texture 

Initiates backend resizing procedures (sometimes drawing stops working w/o it)

kBackendProperty_ForceResize 

Use texture antialiasing during combining several layers textures (kSDKAnyType_Bool)

kBackendProperty_UseTextureAntialiasing 

Use texture filtering during combining several layers textures (kSDKAnyType_Bool)

kBackendProperty_UseTextureFiltering 

Switch on debug logging (kSDKAnyType_Bool)

kBackendProperty_DebugLogging 

Erase backend background on start (kSDKAnyType_Bool)

◆ BackendInitialParametersID

enum BackendInitialParametersID

Initialization parameters for Window/Texture backends.

Enumerator
kBackendInitialParameter_DeviceWnd 

OS specific window handle.

kBackendInitialParameter_DeviceDisplay 

OS specific display.

kBackendInitialParameter_VisualInfo 

OS specific visual info.

kBackendInitialParameter_TextureWidth 

Target texture width.

kBackendInitialParameter_TextureHeight 

Target texture height.