NASA World Wind

gov.nasa.worldwind.layers
Class StarsConvertor

java.lang.Object
  extended by gov.nasa.worldwind.layers.StarsConvertor

public class StarsConvertor
extends Object

Converts a star background based on a subset of ESA Hipparcos catalog to ByteBuffer.


Constructor Summary
StarsConvertor()
           
 
Method Summary
static ByteBuffer convertTsvToByteBuffer(String starsFileName)
          Converts a Stars tsv file to a ByteBuffer with radius DEFAULT_RADIUS
static ByteBuffer convertTsvToByteBuffer(String starsFileName, float radius)
          Converts a Stars tsv file to a ByteBuffer
static void convertTsvToDat(String tsvFileName)
          Convert star tsv text file to binary dat file
static void convertTsvToDat(String tsvFileName, float radius)
          Convert star tsv text file to binary dat file
static void convertTsvToDat(String tsvFileName, String datFileName)
          Convert star tsv text file to binary dat file
static void convertTsvToDat(String tsvFileName, String datFileName, float radius)
          Convert star tsv text file to binary dat file
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StarsConvertor

public StarsConvertor()
Method Detail

convertTsvToByteBuffer

public static ByteBuffer convertTsvToByteBuffer(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 ByteBuffer convertTsvToByteBuffer(String starsFileName,
                                                float radius)
Converts a Stars tsv file to a ByteBuffer

Parameters:
starsFileName - filename of tsv file
radius - radius of the sphere on which to paint stars
Returns:
ByteBuffer with interleaved color and vertex positions as floats in little-endian order

convertTsvToDat

public static void convertTsvToDat(String tsvFileName)
Convert star tsv text file to binary dat file

Parameters:
tsvFileName - name of tsv text star file

convertTsvToDat

public static void convertTsvToDat(String tsvFileName,
                                   float radius)
Convert star tsv text file to binary dat file

Parameters:
tsvFileName - name of tsv text star file
radius - radius of star sphere

convertTsvToDat

public static void convertTsvToDat(String tsvFileName,
                                   String datFileName)
Convert star tsv text file to binary dat file

Parameters:
tsvFileName - name of tsv text star file
datFileName - name of dat binary star file

convertTsvToDat

public static void convertTsvToDat(String tsvFileName,
                                   String datFileName,
                                   float radius)
Convert star tsv text file to binary dat file

Parameters:
tsvFileName - name of tsv text star file
datFileName - name of dat binary star file
radius - radius of star sphere

main

public static void main(String[] args)

NASA World Wind