com.metsci.glimpse.charts.vector.painter
Class EncPainterUtils
java.lang.Object
com.metsci.glimpse.charts.vector.painter.EncPainterUtils
public class EncPainterUtils
- extends java.lang.Object
- Author:
- cunningham
Method Summary |
static float[] |
convertColorSpecToFloatArray(ColorSpec color)
|
static float[][] |
convertEncVertexesToLonLatFloatVertexes(double[] encVertexes,
boolean connectLastToFirst)
|
static java.util.List<Point> |
convertEncVertexesToPoints(GeoProjection projection,
ENCShape shape,
int trackId)
|
static Polygon |
convertEncVertexesToPolgon(GeoProjection projection,
ENCObject object)
Given an enc object, will return a polygon containing the vertices in the enc object. |
static double[] |
convertEncVertexesToSingleXYArray(GeoProjection projection,
ENCShape shape)
|
static float[][] |
convertEncVertexesToXYVertexes(GeoProjection projection,
ENCShape shape)
|
static ColorSpec |
convertFloatArrayToColorSpec(float[] rgba)
|
static ColorSpec |
convertFloatsToColorSpec(float r,
float g,
float b,
float a)
|
static java.util.List<Point> |
convertGeoVertexesToPoints(GeoProjection projection,
GeoShape shape,
int trackId)
|
static Polygon |
convertGeoVertexesToPolgon(GeoProjection projection,
GeoObject object)
|
static double[] |
convertGeoVertexesToSingleXYArray(GeoProjection projection,
GeoShape shape)
|
static FeatureSpec |
createEnc(java.lang.String[] featureTypes,
ShapeSpec polyShape,
ShapeSpec... shapes)
|
static FeatureSpec |
createEnc(java.lang.String objectType,
ShapeSpec polyShape,
ShapeSpec... shapes)
|
static ShapeSpec |
createShape(ShapeTypeSpec shapeType,
PolygonPainterSpec polySpec)
|
static ShapeSpec |
createShape(ShapeTypeSpec shapeType,
TrackPainterSpec trackSpec)
|
static boolean |
validateLatitude(double latitude)
|
static boolean |
validateLongitude(double longitude)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
convertEncVertexesToLonLatFloatVertexes
public static float[][] convertEncVertexesToLonLatFloatVertexes(double[] encVertexes,
boolean connectLastToFirst)
validateLongitude
public static boolean validateLongitude(double longitude)
validateLatitude
public static boolean validateLatitude(double latitude)
convertEncVertexesToXYVertexes
public static float[][] convertEncVertexesToXYVertexes(GeoProjection projection,
ENCShape shape)
convertEncVertexesToSingleXYArray
public static double[] convertEncVertexesToSingleXYArray(GeoProjection projection,
ENCShape shape)
convertGeoVertexesToSingleXYArray
public static double[] convertGeoVertexesToSingleXYArray(GeoProjection projection,
GeoShape shape)
convertEncVertexesToPolgon
public static Polygon convertEncVertexesToPolgon(GeoProjection projection,
ENCObject object)
- Given an enc object, will return a polygon containing the vertices in the enc object.
Method will:
- project each vertex using the given projection parameter
- will construct the polygon so that enc object shape0 is the outer shape, and shapes
1-N are the inner shapes that are to be subtracted out. So the return shape consists
of shape0 - shape1 .. - shapeN
convertGeoVertexesToPolgon
public static Polygon convertGeoVertexesToPolgon(GeoProjection projection,
GeoObject object)
convertEncVertexesToPoints
public static java.util.List<Point> convertEncVertexesToPoints(GeoProjection projection,
ENCShape shape,
int trackId)
convertGeoVertexesToPoints
public static java.util.List<Point> convertGeoVertexesToPoints(GeoProjection projection,
GeoShape shape,
int trackId)
convertColorSpecToFloatArray
public static float[] convertColorSpecToFloatArray(ColorSpec color)
convertFloatsToColorSpec
public static ColorSpec convertFloatsToColorSpec(float r,
float g,
float b,
float a)
convertFloatArrayToColorSpec
public static ColorSpec convertFloatArrayToColorSpec(float[] rgba)
createEnc
public static FeatureSpec createEnc(java.lang.String objectType,
ShapeSpec polyShape,
ShapeSpec... shapes)
createEnc
public static FeatureSpec createEnc(java.lang.String[] featureTypes,
ShapeSpec polyShape,
ShapeSpec... shapes)
createShape
public static ShapeSpec createShape(ShapeTypeSpec shapeType,
TrackPainterSpec trackSpec)
createShape
public static ShapeSpec createShape(ShapeTypeSpec shapeType,
PolygonPainterSpec polySpec)
Copyright © 2012 Metron, Inc.. All Rights Reserved.