public class VertexLoader extends Object
| Constructor and Description |
|---|
VertexLoader() |
| Modifier and Type | Method and Description |
|---|---|
org.tinfour.utils.loaders.ICoordinateTransform |
getCoordinateTransform()
Gets the coordinate transform, if any
|
org.tinfour.utils.LinearUnits |
getLinearUnits()
Gets the linear units for the coordinate system used by the data.
|
long |
getNumberOfVerticesInFile()
Gets the number of vertices in source file (including those that were
marked as withheld.
|
double |
getTimeForLoad()
Gets the total time to load a file (including the time required for
pre-sort if enabled).
|
double |
getTimeForPreSort()
Gets the time required for the spatial locality sort or zero if not
performed
|
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<org.tinfour.common.Vertex> |
readInputFile(TestOptions options)
Read the LAS file as specified in the supplied options, applying any
settings such as maxNumberOfVertices or setPreSortEnabled that are passed
as part of the options object.
|
void |
setClip(double xClipMin,
double xClipMax,
double yClipMin,
double yClipMax)
Sets the limits for accepting vertices
|
void |
setMaximumNumberOfVertices(long maxN)
Sets the maximum number of vertices that will be loaded from a source file.
|
void |
setPreSortEnabed(boolean enabled)
Set the loader to pre-sort the vertices to improve their spatial locality
before processing.
|
public void setMaximumNumberOfVertices(long maxN)
maxN - the maximum number of vertices.public void setPreSortEnabed(boolean enabled)
enabled - true if the sort is enabled; otherwise, false.public List<org.tinfour.common.Vertex> readInputFile(TestOptions options) throws IOException
options - a valid options objectIOException - in the event of a non-recoverable I/O condition such as
file-not-found.public double getXMin()
public double getXMax()
public double getYMin()
public double getYMax()
public double getZMin()
public double getZMax()
public double getTimeForPreSort()
public double getTimeForLoad()
public long getNumberOfVerticesInFile()
public void setClip(double xClipMin,
double xClipMax,
double yClipMin,
double yClipMax)
xClipMin - the minimum x coordinate for accepting vertices.xClipMax - the maximum x coordinate for accepting vertices.yClipMin - the minimum y coordinate for accepting vertices.yClipMax - the maximum y coordinate for accepting vertices.public boolean isSourceInGeographicCoordinates()
public org.tinfour.utils.LinearUnits getLinearUnits()
public org.tinfour.utils.loaders.ICoordinateTransform getCoordinateTransform()
Copyright © 2019. All rights reserved.