public interface IModel
| Modifier and Type | Method and Description |
|---|---|
void |
addConstraints(File constraintsFile,
List<IConstraint> constraints)
Adds constraints to the model
|
boolean |
areConstraintsLoaded()
Indicates if the constraint source for the model has been loaded
|
boolean |
areVerticesLoaded()
Indicates if the vertex source for the model has been loaded
|
void |
geo2xy(double latitude,
double longitude,
double[] xy)
If defined, converts a pair of geographic (latitude,longitude)
coordinates to a pair of scaled Cartesian coordinates.
|
double |
getArea()
Gets the overall area of the model, in the units squared associated
with the horizontal coordinate system.
|
List<IConstraint> |
getConstraints()
Gets the current list of constraints for the model/
|
ICoordinateTransform |
getCoordinateTransform()
Gets the coordinate transform associated with the model.
|
String |
getDescription()
Gets a shortdescription of the model
|
File |
getFile()
Gets the file associated with the model
|
String |
getFormattedCoordinates(double x,
double y)
Get a string representation for the specified model coordinates.
|
String |
getFormattedX(double x)
Get a string representation of the specified model X coordinate.
|
String |
getFormattedY(double y)
Get a string representation of the specified model X coordinate.
|
LinearUnits |
getLinearUnits()
Gets the linear units for the coordinate system used by the
data.
|
double |
getMaxX()
Gets the maximum x coordinate in the sample
|
double |
getMaxY()
Gets the maximum y coordinate in the sample
|
double |
getMaxZ()
Gets the maximum z coordinate in the sample
|
double |
getMinX()
Gets the minimum x coordinate in the sample
|
double |
getMinY()
Gets the minimum y coordinate in the sample
|
double |
getMinZ()
Gets the minimum z coordinate in the sample
|
String |
getName()
Get the name or identification associated with the model.
|
double |
getNominalPointSpacing()
Gets the estimated nominal point spacing for the model
|
List<Vertex> |
getPerimeterVertices()
Gets a list of the vertices that lie on the perimeter
of the TIN.
|
double |
getReferenceReductionFactor()
Gets the reduction factor for the reference TIN
|
IIncrementalTin |
getReferenceTin()
Gets the "reference" TIN that was created when the data was
first loaded.
|
long |
getTimeToLoadInMillis()
Gets the time required to load the model, in milliseconds.
|
long |
getTimeToSortInMillis()
Gets the time required to perform the post-loading Hilbert sort
on the vertices, in milliseconds.
|
int |
getVertexCount()
Get the number of samples in the model
|
Vertex |
getVertexForIndex(int index)
Get the vertex with the specified vertex index.
|
List<Vertex> |
getVertexList()
Gets the list of vertices currently stored in the model; for efficiency
purposes, this is simply a reference to internal storage and
not a safe copy.
|
boolean |
hasConstraints()
Indicates whether the model has constraints and is thus a
Constrained Delaunay Triangulation (CDT).
|
boolean |
hasConstraintsSource()
Indicates that the model has a definition for a constraint source.
|
boolean |
hasVertexSource()
Indicates that the model has a definition for a vertex source.
|
boolean |
isCoordinateSystemGeographic()
Indicates whether the coordinates used by this instance are
geographic in nature.
|
boolean |
isLoaded()
Indicates whether the content of the model was already loaded.
|
void |
load(IMonitorWithCancellation monitor)
Load the metadata and data associated with the file for this model
and compile a list of vertices for access by the application.
|
void |
xy2geo(double x,
double y,
double[] geo)
If defined, converts a pair of scaled Cartesian coordinates
to a latitude and longitude.
|
int getVertexCount()
double getMaxX()
double getMinX()
double getMaxY()
double getMinY()
double getMaxZ()
double getMinZ()
double getNominalPointSpacing()
double getArea()
void load(IMonitorWithCancellation monitor) throws IOException
monitor - an optional monitor for tracking progress (null
if not used)IOException - If a non-recoverable IO condition is encountered
when reading the source file.File getFile()
String getName()
String getDescription()
List<Vertex> getVertexList()
String getFormattedCoordinates(double x, double y)
x - the x coordinate in the model coordinate systemy - the y coordinate in the model coordinate systemString getFormattedX(double x)
x - the x coordinate in the model coordinate system.String getFormattedY(double y)
y - the y coordinate in the model coordinate system.boolean isLoaded()
IIncrementalTin getReferenceTin()
double getReferenceReductionFactor()
long getTimeToLoadInMillis()
long getTimeToSortInMillis()
List<Vertex> getPerimeterVertices()
LinearUnits getLinearUnits()
boolean isCoordinateSystemGeographic()
Vertex getVertexForIndex(int index)
index - an arbitrary integer.void xy2geo(double x,
double y,
double[] geo)
x - a valid scaled Cartesian coordinatey - a valid scaled Cartesian coordinategeo - an array of dimension two to store the results
(where geo[0]=latitude, geo[1]=longitude)void geo2xy(double latitude,
double longitude,
double[] xy)
latitude - the latitudelongitude - the longitudexy - a array of dimension two to store the results.boolean hasConstraints()
void addConstraints(File constraintsFile, List<IConstraint> constraints)
constraintsFile - if the constraints were derived from a file, a
valid reference; otherwise, a nullconstraints - a valid list of constraints.List<IConstraint> getConstraints()
boolean hasVertexSource()
boolean areVerticesLoaded()
boolean hasConstraintsSource()
boolean areConstraintsLoaded()
ICoordinateTransform getCoordinateTransform()
Copyright © 2019. All rights reserved.