public interface IVertexReader
Modifier and Type | Method and Description |
---|---|
ICoordinateTransform |
getCoordinateTransform()
Gets the coordinate transform associated with this instance.
|
double |
getXMax()
Gets the maximum x coordinate in the sample
|
double |
getXMin()
Gets the minimum x coordinate in the sample
|
double |
getYMax()
Gets the maximum y coordinate in the sample
|
double |
getYMin()
Gets the minimum y coordinate in the sample
|
double |
getZMax()
Gets the maximum z coordinate in the sample
|
double |
getZMin()
Gets the minimum z coordinate in the sample
|
boolean |
isSourceInGeographicCoordinates()
Indicates whether the source data was in geographic coordinates
|
List<Vertex> |
read(IMonitorWithCancellation monitor)
Read a collection of vertices from the data source associated
with the current implementation and instance.
|
void |
setCoordinateTransform(ICoordinateTransform transform)
Sets a coordinate transform to be used for mapping values from the source
file to vertex coordinates.
|
ICoordinateTransform getCoordinateTransform()
double getXMax()
double getXMin()
double getYMax()
double getYMin()
double getZMax()
double getZMin()
boolean isSourceInGeographicCoordinates()
List<Vertex> read(IMonitorWithCancellation monitor) throws IOException
Monitoring Progress of the Read Because some input sources can produce quite a large number of vertices and may require several seconds for load operations, this interface supports an optional monitor object. Implementation classes are not required to support monitors, but should do so if it is feasible. The Tinfour monitor is intended to support two operations. First, it provides a read operation a mechanism for advising the calling application on the status of its progress. Second, it provides the calling application a mechanism for canceling a read operation. These operations are generally used in support of a user interface, but may have other applications.
All implementations are expected to implement logic to handle a null monitor reference.
monitor
- a valid instance or a null if no monitoring is desired.IOException
- in the event of unreadable data or I/O access
exceptions.void setCoordinateTransform(ICoordinateTransform transform)
transform
- a valid transform or a null if none is to be applied.Copyright © 2021. All rights reserved.