 |
NAVTOR SDK
v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
|
|
10 #ifndef SDK_VIS_LAYER_RESOURCE_INTERFACE_H_
11 #define SDK_VIS_LAYER_RESOURCE_INTERFACE_H_
16 #include <base/inc/forward_declarations.h>
22 #include <visualizationlayer/inc/graphics/2d_graphics_objects.h>
47 virtual SDKResult SDK_CALLTYPE
CopyFrom(
const ILayerResourceSP& resource)
throw() = 0;
90 typedef SDKUInt32 SLTextureID;
91 typedef SDKUInt64 SLEntryID;
92 typedef SDKUInt32 SLEntryPriority;
101 virtual SDKResult SDK_CALLTYPE AddTexture(
const SLTextureID& tex_id,
const ITextureSP& texture,
104 virtual SDKResult SDK_CALLTYPE DeleteTexture(
const SLTextureID& tex_id)
throw() = 0;
110 virtual SDKResult SDK_CALLTYPE EnumTextures(
111 ILayerResourceSpriteListTextureEnumSP& enumerator)
throw() = 0;
114 virtual SDKResult SDK_CALLTYPE AddEntry(
const SLEntryID&
id,
const SLTextureID& tex_id,
115 const SLEntryPriority& priority,
const SDKMatrix4X4& transform)
throw() = 0;
117 virtual SDKResult SDK_CALLTYPE DeleteEntry(
const SLEntryID&
id)
throw() = 0;
119 virtual SDKResult SDK_CALLTYPE DeleteEntries(
const SLTextureID& tex_id)
throw() = 0;
121 virtual SDKResult SDK_CALLTYPE DeleteAllEntries()
throw() = 0;
124 virtual SDKResult SDK_CALLTYPE GetEntry(
const SLEntryID&
id, SLTextureID& tex_id,
125 SLEntryPriority& priority, SDKMatrix4X4& transform)
throw() = 0;
127 virtual SDKResult SDK_CALLTYPE EnumEntries(ILayerResourceSpriteListEnumSP& enumerator)
throw() = 0;
129 virtual SDKResult SDK_CALLTYPE EnumEntries(
const SLTextureID& tex_id,
130 ILayerResourceSpriteListEnumSP& enumerator)
throw() = 0;
133 virtual SDKResult SDK_CALLTYPE UpdateEntryPriority(
const SLEntryID&
id,
134 const SLEntryPriority& priority)
throw() = 0;
136 virtual SDKResult SDK_CALLTYPE UpdateEntryTransform(
const SLEntryID&
id,
137 const SDKMatrix4X4& transform,
bool multiply)
throw() = 0;
161 virtual SDKResult SDK_CALLTYPE Reset() throw() = 0;
163 virtual
SDKResult SDK_CALLTYPE Next(SLEntryID&
id, SLTextureID& tex_id,
164 SLEntryPriority& priority, SDKMatrix4X4& transform) const throw() = 0;
177 virtual SDKResult SDK_CALLTYPE Reset()
throw() = 0;
179 virtual SDKResult SDK_CALLTYPE Next(SLTextureID& tex_id, ITextureSP& texture,
RectF2D& viewport)
const throw() = 0;
209 SDK_DECLARE_IID(ILayerResourceTexture)
215 #endif // SDK_VIS_LAYER_RESOURCE_INTERFACE_H_
virtual SDKResult SDK_CALLTYPE SetSize(const SDKSizeF &size)=0
Sets size of the resource, ignored if not applicable.
Interfaces wrapper with reference count control.
Object generic properties interface.
virtual SDKResult SDK_CALLTYPE GetSize(SDKSizeF &size)=0
Returns size of the resource texture or null size if not applicable.
Sprites enumerator.
Definition: layer_resource_interface.h:157
Extension of ILayerResource interface, used for kResourceType_RenderTarget resource type.
Definition: layer_resource_interface.h:61
2D Rectangle
Definition: geometry_base_types.h:1295
virtual SDKResult SDK_CALLTYPE GetTexture(ITextureSP &texture)=0
Returns texture associated with render target.
Sprite list textures enumerator.
Definition: layer_resource_interface.h:173
virtual SDKResult SDK_CALLTYPE CopyFrom(const ILayerResourceSP &resource)=0
Copies data from another resource.
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
Extension of ILayerResource interface, used for kResourceType_Texture resource type.
Definition: layer_resource_interface.h:189
Matrix 4X4 implementation.
A 2-D Rectangle.
Definition: geometry_base_types_helpers.h:423
Provides access to members that control the properties.
Definition: properties_interface.h:32
Extension of ILayerResource interface, used for kResourceType_SpritesList resource type.
Definition: layer_resource_interface.h:97
Common base SDK interfaces.
virtual SDKResult SDK_CALLTYPE GetRenderTarget(gfx::RenderTargetSP &render_target)=0
Retrieves render target to draw to.
virtual SDKResult SDK_CALLTYPE ReinitializeResources()=0
Reinitializes appropriate layer resources, like render target, etc.
Base interface for all SDK interfaces.
Definition: sdk_component_interface.h:41
Base layer resource interface.
Definition: layer_resource_interface.h:38
FWD_DECL_INTERFACE(ILWEParserWrapper)
Provides a wrapper around the message parser to get, add or remove the.
SizeF.
Definition: geometry_base_types.h:1111