public class QuantizedMeshTerrainTile extends Object
Modifier  Constructor and Description 

protected 
QuantizedMeshTerrainTile(CartographicExtent boundingExtent)
Initializes a new instance.

Modifier and Type  Method and Description 

CartographicExtent 
getBoundingExtent()
Gets the bounding extent of the mesh stored by this instance.

Cartesian 
getBoundingSphereCenter()
Gets the center coordinates of the tile's bounding sphere, in the fixed frame of the central body.

double 
getBoundingSphereRadius()
Gets the radius of the tile's bounding sphere, in the fixed frame of the central body.

Cartesian 
getCenter()
Gets the center coordinates of the tile in the fixed frame of the central body.

int[] 
getEastEdgeIndices16()
Gets the indices of vertices that are on the south edge of the tile.

long[] 
getEastEdgeIndices32()
Gets the indices of vertices that are on the east edge of the tile.

Cartesian 
getHorizonOcclusionPoint()
Gets the coordinates of the horizon occlusion point, expressed in the fixed frame of the central body.

int[] 
getHValues()
Gets the heights of the vertices.

int[] 
getIndices16()
Gets the index data, with three indices per triangle.

long[] 
getIndices32()
Gets the index data, with three indices per triangle.

short 
getMaxCoordinatePosition()
Gets the maximum coordinate value, equal to 32767.

float 
getMaximumHeight()
Gets the maximum height in the area covered by this tile.

float 
getMinimumHeight()
Gets the minimum height in the area covered by this tile.

int[] 
getNorthEdgeIndices16()
Gets the indices of vertices that are on the north edge of the tile.

long[] 
getNorthEdgeIndices32()
Gets the indices of vertices that are on the north edge of the tile.

long 
getNumberOfTriangles()
Gets the number of triangles.

long 
getNumberOfVertices()
Gets the number of vertices.

boolean 
getRequires32BitIndices()
Gets the bounding extent of the mesh stored by this instance.

long 
getSize()
Gets the size of the terrain tile data, in bytes.

int[] 
getSouthEdgeIndices16()
Gets the indices of vertices that are on the south edge of the tile.

long[] 
getSouthEdgeIndices32()
Gets the indices of vertices that are on the south edge of the tile.

int[] 
getUValues()
Gets the horizontal coordinates of the vertices.

int[] 
getVValues()
Gets the vertical coordinates of the vertices.

int[] 
getWestEdgeIndices16()
Gets the indices of vertices that are on the west edge of the tile.

long[] 
getWestEdgeIndices32()
Gets the indices of vertices that are on the west edge of the tile.

static QuantizedMeshTerrainTile 
readFromStream(CartographicExtent boundingExtent,
InputStream stream)
Reads an uncompressed quantizedmesh terrain data from the given stream and creates a tile.

protected void 
setBoundingSphereCenter(Cartesian value)
Sets the center coordinates of the tile's bounding sphere, in the fixed frame of the central body.

protected void 
setBoundingSphereRadius(double value)
Sets the radius of the tile's bounding sphere, in the fixed frame of the central body.

protected void 
setCenter(Cartesian value)
Sets the center coordinates of the tile in the fixed frame of the central body.

protected void 
setEastEdgeIndices16(int[] value)
Sets the indices of vertices that are on the south edge of the tile.

protected void 
setEastEdgeIndices32(long[] value)
Sets the indices of vertices that are on the east edge of the tile.

protected void 
setHorizonOcclusionPoint(Cartesian value)
Sets the coordinates of the horizon occlusion point, expressed in the fixed frame of the central body.

protected void 
setHValues(int[] value)
Sets the heights of the vertices.

protected void 
setIndices16(int[] value)
Sets the index data, with three indices per triangle.

protected void 
setIndices32(long[] value)
Sets the index data, with three indices per triangle.

protected void 
setMaximumHeight(float value)
Sets the maximum height in the area covered by this tile.

protected void 
setMinimumHeight(float value)
Sets the minimum height in the area covered by this tile.

protected void 
setNorthEdgeIndices16(int[] value)
Sets the indices of vertices that are on the north edge of the tile.

protected void 
setNorthEdgeIndices32(long[] value)
Sets the indices of vertices that are on the north edge of the tile.

protected void 
setNumberOfTriangles(long value)
Sets the number of triangles.

protected void 
setNumberOfVertices(long value)
Sets the number of vertices.

protected void 
setSouthEdgeIndices16(int[] value)
Sets the indices of vertices that are on the south edge of the tile.

protected void 
setSouthEdgeIndices32(long[] value)
Sets the indices of vertices that are on the south edge of the tile.

protected void 
setUValues(int[] value)
Sets the horizontal coordinates of the vertices.

