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
IlvMapGeometry Class Referenceabstract

This abstract class is the base class of the map geometry objects. More...

#include <ilviews/maps/geometry.h>

Inheritance diagram for IlvMapGeometry:
IlvMapArea IlvMapCurve IlvMapGeometryCollection IlvMapMultiPoint IlvMapPoint IlvMapText IlvMapImage IlvMapMultiArea IlvMapPolygon IlvMapRaster IlvMapRing IlvMapCircle IlvMapMultiCurve IlvMapSegment

Public Member Functions

virtual IlvMapGeometry * copy () const =0
 Returns a copy of the object. More...
 
virtual IlvClassInfo * getClassInfo () const =0
 Returns the IlvClassInfo of the instance. More...
 
virtual const IlvMapGeometry * getSubElement (IlUInt index) const =0
 Returns a sub element of a collection geometry. More...
 
virtual IlUInt getSubElementCount () const =0
 Returns the number of elements contained in the geometry if the geometry is a collection. More...
 
virtual IlBoolean isCollection () const =0
 Checks if this geometry is a collection of other geometries. More...
 

Static Public Member Functions

static IlvClassInfo * ClassInfo ()
 Returns the class info. More...
 

Protected Member Functions

 IlvMapGeometry ()
 Constructor. More...
 

Detailed Description

This abstract class is the base class of the map geometry objects.

Library: ilvmaps

The IlvMapGeometry classes represent the shape of the map features.

The instances of the predefined subclasses of IlvMapGeometry can be rendered by an IlvDefaultFeatureRenderer.

Constructor & Destructor Documentation

◆ IlvMapGeometry()

IlvMapGeometry::IlvMapGeometry ( )
protected

Constructor.

Initializes an instance of the class.

Member Function Documentation

◆ ClassInfo()

static IlvClassInfo* IlvMapGeometry::ClassInfo ( )
static

Returns the class info.

This static function, redefined for each subclass of IlvMapGeometry returns the IlvClassInfo of the class.

Returns
An IlvClassInfo that should not be modified nor deleted.

◆ copy()

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

◆ getClassInfo()

virtual IlvClassInfo* IlvMapGeometry::getClassInfo ( ) const
pure virtual

◆ getSubElement()

virtual const IlvMapGeometry* IlvMapGeometry::getSubElement ( IlUInt  index) const
pure virtual

Returns a sub element of a collection geometry.

Parameters
indexThe index of the sub-geometry to be retrieved.
Returns
The sub element of index index if the geometry is a collection or 0 if it is not.

Implemented in IlvMapText, IlvMapSegmentString, IlvMapSegmentRing, IlvMapRaster, IlvMapPolygon, IlvMapPoint, IlvMapMultiPoint, IlvMapMultiCurve, IlvMapMultiArea, IlvMapLinearSegment, IlvMapImage, IlvMapGeometryCollection, IlvMapCircularRing, IlvMapCircle, and IlvMapArcSegment.

◆ getSubElementCount()

virtual IlUInt IlvMapGeometry::getSubElementCount ( ) const
pure virtual

Returns the number of elements contained in the geometry if the geometry is a collection.

Returns
The number of elements contained in the geometry if the geometry is a collection. If it is not, this method returns 0.

Implemented in IlvMapText, IlvMapSegmentString, IlvMapSegmentRing, IlvMapRaster, IlvMapPolygon, IlvMapPoint, IlvMapMultiPoint, IlvMapMultiCurve, IlvMapMultiArea, IlvMapLinearSegment, IlvMapImage, IlvMapGeometryCollection, IlvMapCircularRing, IlvMapCircle, and IlvMapArcSegment.

◆ isCollection()

virtual IlBoolean IlvMapGeometry::isCollection ( ) const
pure virtual

Checks if this geometry is a collection of other geometries.

The composite geometries predefined in Rogue Wave Views Maps are: IlvMapGeometryCollection, IlvMapMultiPoint, IlvMapSegmentString and its subclasses, IlvMapMultiCurve and IlvMapMultiArea.

Returns
IlTrue if the geometry is a collection of other geometries.

Implemented in IlvMapText, IlvMapSegmentString, IlvMapSegmentRing, IlvMapRaster, IlvMapPolygon, IlvMapPoint, IlvMapMultiPoint, IlvMapMultiCurve, IlvMapMultiArea, IlvMapLinearSegment, IlvMapImage, IlvMapGeometryCollection, IlvMapCircularRing, IlvMapCircle, and IlvMapArcSegment.