This class defines a georeferenced text.
More...
#include <ilviews/maps/geometry/geotext.h>
This class defines a georeferenced text.
Library: ilvmaps
The instances of this class can be rendered by an IlvDefaultFeatureRenderer
or by an IlvDefaultTextRenderer
.
◆ IlvMapText() [1/2]
IlvMapText::IlvMapText |
( |
const IlvCoordinate & |
p, |
|
|
const char * |
text |
|
) |
| |
Initializes a new text.
- Parameters
-
p | An anchor point for the text. |
text | The value of the text. |
◆ IlvMapText() [2/2]
IlvMapText::IlvMapText |
( |
const IlvMapText & |
source | ) |
|
Initializes a new text by copying an existing one.
- Parameters
-
◆ copy()
◆ getClassInfo()
◆ getPoint()
Returns the anchor point of the text.
- Returns
- The anchor point of the text.
◆ 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 IlvMapText::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.
◆ getText()
const char* IlvMapText::getText |
( |
| ) |
const |
Returns the value of the text.
- Returns
- The value of the text.
◆ isCollection()
virtual IlBoolean IlvMapText::isCollection |
( |
| ) |
const |
|
virtual |
◆ setPoint()
Sets the position of the text.
- Parameters
-
point | An Anchor point for the text. |
◆ setText()
void IlvMapText::setText |
( |
const char * |
text | ) |
|
Sets the value of the text.
- Parameters
-
text | The value of the text. |