Package gaiasky.scene.api
Interface IParticleRecord
- All Known Implementing Classes:
ParticleRecord,PointParticleRecord,VariableRecord
public interface IParticleRecord
-
Method Summary
Modifier and TypeMethodDescriptionfloatabsMag()voidvoidfloatappMag()doubleb()Galactic latitude in degrees.doublebeta()Ecliptic latitude in degrees.floatcol()doubledec()Declination in degrees.doubledistance()Distance in internal units.com.badlogic.gdx.utils.ObjectMap.Keys<UCD> getExtra()Gets the extra attributes map.Gets the extra data filed with the given UCD.Gets the extra data filed with the given name.doublegetExtraNumber(UCD ucd) Gets the extra data filed with the given UCD, as a double number.doublegetExtraNumber(String name) Gets the extra data filed with the given name, as a double number.getType()Returns the particle record type.booleanhasColor()booleanhasExtra()booleanbooleanbooleanbooleanbooleanbooleanhasSize()inthip()longid()doublel()Galactic longitude in degrees.doublelambda()Ecliptic longitude in degrees.floatmualpha()floatmudelta()String[]names()octant()doubleparallax()Parallax in mas.doublepmx()doublepmy()doublepmz()doublera()Right ascension in degrees.doubleradius()floatradvel()double[]float[]double[]rgb()voidsetCol(float col) voidsetExtraAttributes(com.badlogic.gdx.utils.ObjectMap<UCD, Object> extra) voidsetHip(int hip) voidsetId(long id) voidsetMag(float appmag, float absmag) voidvoidvoidsetOctant(OctreeNode octant) voidsetPos(double x, double y, double z) voidsetProperMotion(float mualpha, float mudelta, float radvel) voidsetSize(float size) voidsetTeff(float teff) voidsetVelocityVector(double vx, double vy, double vz) floatsize()floatteff()Returns the effective temperature, in K.doublex()doubley()doublez()
-
Method Details
-
rawDoubleData
double[] rawDoubleData() -
rawFloatData
float[] rawFloatData() -
x
double x() -
y
double y() -
z
double z() -
setPos
void setPos(double x, double y, double z) -
pos
-
hasProperMotion
boolean hasProperMotion() -
pmx
double pmx() -
pmy
double pmy() -
pmz
double pmz() -
setVelocityVector
void setVelocityVector(double vx, double vy, double vz) -
names
String[] names() -
namesConcat
String namesConcat() -
hasName
-
hasName
-
setNames
-
setName
-
addName
-
addNames
-
appMag
float appMag() -
absMag
float absMag() -
setMag
void setMag(float appmag, float absmag) -
hasColor
boolean hasColor() -
col
float col() -
setCol
void setCol(float col) -
rgb
double[] rgb() -
hasSize
boolean hasSize() -
size
float size() -
setSize
void setSize(float size) -
radius
double radius() -
setId
void setId(long id) -
id
long id() -
setHip
void setHip(int hip) -
hip
int hip() -
mualpha
float mualpha() -
mudelta
float mudelta() -
radvel
float radvel() -
setProperMotion
void setProperMotion(float mualpha, float mudelta, float radvel) -
octant
OctreeNode octant() -
setOctant
-
distance
double distance()Distance in internal units. Beware, does the computation on the fly.- Returns:
- The distance, in internal units.
-
parallax
double parallax()Parallax in mas.- Returns:
- The parallax in mas.
-
ra
double ra()Right ascension in degrees. Beware, does the conversion on the fly.- Returns:
- The right ascension, in degrees.
-
dec
double dec()Declination in degrees. Beware, does the conversion on the fly.- Returns:
- The declination, in degrees.
-
lambda
double lambda()Ecliptic longitude in degrees.- Returns:
- The ecliptic longitude, in degrees.
-
beta
double beta()Ecliptic latitude in degrees.- Returns:
- The ecliptic latitude, in degrees.
-
l
double l()Galactic longitude in degrees.- Returns:
- The galactic longitude, in degrees.
-
b
double b()Galactic latitude in degrees.- Returns:
- The galactic latitude, in degrees.
-
setTeff
void setTeff(float teff) -
teff
float teff()Returns the effective temperature, in K.- Returns:
- The effective temperature in K.
-
setExtraAttributes
-
hasExtra
boolean hasExtra() -
hasExtra
-
hasExtra
-
getExtra
Gets the extra attributes map.- Returns:
- The map.
-
getExtra
Gets the extra data filed with the given name.- Parameters:
name- The name of the data filed to get.- Returns:
- The data field, or null if it does not exist.
-
getExtra
Gets the extra data filed with the given UCD.- Parameters:
ucd- The UCD of the data filed to get.- Returns:
- The data field, or null if it does not exist.
-
getExtraNumber
Gets the extra data filed with the given name, as a double number.- Parameters:
name- The name of the data filed to get.- Returns:
- The data field as a double, or NaN if it does not exist or is not a number.
-
getExtraNumber
Gets the extra data filed with the given UCD, as a double number.- Parameters:
ucd- The UCD of the data filed to get.- Returns:
- The data field as a double, or NaN if it does not exist or is not a number.
-
extraKeys
com.badlogic.gdx.utils.ObjectMap.Keys<UCD> extraKeys() -
getType
ParticleRecord.ParticleRecordType getType()Returns the particle record type.- Returns:
- The type.
-