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

Feature is a spatial object. A feature has an associated shape. A feature may have a shape with more than one geometry. More...

#include <gdb_feature_edit.h>

Inheritance diagram for IFeatureEdit:
IObjectEdit

Public Types

enum  Properties { kIFE_Flags = 1 }
 Feature editor properties. More...
 
enum  Flags { kForceKeepHistory = 0x001 }
 Feature editor property Flags. More...
 

Public Member Functions

virtual GDBResult SDK_CALLTYPE SetFOID (const SDKAny &foid)=0 throw ()
 Sets a feature unique identifier to the feature object. More...
 
virtual GDBResult SDK_CALLTYPE SetShape (sdk::geometry::IGeometry *geometry)=0 throw ()
 Sets a geometry associated with this feature. More...
 
virtual GDBResult SDK_CALLTYPE AddSlave (IFeatureEdit **slave_feature)=0 throw ()
 Creates a new feature and adds it as a slave to the master one. This method was introduced for performance reasons. More...
 
virtual GDBResult SDK_CALLTYPE DeleteSlave (IFeature *slave_feature)=0 throw ()
 Breaks off master-slave relation between 2 features. This method was introduced for performance reasons. More...
 
virtual GDBResult SDK_CALLTYPE GetGeometryEditor (sdk::geometry::IGeometryEdit **geometry_edit)=0 throw ()
 Returns the geometry editor associated with this feature. More...
 
- Public Member Functions inherited from IObjectEdit
virtual GDBResult SDK_CALLTYPE SetObjectClassCode (ClassCode code)=0 throw ()
 Sets an object class code. More...
 
virtual GDBResult SDK_CALLTYPE SetAttributes (IAttributeCollection *attributes)=0 throw ()
 Adds (copies) specified attributes from a collection to the object. More...
 
virtual GDBResult SDK_CALLTYPE SetFlags (SDKUInt64 flags)=0 throw ()
 Sets object flags. More...
 
virtual GDBResult SDK_CALLTYPE AddRelationship (ObjectID member, RelationshipClass relationship_class, RelationshipRole role, ObjectID &rel_id)=0 throw ()
 Adds a relationship between two existing objects in the dataset. More...
 
virtual GDBResult SDK_CALLTYPE GetAttributesEditor (IAttributeCollectionEdit **attributes_editor)=0 throw ()
 Returns the attributes editor. More...
 

Detailed Description

Feature is a spatial object. A feature has an associated shape. A feature may have a shape with more than one geometry.

Member Enumeration Documentation

◆ Properties

enum Properties

Feature editor properties.

Enumerator
kIFE_Flags 

Propertiy Flags to control the feature editor operations.

◆ Flags

enum Flags

Feature editor property Flags.

Enumerator
kForceKeepHistory 

This flag enforces the feature editor to save history after editing.

Member Function Documentation

◆ SetFOID()

virtual GDBResult SDK_CALLTYPE SetFOID ( const SDKAny &  foid)
throw (
)
pure virtual

Sets a feature unique identifier to the feature object.

Parameters
foid[in] Feature object global identifier.
Returns
kSDKResult_Succeeded
kSDKResult_InternalError - Internal error occurred
kSDKResult_InvalidArgument

◆ SetShape()

virtual GDBResult SDK_CALLTYPE SetShape ( sdk::geometry::IGeometry *  geometry)
throw (
)
pure virtual

Sets a geometry associated with this feature.

Parameters
[in]geometryPointer to the IGeometry interface associated.
Returns
kSDKResult_Succeeded
kSDKResult_NotImplemented
kSDKResult_InvalidArgument

◆ AddSlave()

virtual GDBResult SDK_CALLTYPE AddSlave ( IFeatureEdit **  slave_feature)
throw (
)
pure virtual

Creates a new feature and adds it as a slave to the master one. This method was introduced for performance reasons.

Parameters
[out]slave_featureIFeatureEdit interface associated with the created slave feature.
Returns
kSDKResult_Succeeded
kSDKResult_NotImplemented

◆ DeleteSlave()

virtual GDBResult SDK_CALLTYPE DeleteSlave ( IFeature *  slave_feature)
throw (
)
pure virtual

Breaks off master-slave relation between 2 features. This method was introduced for performance reasons.

Parameters
[in]slave_featureIFeature interface associated with the slave feature.
Returns
kSDKResult_Succeeded
kSDKResult_NotImplemented

◆ GetGeometryEditor()

virtual GDBResult SDK_CALLTYPE GetGeometryEditor ( sdk::geometry::IGeometryEdit **  geometry_edit)
throw (
)
pure virtual

Returns the geometry editor associated with this feature.

Parameters
[out]geometry_editIGeometryEdit interface associated with this feature.
Returns
kSDKResult_Succeeded
kSDKResult_NotImplemented

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