Views
Maps Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions
IlvMapFeature Class Reference

This class represents a simple map feature, that is, an object with a geometry that can be rendered graphically and, optionally, a list of attributes. More...

#include <ilviews/maps/mapfeature.h>

Public Member Functions

 IlvMapFeature ()
 Initializes a new IlvMapFeature instance. More...
 
 IlvMapFeature (const IlvMapFeature &source)
 Initializes a map feature by copying an existing one. More...
 
IlvMapFeaturecopy () const
 Returns a copy of the object. More...
 
const IlvFeatureAttributeInfogetAttributeInfo () const
 Returns the attribute info of this map feature . More...
 
const IlvFeatureAttributePropertygetAttributes () const
 Returns the attributes of this feature. More...
 
const IlvMapGeometrygetGeometry () const
 Returns the geometry of the map feature. More...
 
const IlvMapFeatureIdgetId () const
 Returns the identifier of the map feature. More...
 
const IlvProjectiongetProjection () const
 Returns the projection of the geometry of this map feature. More...
 
void setAttributeInfo (IlvFeatureAttributeInfo *info)
 Sets the attribute info of the map feature. More...
 
IlvFeatureAttributePropertysetAttributes (IlvFeatureAttributeProperty *attributes)
 Sets the attributes of this map feature. More...
 
IlvMapGeometrysetGeometry (IlvMapGeometry *geometry)
 Sets the geometry of the map feature. More...
 
IlvMapFeatureIdsetId (IlvMapFeatureId *id)
 Sets the identifier of the map feature. More...
 
void setProjection (IlvProjection *projection)
 Sets the projection of the geometry of this map feature. More...
 

Detailed Description

This class represents a simple map feature, that is, an object with a geometry that can be rendered graphically and, optionally, a list of attributes.

Library: ilvmaps

See also
IlvFeatureRenderer, IlvMapFeatureIterator.

Constructor & Destructor Documentation

◆ IlvMapFeature() [1/2]

IlvMapFeature::IlvMapFeature ( )

Initializes a new IlvMapFeature instance.

This constructor initializes a new instance of IlvMapFeature, with no geometry, no attributes and no projection.

◆ IlvMapFeature() [2/2]

IlvMapFeature::IlvMapFeature ( const IlvMapFeature source)

Initializes a map feature by copying an existing one.

Parameters
sourceThe map feature that is copied to initiazes this object.

Member Function Documentation

◆ copy()

IlvMapFeature* IlvMapFeature::copy ( ) const

Returns a copy of the object.

Returns
A copy of the object.

◆ getAttributeInfo()

const IlvFeatureAttributeInfo* IlvMapFeature::getAttributeInfo ( ) const

Returns the attribute info of this map feature .

Returns
The attribute info of this map feature, or 0 if the map feature has no attribute..

◆ getAttributes()

const IlvFeatureAttributeProperty* IlvMapFeature::getAttributes ( ) const

Returns the attributes of this feature.

Returns
The attributes of this feature.

◆ getGeometry()

const IlvMapGeometry* IlvMapFeature::getGeometry ( ) const

Returns the geometry of the map feature.

Returns
The geometry of the map feature.

◆ getId()

const IlvMapFeatureId* IlvMapFeature::getId ( ) const

Returns the identifier of the map feature.

Returns
The identifier of the map feature or 0 if the identifier is not defined.

◆ getProjection()

const IlvProjection* IlvMapFeature::getProjection ( ) const

Returns the projection of the geometry of this map feature.

Returns
The projection of the geometry of this map feature, or 0 if the projection in which the coordinates of the feature geometry are expressed is unknown.

◆ setAttributeInfo()

void IlvMapFeature::setAttributeInfo ( IlvFeatureAttributeInfo info)

Sets the attribute info of the map feature.

Parameters
infoThe attribute info.

◆ setAttributes()

IlvFeatureAttributeProperty* IlvMapFeature::setAttributes ( IlvFeatureAttributeProperty attributes)

Sets the attributes of this map feature.

Parameters
attributesThe attributes.
Returns
The previous attributes.

◆ setGeometry()

IlvMapGeometry* IlvMapFeature::setGeometry ( IlvMapGeometry geometry)

Sets the geometry of the map feature.

Parameters
geometryThe geometry to be set.
Returns
The previous geometry.

◆ setId()

IlvMapFeatureId* IlvMapFeature::setId ( IlvMapFeatureId id)

Sets the identifier of the map feature.

Returns
The previous Id.

◆ setProjection()

void IlvMapFeature::setProjection ( IlvProjection projection)

Sets the projection of the geometry of this map feature.

Parameters
projectionThe projection.