This class defines an area that is composed of a list of IlvMapArea
.
More...
#include <ilviews/maps/geometry/geomarea.h>
This class defines an area that is composed of a list of IlvMapArea
.
Library: ilvmaps
The instances of this class can be rendered by an IlvDefaultFeatureRenderer
or by an IlvDefaultAreaRenderer
.
◆ IlvMapMultiArea()
◆ addArea()
void IlvMapMultiArea::addArea |
( |
IlvMapArea * |
area | ) |
|
Adds an area.
In this operation, the multi area becomes owner of the area.
- Parameters
-
area | The area to be added. |
◆ contains()
Returns IlTrue
if some coordinate is contained in the object.
- Parameters
-
coordinate | The point to be checked. |
- Returns
IlTrue
if coordinate is contained in the object.
Implements IlvMapArea.
◆ copy()
◆ getArea()
Returns the area at a given index.
- Parameters
-
- Returns
- An
IlvMapArea
object that should not be modified nor deleted.
◆ getCardinal()
IlUInt IlvMapMultiArea::getCardinal |
( |
| ) |
const |
Returns the number of areas.
- Returns
- The number of areas.
◆ getClassInfo()
virtual IlvClassInfo* IlvMapMultiArea::getClassInfo |
( |
| ) |
const |
|
virtual |
◆ getStroke()
virtual const IlvMapCurve* IlvMapMultiArea::getStroke |
( |
| ) |
const |
|
virtual |
Returns the stroke of the area.
- Returns
- An
IlvCurve
object that should not be deleted nor modified.
Implements IlvMapArea.
◆ getSubElement()
Returns a sub element of a collection geometry.
- Parameters
-
index | The 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.
Implements IlvMapGeometry.
◆ getSubElementCount()
virtual IlUInt IlvMapMultiArea::getSubElementCount |
( |
| ) |
const |
|
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
.
Implements IlvMapGeometry.
◆ isCollection()
virtual IlBoolean IlvMapMultiArea::isCollection |
( |
| ) |
const |
|
virtual |
◆ removeArea()
Removes the specified area and returns it.
- Parameters
-
area | The area to be removed. |
- Returns
- The specified area if the specified area if part of the multi area, that should be deleted by the user. If the area is not part of the multi area this method returns
0
.