This class is an IlvMapFeatureIterator
specialized for reading image files. The supported image formats are those supported by Rogue Wave Views.
More...
#include <ilviews/maps/format/image/imgreader.h>
This class is an IlvMapFeatureIterator
specialized for reading image files. The supported image formats are those supported by Rogue Wave Views.
Library: ilvmaps
§ IlvImageReader() [1/3]
Initializes a new image reader instance from a file name.
- Parameters
-
display | The display instance to use. |
filename | The name of the image file. |
ul | The upper left coordinate of the image. |
lr | The lower right coordinate of the image. |
§ IlvImageReader() [2/3]
Initializes a new image reader instance from an istream
.
- Parameters
-
display | The display instance to use. |
input | A stream opened on an image file. |
ul | The upper left coordinate of the image. |
lr | The lower right coordinate of the image. |
§ IlvImageReader() [3/3]
Initializes a new image reader instance from an IlIUrlStream
.
- Parameters
-
display | The display instance to use. |
input | A stream opened on an image URL. |
ul | The upper left coordinate of the image. |
lr | The lower right coordinate of the image. |
§ getDefaultFeatureRenderer()
§ getGeometry()
§ getInitStatus()
virtual IlvMapsError IlvImageReader::getInitStatus |
( |
| ) |
const |
|
virtual |
Checks the initialization status of this feature iterator.
- Returns
- The error code that may have happened during the iterator initialization.
Implements IlvMapFeatureIterator.
§ getLowerRightCorner()
Computes the lower right corner of the rectangle containing all the map features of this iterator.
- Parameters
-
result | Set on return to the lower right corner of the rectangle containing all the map features of this iterator. |
- Returns
IlFalse
if lower right is unknown.
Implements IlvMapFeatureIterator.
§ getNextFeature()
virtual const IlvMapFeature* IlvImageReader::getNextFeature |
( |
IlvMapsError & |
status | ) |
|
|
virtual |
Returns the next map feature of the iterator.
- Parameters
-
status | Set on return to the status of the operation. This status is IlvMaps::NoError() if no error occurs. |
- Returns
- The next map feature available, or
0
if the iteration is finished. The returned feature is owned by the feature iterator.
Implements IlvMapFeatureIterator.
§ getProjection()
Returns the projection in which the geometric coordinates of the map features are expressed.
- Returns
- The projection of the geometry, or
0
if the feature iterator returns ungeoreferenced map features.
Implements IlvMapFeatureIterator.
§ getUpperLeftCorner()
Computes the upper left corner of the rectangle containing all the map features of this iterator.
- Parameters
-
result | Set on return to the upper left corner of the rectangle containing all the map features of this iterator. |
- Returns
IlFalse
if upper left is unknown.
Implements IlvMapFeatureIterator.
§ setSourceProjection()
void IlvImageReader::setSourceProjection |
( |
IlvProjection * |
projection | ) |
|
|
virtual |
Sets the projection of geometries generated by this feature iterator.
This method is to be used when feature source is not georeferenced. The default implementation of this method does nothing.
- Parameters
-
projection | The projection to be set. This projection becomes shared and is locked by this feature iterator. |
Reimplemented from IlvMapFeatureIterator.
© Copyright 2018, 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.