NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
IGeometryCollection Class Referenceabstract

Provides access to members that can be used for accessing individual geometries of a multi-part geometry (Multipoint, Curve, CompositeCurve, Surface). More...

#include <geometry.h>

Inheritance diagram for IGeometryCollection:
ISDKComponent

Public Member Functions

virtual SDKResult SDK_CALLTYPE GetGeometryCount (SDKUInt32 &count) const =0 throw ()
 Returns the number of Geometries in the GeometryCollection.
 
virtual SDKResult SDK_CALLTYPE GetGeometry (SDKUInt32 index, IGeometry **geometry) const =0 throw ()
 Returns the ith Geometry from the GeometryCollection. The first Geometry has index 0 and the last Geometry has index equal to GeometryCount - 1. More...
 
- Public Member Functions inherited from ISDKComponent
virtual SDKAtomicRefCount SDK_CALLTYPE AddRef () const =0 throw ()
 Increments the reference count for an interface on a component.

 
virtual SDKAtomicRefCount SDK_CALLTYPE Release () const =0 throw ()
 Decrements the reference count for an interface on a component.
 
virtual SDKResult SDK_CALLTYPE GetInterface (const InterfaceId &id, void **obj_ptr)=0 throw ()
 Returns pointers to the supported interfaces on a component.
 
template<typename _Itf >
SDKResult GetInterface (_Itf **obj_ptr) throw ()
 Returns pointers to the supported interfaces on a component.
 

Detailed Description

Provides access to members that can be used for accessing individual geometries of a multi-part geometry (Multipoint, Curve, CompositeCurve, Surface).

Member Function Documentation

◆ GetGeometry()

virtual SDKResult SDK_CALLTYPE GetGeometry ( SDKUInt32  index,
IGeometry **  geometry 
) const
throw (
)
pure virtual

Returns the ith Geometry from the GeometryCollection. The first Geometry has index 0 and the last Geometry has index equal to GeometryCount - 1.

Parameters
index[in] Zero-based position of a Geometry in the collection.
geometry[out] Address of variable that receives the pointer to a Geometry interface.
Returns
SDKResult_Succeeded
SDKResult_NotImplemented
SDKResult_NotExist

The documentation for this class was generated from the following file: