 |
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_VIS_SCENE_INITIALIZATION_HELPERS_H_
12 #define SDK_VIS_SCENE_INITIALIZATION_HELPERS_H_
22 #include "../graphic_context_interface.h"
23 #include "../backend_interface.h"
25 #if defined(SDK_OS_WIN)
28 # if defined(SDK_GRAPHICS_USE_DIRECTX_10_1)
32 #elif defined(SDK_OS_LINUX)
34 #elif defined(SDK_OS_ANDROID)
38 Other OS specific includes
53 virtual SDKResult SDK_CALLTYPE
GetParameter(SDKParameterID parameter_id, SDKAny& value)
const throw();
56 virtual SDKResult SDK_CALLTYPE Clone(ISDKParametersSP& clone)
const throw()
60 virtual SDKAtomicRefCount SDK_CALLTYPE AddRef()
const throw();
61 virtual SDKAtomicRefCount SDK_CALLTYPE Release()
const throw();
62 virtual SDKResult SDK_CALLTYPE GetInterface(
68 sdk::vis::scene::IGraphicContextInitialParametersSP& init_params)
throw();
72 const sdk::gfx::OSWindow& window,
73 sdk::vis::scene::IGraphicContextInitialParametersSP& init_params)
throw();
76 #if defined(SDK_OS_WIN) && defined(SDK_GRAPHICS_USE_DIRECTX_10_1)
79 static SDKResult CreateGraphicContextInitialParametersForDirectX10Type(
80 ID3D10Device1* d3d10_device,
81 sdk::vis::scene::IGraphicContextInitialParametersSP& init_params)
throw();
82 #endif // SDK_OS_WIN && SDK_GRAPHICS_USE_DIRECTX_10_1
86 const sdk::gfx::OpenGLGraphicsDeviceContext& device_context,
87 sdk::vis::scene::IGraphicContextInitialParametersSP& init_params)
throw();
91 sdk::vis::scene::IGraphicContextInitialParametersSP& init_params)
throw();
101 virtual SDKResult SetParameterImpl(
const SDKParameterID&
id,
const SDKAny& value)
throw();
110 mutable SDKAtomicRefCount m_ref;
113 typedef std::map<SDKParameterID, SDKAnyHandler> ParametersMap;
114 ParametersMap m_parameters;
116 #if defined(SDK_OS_WIN)
131 virtual SDKResult SDK_CALLTYPE
GetParameter(SDKParameterID parameter_id, SDKAny& value)
const throw();
132 virtual SDKResult SDK_CALLTYPE
SetParameter(SDKParameterID parameter_id,
const SDKAny& value)
throw()
134 virtual SDKResult SDK_CALLTYPE Clone(ISDKParametersSP& clone)
const throw()
138 virtual SDKAtomicRefCount SDK_CALLTYPE AddRef()
const throw();
139 virtual SDKAtomicRefCount SDK_CALLTYPE Release()
const throw();
141 void** obj_ptr)
throw();
146 const sdk::gfx::OSWindow& window,
147 sdk::vis::scene::IBackendInitialParametersSP& init_params)
throw();
152 sdk::vis::scene::IBackendInitialParametersSP& init_params)
throw();
162 virtual SDKResult SetParameterImpl(
const SDKParameterID&
id,
const SDKAny& value)
throw();
171 mutable SDKAtomicRefCount m_ref;
174 typedef std::map<SDKParameterID, SDKAnyHandler> ParametersMap;
175 ParametersMap m_parameters;
183 #endif // SDK_VIS_SCENE_INITIALIZATION_HELPERS_H_
static SDKResult CreateBackendInitialParametersForTextureType(const SDKSize &texture_size, sdk::vis::scene::IBackendInitialParametersSP &init_params)
Creates backend initial parameters for kBackendType_Texture type.
A list of SDK error/return results.
Interfaces wrapper with reference count control.
virtual SDKResult SDK_CALLTYPE GetParameter(SDKParameterID id, SDKAny &value) const =0
Returns the value of the specified parameter.
Uuid InterfaceId
Definition of interface UUID.
Definition: sdk_uuid.h:45
Helper class, which allows to create an implementation of IGraphicContextInitialParameters,...
Definition: scene_initialization_helpers.h:48
static SDKResult CreateGraphicContextInitialParametersForOpenGLType(const sdk::gfx::OpenGLGraphicsDeviceContext &device_context, sdk::vis::scene::IGraphicContextInitialParametersSP &init_params)
Creates graphics context initial parameters for kGraphicContextType_DirectX10 type.
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
virtual SDKResult SDK_CALLTYPE SetParameter(SDKParameterID id, const SDKAny &value)=0
Sets the value of the specified parameter.
Common base SDK interfaces.
Helper class, which allows to create an implementation of IBackendInitialParameters,...
Definition: scene_initialization_helpers.h:126
Initial settings to create an appropriate graphics context by factory. No own methods,...
Definition: graphic_context_interface.h:106
static SDKResult CreateGraphicContextInitialParametersForAutoType(sdk::vis::scene::IGraphicContextInitialParametersSP &init_params)
Creates graphics context initial parameters for kGraphicContextType_Auto type.
static SDKResult CreateBackendInitialParametersForWindowType(const sdk::gfx::OSWindow &window, sdk::vis::scene::IBackendInitialParametersSP &init_params)
Creates backend initial parameters for kBackendType_Window type.
Set of structures, which is specific for each of OS, like OpenGL context parameters for Linux or Dire...
static const SDKResult kSDKResult_NotImplemented
Not implemented.
Definition: sdk_results.h:70
static SDKResult CreateGraphicContextInitialParametersForSoftwareType(sdk::vis::scene::IGraphicContextInitialParametersSP &init_params)
Creates graphics context for kGraphicContextType_Software type.
SizeUI.
Definition: geometry_base_types.h:1235
Initial settings to create an appropriate backend by factory.
Definition: backend_interface.h:94
Wrappers for work with SDKAny instance.