Views
Maps Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions
IlvFeatureAttribute Class Referenceabstract

This class is the base class for the attributes of the map features. More...

#include <ilviews/maps/attribute.h>

Inheritance diagram for IlvFeatureAttribute:
IlvAttributeArray IlvBooleanAttribute IlvDoubleAttribute IlvIntegerAttribute IlvStringAttribute

Public Member Functions

virtual IlvFeatureAttributecopy () const =0
 Copies the object. More...
 
void save (IlvOutputFile &file) const
 Saves the object to an IlvOutputFile. More...
 
virtual void write (IlvOutputFile &output) const =0
 Writes the object to an IlvOutputFile object. More...
 

Static Public Member Functions

static IlvFeatureAttributeLoad (IlvInputFile &file)
 Loads an attribute from an IlvInputFile. More...
 

Protected Member Functions

 IlvFeatureAttribute ()
 Constructor. More...
 

Detailed Description

This class is the base class for the attributes of the map features.

Library: ilvmaps

An IlvMapFeature object can have one or more attributes that can be accessed by the getAttributes() method. This method returns an IlvFeatureAttributeProperty instance. Map features can be used by user-defined renderers to translate a feature into a graphic object. Feature attributes can also be used in a map application to display attribute values to the user.

The directory ilviews/maps/attribute defines a set of predefined attribute classes to store the most common types of attributes used for map features.

They all have the following properties:

Feature attributes can be attached to a graphic object using an IlvFeatureAttributeProperty.

Constructor & Destructor Documentation

◆ IlvFeatureAttribute()

IlvFeatureAttribute::IlvFeatureAttribute ( )
protected

Constructor.

Creates a new instance of IlvFeatureAttribute.

Member Function Documentation

◆ copy()

virtual IlvFeatureAttribute* IlvFeatureAttribute::copy ( ) const
pure virtual

◆ Load()

static IlvFeatureAttribute* IlvFeatureAttribute::Load ( IlvInputFile file)
static

Loads an attribute from an IlvInputFile.

Parameters
fileThe input file.

◆ save()

void IlvFeatureAttribute::save ( IlvOutputFile file) const

Saves the object to an IlvOutputFile.

Parameters
fileThe output file.

◆ write()

virtual void IlvFeatureAttribute::write ( IlvOutputFile output) const
pure virtual

Writes the object to an IlvOutputFile object.

Parameters
outputThe output file.