com.metsci.glimpse.charts.vector.parser.objects
Class AbstractGeoShape
java.lang.Object
com.metsci.glimpse.charts.vector.parser.objects.AbstractGeoShape
- All Implemented Interfaces:
- GeoShape
- Direct Known Subclasses:
- DNCShape, ENCShape
public abstract class AbstractGeoShape
- extends java.lang.Object
- implements GeoShape
Stores all the vertex information for a ENC/DNC object
- Author:
- Cunningham
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractGeoShape
public AbstractGeoShape()
getShapeType
public GeoShapeType getShapeType()
- Specified by:
getShapeType
in interface GeoShape
getRawVertexArray
public double[] getRawVertexArray()
- Specified by:
getRawVertexArray
in interface GeoShape
getVertex
public double getVertex(int dim,
int index)
- Specified by:
getVertex
in interface GeoShape
- Parameters:
dim
- 0 for lon, 1 for lat, 2 for depth(?) if applicableindex
-
- Returns:
getVertexes
public double[] getVertexes(int index,
double[] buffer)
- Specified by:
getVertexes
in interface GeoShape
getNumCoordinates
public int getNumCoordinates()
- Specified by:
getNumCoordinates
in interface GeoShape
getPointSize
public int getPointSize()
- Number of dimensions in vertex array. Typically 2 for lon lat.
- Specified by:
getPointSize
in interface GeoShape
- Returns:
setShapeType
public void setShapeType(GeoShapeType t)
- Specified by:
setShapeType
in interface GeoShape
setVertexPoints
public void setVertexPoints(double[] vals)
- Specified by:
setVertexPoints
in interface GeoShape
setPointSize
public void setPointSize(int s)
- Specified by:
setPointSize
in interface GeoShape
passSanityCheck
public boolean passSanityCheck()
write
public static void write(java.io.DataOutputStream fout,
AbstractGeoShape shape)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(java.io.DataOutputStream fout)
throws java.io.IOException
- Specified by:
write
in interface GeoShape
- Throws:
java.io.IOException
write0
public void write0(java.io.DataOutputStream fout)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2012 Metron, Inc.. All Rights Reserved.