protected void 
setVValues(int[] value)
Sets the vertical coordinates of the vertices.

protected void 
setWestEdgeIndices16(int[] value)
Sets the indices of vertices that are on the west edge of the tile.

protected void 
setWestEdgeIndices32(long[] value)
Sets the indices of vertices that are on the west edge of the tile.

protected QuantizedMeshTerrainTile(@Nonnull CartographicExtent boundingExtent)
boundingExtent
 The extent that this instance covers.ArgumentNullException
 Thrown if boundingExtent
is null
.@Nonnull public final CartographicExtent getBoundingExtent()
public final long getSize()
public final boolean getRequires32BitIndices()
@Nonnull public static QuantizedMeshTerrainTile readFromStream(@Nonnull CartographicExtent boundingExtent, @Nonnull InputStream stream)
boundingExtent
 The extent that this instance covers.stream
 A InputStream
containing uncompressed tile data.QuantizedMeshTerrainTile
parsed from the data.ArgumentNullException
 Thrown if boundingExtent
or stream
is null
.@Nonnull public final Cartesian getCenter()
protected final void setCenter(@Nonnull Cartesian value)
public final float getMinimumHeight()
protected final void setMinimumHeight(float value)
public final float getMaximumHeight()
protected final void setMaximumHeight(float value)
@Nonnull public final Cartesian getBoundingSphereCenter()
protected final void setBoundingSphereCenter(@Nonnull Cartesian value)
public final double getBoundingSphereRadius()
protected final void setBoundingSphereRadius(double value)
@Nonnull public final Cartesian getHorizonOcclusionPoint()
protected final void setHorizonOcclusionPoint(@Nonnull Cartesian value)
public final long getNumberOfVertices()
protected final void setNumberOfVertices(long value)
public final int[] getUValues()
protected final void setUValues(int[] value)
public final int[] getVValues()
protected final void setVValues(int[] value)
public final int[] getHValues()
protected final void setHValues(int[] value)
public final long getNumberOfTriangles()
protected final void setNumberOfTriangles(long value)
public final int[] getIndices16()
Indices32
(get
/ set
).
Otherwise each index is a 16bit unsigned integer, and stored here.
In either case, the indices immediately follow the triangle count,
three indices per triangle.protected final void setIndices16(int[] value)
Indices32
(get
/ set
).
Otherwise each index is a 16bit unsigned integer, and stored here.
In either case, the indices immediately follow the triangle count,
three indices per triangle.public final long[] getIndices32()
Indices16
(get
/ set
).
In either case, the indices immediately follow the triangle count,
three indices per triangle.protected final void setIndices32(long[] value)
Indices16
(get
/ set
).
In either case, the indices immediately follow the triangle count,
three indices per triangle.public final int[] getWestEdgeIndices16()
WestEdgeIndices32
(get
/ set
).
Otherwise each index is a 16bit unsigned integer, and stored here.protected final void setWestEdgeIndices16(int[] value)
WestEdgeIndices32
(get
/ set
).
Otherwise each index is a 16bit unsigned integer, and stored here.public final int[] getSouthEdgeIndices16()
SouthEdgeIndices32
(get
/ set
).
Otherwise each index is a 16bit unsigned integer, and stored here.protected final void setSouthEdgeIndices16(int[] value)
SouthEdgeIndices32
(get
/ set
).
Otherwise each index is a 16bit unsigned integer, and stored here.public final int[] getEastEdgeIndices16()
EastEdgeIndices32
(get
/ set
).
Otherwise each index is a 16bit unsigned integer, and stored here.protected final void setEastEdgeIndices16(int[] value)
EastEdgeIndices32
(get
/ set
).
Otherwise each index is a 16bit unsigned integer, and stored here.public final int[] getNorthEdgeIndices16()
NorthEdgeIndices32
(get
/ set
).
Otherwise each index is a 16bit unsigned integer, and stored here.protected final void setNorthEdgeIndices16(int[] value)
NorthEdgeIndices32
(get
/ set
).
Otherwise each index is a 16bit unsigned integer, and stored here.public final long[] getWestEdgeIndices32()
protected final void setWestEdgeIndices32(long[] value)
public final long[] getSouthEdgeIndices32()
SouthEdgeIndices16
(get
/ set
).protected final void setSouthEdgeIndices32(long[] value)
SouthEdgeIndices16
(get
/ set
).public final long[] getEastEdgeIndices32()
protected final void setEastEdgeIndices32(long[] value)
public final long[] getNorthEdgeIndices32()
NorthEdgeIndices16
(get
/ set
).protected final void setNorthEdgeIndices32(long[] value)
NorthEdgeIndices16
(get
/ set
).public final short getMaxCoordinatePosition()