Class Members

Data

m_ObjSelID

a vector of _ObjLocator structure of objects selected by rectangle select, polygon select or marque select tool

m_rtree_search_result

a vector of _ObjLocator structure of objects, that's result of search functions GetNodeInRect, GetObjectInRect or GetObjectInterRect

Object Access

GetObject

Load object with specified object ID from database and return a pointer to CMapObject.

GetNode

Load node with specified object ID from database and return a pointer to CMapObject.

GetObjectIndex

Load object with zero-based index from database and return a pointer to CMapObject.

GetFirstInXtreeObject

Load first object (first position in x-tree). Use for fast map object access.

GetNextInXtreeObject

Load next in x-tree object. Use for fast map object access.

GetFirstNode

Load first node (first position in kd-tree). Use for fast map object access.

GetNextNode

Load next in kd-tree object. Use for fast map object access.

Head/Tail Access (depreciated)

GetObjectHead

Returns the first object of the layer (cannot be empty).

GetObjectTail

Returns the last object of the layer (cannot be empty).

Database Management

AddField

Adds new data field.

GetFieldCount

Get total number of data fields.

GetFieldType

Get specific field type.

GetFieldName

Get specific field name.

RemoveFields

Remove specified data fields.

FindField

Finds the data field specified by field name.

View Management

SetLayerType

Set map layer type.

GetLayerType

Returns type of layer.

SetScaleLimit

Set layer scale limits.

GetScaleMin

Returns minimal scale.

GetScaleMax

Returns maximal scale.

GetLabelScaleMin

Returns minimal scale.

GetLabelScaleMax

Returns maximal scale.

IsScaleLimit

Checks whether the layer scale limit is enabled.

IsLabelScaleLimit

Checks whether the layer label scale limit is enabled.

GetTransparency

Returns layer transparency level.

SetTransparency

 Set layer transparency level.

AddViewStyle

Adds new style.

DeleteViewStyle

Removes specified layer style.

GetViewStyleSize

Returns number of layer styles.

GetViewStyle

Return layer style at specified index.

Search

FindObject

Finds map object in specified screen position.

GetNodeInRect

Finds all nodes in specified map rectangle.

GetObjectInRect

Finds all objects in specified map rectangle.

GetObjectInterRect

Finds all objects intersected with specified map rectangle.

FindObjectByXTree

Finds all none-node objects intersected with specific map rectangle.

FindNodeByKdTree

Finds all node objects intersected with specific map rectangle.

Label

GetLabelDescription

Gets the data fields used as label.

GetLabelProperty

Gets the label property.

SetAutoLabel

Sets the auto label property.

SetLabelDescription

Sets the data fields used as label.

SetLabelProperty

Sets the label property.

GetObjectLabel

Returns the object label content.

Other

GetBoundary

Gets boundary of the map layer.

AddObject

Adds an object to map layer.

Commit

Saves all changes made to the layer database.

DeleteObject

Removes specified object from the layer database.

DeleteObjectHead

Removes the first object (row) from the layer database.

DeleteObjectTail

Removes the last object (row) from the layer database.

GetLayerName

Returns the layer name.

GetLayerProperty

Returns the layer property (i.e. the pointer to the CMapProperty object).

GetMap

Returns the pointer to the map (i.e. CMapT object).

GetObjectCount

Returns the number of objects in the layer.

GetNodeCount

Return the number of node objects in the layer.

IsAutoLabel

Checks whether the layer is Auto Labeling.

IsEditable

Checks the layer is editable or not.

IsOverride

Checks the layer overrides its object properties or not.

IsSelectable

Checks the layer is selectable or not.

IsVisible

Checks the layer is visible or not.

IsInRange

Checks the layer is in range or not.

IsLayerChanged

Return true if layer data has been changed, otherwise false..

RecalcBoundary

Re-calculate the layer boundary.

SetEditable

Sets the Editable property to TRUE (i.e. makes the layer editable).

SetLayerProperty

Sets the layer property.

SetOverride

Sets the Override property.

SetSelectable

Sets the Selectable property.

DoVacuum

Optimize the layer index.

SetVisible

Sets the Visible property.

CheckFieldNameExist

Check if given field present in meta data

 

CMapLayer Overview | Hierarchy Chart