Package gov.nasa.worldwind.layers
Class StarsConvertor
- java.lang.Object
-
- gov.nasa.worldwind.layers.StarsConvertor
-
public class StarsConvertor extends java.lang.ObjectConverts a star background based on a subset of ESA Hipparcos catalog to ByteBuffer.
-
-
Constructor Summary
Constructors Constructor Description StarsConvertor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.nio.ByteBufferconvertTsvToByteBuffer(java.lang.String starsFileName)Converts a Stars tsv file to a ByteBuffer with radius DEFAULT_RADIUSstatic java.nio.ByteBufferconvertTsvToByteBuffer(java.lang.String starsFileName, float radius)Converts a Stars tsv file to a ByteBufferstatic voidconvertTsvToDat(java.lang.String tsvFileName)Convert star tsv text file to binary dat filestatic voidconvertTsvToDat(java.lang.String tsvFileName, float radius)Convert star tsv text file to binary dat filestatic voidconvertTsvToDat(java.lang.String tsvFileName, java.lang.String datFileName)Convert star tsv text file to binary dat filestatic voidconvertTsvToDat(java.lang.String tsvFileName, java.lang.String datFileName, float radius)Convert star tsv text file to binary dat filestatic voidmain(java.lang.String[] args)
-
-
-
Method Detail
-
convertTsvToDat
public static void convertTsvToDat(java.lang.String tsvFileName)
Convert star tsv text file to binary dat file- Parameters:
tsvFileName- name of tsv text star file
-
convertTsvToDat
public static void convertTsvToDat(java.lang.String tsvFileName, float radius)Convert star tsv text file to binary dat file- Parameters:
tsvFileName- name of tsv text star fileradius- radius of star sphere
-
convertTsvToDat
public static void convertTsvToDat(java.lang.String tsvFileName, java.lang.String datFileName)Convert star tsv text file to binary dat file- Parameters:
tsvFileName- name of tsv text star filedatFileName- name of dat binary star file
-
convertTsvToDat
public static void convertTsvToDat(java.lang.String tsvFileName, java.lang.String datFileName, float radius)Convert star tsv text file to binary dat file- Parameters:
tsvFileName- name of tsv text star filedatFileName- name of dat binary star fileradius- radius of star sphere
-
convertTsvToByteBuffer
public static java.nio.ByteBuffer convertTsvToByteBuffer(java.lang.String starsFileName)
Converts a Stars tsv file to a ByteBuffer with radius DEFAULT_RADIUS- Parameters:
starsFileName- filename of tsv file- Returns:
- ByteBuffer with interleaved color and vertex positions as floats in little-endian order
-
convertTsvToByteBuffer
public static java.nio.ByteBuffer convertTsvToByteBuffer(java.lang.String starsFileName, float radius)Converts a Stars tsv file to a ByteBuffer- Parameters:
starsFileName- filename of tsv fileradius- radius of the sphere on which to paint stars- Returns:
- ByteBuffer with interleaved color and vertex positions as floats in little-endian order
-
main
public static void main(java.lang.String[] args)
-
-