rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

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>

List of all members.

Public Member Functions

 IlvMapFeature (const IlvMapFeature &source)
 Initializes a map feature by copying an existing one.
 IlvMapFeature ()
 Initializes an instance of IlvMapFeature.
IlvMapFeature * copy () const
 Returns a copy of the object.
const IlvFeatureAttributeInfo * getAttributeInfo () const
 Returns the attribute info of the map feature or 0 if the map feature has no attribute.
const IlvFeatureAttributeProperty * getAttributes () const
 Returns the attributes of the feature.
const IlvMapGeometry * getGeometry () const
 Returns the geometry of the map feature.
const IlvMapFeatureId * getId () const
 Returns the identifier of the map feature.
const IlvProjection * getProjection () const
 Returns the projection of the geometry of the map feature or 0 if the projection in which the coordinates of the feature geometry are expressed is unknown.
void setAttributeInfo (IlvFeatureAttributeInfo *info)
 Sets the attribute info of the map feature.
IlvFeatureAttributeProperty * setAttributes (IlvFeatureAttributeProperty *attributes)
 Sets the attributes of the map feature.
IlvMapGeometry * setGeometry (IlvMapGeometry *geometry)
 Sets the geometry of the map feature.
IlvMapFeatureId * setId (IlvMapFeatureId *id)
 Sets the identifier of the map feature.
void setProjection (IlvProjection *projection)
 Sets the projection of the geometry of the map feature.

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::IlvMapFeature (  ) 

Initializes an instance of IlvMapFeature.

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


Member Function Documentation

IlvMapFeature* IlvMapFeature::copy (  )  const

Returns a copy of the object.

Returns:
A copy of the object.
const IlvFeatureAttributeInfo* IlvMapFeature::getAttributeInfo (  )  const

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

Returns:
The attribute info of the map feature.
const IlvFeatureAttributeProperty* IlvMapFeature::getAttributes (  )  const

Returns the attributes of the feature.

Returns:
The attributes of the feature.
const IlvMapGeometry* IlvMapFeature::getGeometry (  )  const

Returns the geometry of the map feature.

Returns:
The geometry of the map feature.
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.
const IlvProjection* IlvMapFeature::getProjection (  )  const

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

Returns:
The projection of the geometry of the map feature, or 0.
void IlvMapFeature::setAttributeInfo ( IlvFeatureAttributeInfo *  info  ) 

Sets the attribute info of the map feature.

Parameters:
info The attribute info.
IlvFeatureAttributeProperty* IlvMapFeature::setAttributes ( IlvFeatureAttributeProperty *  attributes  ) 

Sets the attributes of the map feature.

Parameters:
attribute The attributes.
Returns:
The previous attributes.
IlvMapGeometry* IlvMapFeature::setGeometry ( IlvMapGeometry *  geometry  ) 

Sets the geometry of the map feature.

Parameters:
geometry The geometry to be set.
Returns:
The previous geometry.
IlvMapFeatureId* IlvMapFeature::setId ( IlvMapFeatureId *  id  ) 

Sets the identifier of the map feature.

Returns:
The previous Id.
void IlvMapFeature::setProjection ( IlvProjection *  projection  ) 

Sets the projection of the geometry of the map feature.

Parameters:
projection The projection.

© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.