 |
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_GL2D_MESH_INTERFACE_H_
11 #define SDK_GL2D_MESH_INTERFACE_H_
16 #include <base/inc/sdk_component_base.h>
18 #include <visualizationlayer/inc/vis_const.h>
19 #include <visualizationlayer/inc/gl2d/gl2d_projection_interface.h>
21 SDK_GL2D_BEGIN_NAMESPACE
37 kGL2DMeshType_Unknown = 0,
42 kGL2DMeshType_Pure = 1,
45 kGL2DMeshType_Colored = 2,
52 kGL2DMeshType_Pure_ForPerspProj = 3,
56 kGL2DMeshType_Colored_ForPerspProj = 4,
67 kGL2DMeshPrimitiveType_Triangles = 0,
68 kGL2DMeshPrimitiveType_TriangleStrip = 1,
69 kGL2DMeshPrimitiveType_TriangleFan = 2,
78 virtual void SDK_CALLTYPE
Dump()
const throw() = 0;
81 virtual IGL2DCanvasSP SDK_CALLTYPE
GetParent()
const throw() = 0;
96 virtual SDKUInt32 SDK_CALLTYPE
GetMemSize() const throw() = 0;
101 const GL2DProjectionType& projection_type) const throw() = 0;
103 const IGL2DProjectionSP& projection)
const
105 const GL2DProjectionType type = projection
106 ? projection->GetType() : kGL2DProjectionType_Unknown;
115 SDK_GL2D_END_NAMESPACE
117 #endif // SDK_GL2D_MESH_INTERFACE_H_
GL2DMeshPropertyIDs
Generic GL2D Mesh properties.
Definition: gl2d_mesh_interface.h:28
virtual SDKUInt32 SDK_CALLTYPE GetMemSize() const =0
Returns mesh memory size.
virtual IGL2DCanvasSP SDK_CALLTYPE GetParent() const =0
Returns parent canvas object.
virtual SDKUInt32 SDK_CALLTYPE GetElementsCount() const =0
Returns number of elements (indices) in mesh.
virtual GL2DMeshPrimitiveType SDK_CALLTYPE GetPrimitiveType() const =0
Returns mesh primitive type.
bool SDK_CALLTYPE IsIndexed() const
Checks, if given mesh is indexed.
Definition: gl2d_mesh_interface.h:84
virtual bool SDK_CALLTYPE SupportsProjection(const GL2DProjectionType &projection_type) const =0
Checks, if given mesh supports given projection (can be rendered via given projection)
Object generic properties interface.
GL2DMeshType
Available mesh type.
Definition: gl2d_mesh_interface.h:34
GL2DMeshPrimitiveType
Available mesh primitive type.
Definition: gl2d_mesh_interface.h:65
virtual GL2DMeshType SDK_CALLTYPE GetType() const =0
Returns mesh type.
GL2D Mesh object.
Definition: gl2d_mesh_interface.h:74
GL2D Canvas to use to drawing NOTE! Create/Draw functionality was moved to appropriate GL2D Canvas Fu...
Definition: gl2d_canvas_interface.h:435
virtual void SDK_CALLTYPE Dump() const =0
Dumps given object.
virtual SDKUInt32 SDK_CALLTYPE GetVertexCount() const =0
Returns number of vertexes in mesh.
FWD_DECL_INTERFACE(ILWEParserWrapper)
Provides a wrapper around the message parser to get, add or remove the.