Package gaiasky.scene.record
Class PointParticleRecord
java.lang.Object
gaiasky.scene.record.PointParticleRecord
- All Implemented Interfaces:
IParticleRecord
-
Constructor Summary
Constructors -
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()
-
Constructor Details
-
PointParticleRecord
public PointParticleRecord(double[] data)
-
-
Method Details
-
rawDoubleData
public double[] rawDoubleData()- Specified by:
rawDoubleDatain interfaceIParticleRecord
-
rawFloatData
public float[] rawFloatData()- Specified by:
rawFloatDatain interfaceIParticleRecord
-
x
public double x()- Specified by:
xin interfaceIParticleRecord
-
y
public double y()- Specified by:
yin interfaceIParticleRecord
-
z
public double z()- Specified by:
zin interfaceIParticleRecord
-
setPos
public void setPos(double x, double y, double z) - Specified by:
setPosin interfaceIParticleRecord
-
names
- Specified by:
namesin interfaceIParticleRecord
-
namesConcat
- Specified by:
namesConcatin interfaceIParticleRecord
-
hasName
- Specified by:
hasNamein interfaceIParticleRecord
-
hasName
- Specified by:
hasNamein interfaceIParticleRecord
-
setNames
- Specified by:
setNamesin interfaceIParticleRecord
-
setName
- Specified by:
setNamein interfaceIParticleRecord
-
addName
- Specified by:
addNamein interfaceIParticleRecord
-
addNames
- Specified by:
addNamesin interfaceIParticleRecord
-
pmx
public double pmx()- Specified by:
pmxin interfaceIParticleRecord
-
pmy
public double pmy()- Specified by:
pmyin interfaceIParticleRecord
-
pmz
public double pmz()- Specified by:
pmzin interfaceIParticleRecord
-
setVelocityVector
public void setVelocityVector(double vx, double vy, double vz) - Specified by:
setVelocityVectorin interfaceIParticleRecord
-
appMag
public float appMag()- Specified by:
appMagin interfaceIParticleRecord
-
absMag
public float absMag()- Specified by:
absMagin interfaceIParticleRecord
-
setMag
public void setMag(float appmag, float absmag) - Specified by:
setMagin interfaceIParticleRecord
-
hasColor
public boolean hasColor()- Specified by:
hasColorin interfaceIParticleRecord
-
col
public float col()- Specified by:
colin interfaceIParticleRecord
-
setCol
public void setCol(float col) - Specified by:
setColin interfaceIParticleRecord
-
size
public float size()- Specified by:
sizein interfaceIParticleRecord
-
setSize
public void setSize(float size) - Specified by:
setSizein interfaceIParticleRecord
-
radius
public double radius()- Specified by:
radiusin interfaceIParticleRecord
-
setId
public void setId(long id) - Specified by:
setIdin interfaceIParticleRecord
-
id
public long id()- Specified by:
idin interfaceIParticleRecord
-
setHip
public void setHip(int hip) - Specified by:
setHipin interfaceIParticleRecord
-
hip
public int hip()- Specified by:
hipin interfaceIParticleRecord
-
mualpha
public float mualpha()- Specified by:
mualphain interfaceIParticleRecord
-
mudelta
public float mudelta()- Specified by:
mudeltain interfaceIParticleRecord
-
radvel
public float radvel()- Specified by:
radvelin interfaceIParticleRecord
-
setProperMotion
public void setProperMotion(float mualpha, float mudelta, float radvel) - Specified by:
setProperMotionin interfaceIParticleRecord
-
rgb
public double[] rgb()- Specified by:
rgbin interfaceIParticleRecord
-
hasSize
public boolean hasSize()- Specified by:
hasSizein interfaceIParticleRecord
-
octant
- Specified by:
octantin interfaceIParticleRecord
-
setOctant
- Specified by:
setOctantin interfaceIParticleRecord
-
pos
- Specified by:
posin interfaceIParticleRecord
-
hasProperMotion
public boolean hasProperMotion()- Specified by:
hasProperMotionin interfaceIParticleRecord
-
distance
public double distance()Description copied from interface:IParticleRecordDistance in internal units. Beware, does the computation on the fly.- Specified by:
distancein interfaceIParticleRecord- Returns:
- The distance, in internal units.
-
parallax
public double parallax()Description copied from interface:IParticleRecordParallax in mas.- Specified by:
parallaxin interfaceIParticleRecord- Returns:
- The parallax in mas.
-
ra
public double ra()Description copied from interface:IParticleRecordRight ascension in degrees. Beware, does the conversion on the fly.- Specified by:
rain interfaceIParticleRecord- Returns:
- The right ascension, in degrees.
-
dec
public double dec()Description copied from interface:IParticleRecordDeclination in degrees. Beware, does the conversion on the fly.- Specified by:
decin interfaceIParticleRecord- Returns:
- The declination, in degrees.
-
lambda
public double lambda()Description copied from interface:IParticleRecordEcliptic longitude in degrees.- Specified by:
lambdain interfaceIParticleRecord- Returns:
- The ecliptic longitude, in degrees.
-
beta
public double beta()Description copied from interface:IParticleRecordEcliptic latitude in degrees.- Specified by:
betain interfaceIParticleRecord- Returns:
- The ecliptic latitude, in degrees.
-
l
public double l()Description copied from interface:IParticleRecordGalactic longitude in degrees.- Specified by:
lin interfaceIParticleRecord- Returns:
- The galactic longitude, in degrees.
-
b
public double b()Description copied from interface:IParticleRecordGalactic latitude in degrees.- Specified by:
bin interfaceIParticleRecord- Returns:
- The galactic latitude, in degrees.
-
setTeff
public void setTeff(float teff) - Specified by:
setTeffin interfaceIParticleRecord
-
teff
public float teff()Description copied from interface:IParticleRecordReturns the effective temperature, in K.- Specified by:
teffin interfaceIParticleRecord- Returns:
- The effective temperature in K.
-
setExtraAttributes
- Specified by:
setExtraAttributesin interfaceIParticleRecord
-
hasExtra
public boolean hasExtra()- Specified by:
hasExtrain interfaceIParticleRecord
-
extraKeys
- Specified by:
extraKeysin interfaceIParticleRecord
-
getType
Description copied from interface:IParticleRecordReturns the particle record type.- Specified by:
getTypein interfaceIParticleRecord- Returns:
- The type.
-
hasExtra
- Specified by:
hasExtrain interfaceIParticleRecord
-
hasExtra
- Specified by:
hasExtrain interfaceIParticleRecord
-
getExtra
Description copied from interface:IParticleRecordGets the extra attributes map.- Specified by:
getExtrain interfaceIParticleRecord- Returns:
- The map.
-
getExtra
Description copied from interface:IParticleRecordGets the extra data filed with the given name.- Specified by:
getExtrain interfaceIParticleRecord- Parameters:
name- The name of the data filed to get.- Returns:
- The data field, or null if it does not exist.
-
getExtra
Description copied from interface:IParticleRecordGets the extra data filed with the given UCD.- Specified by:
getExtrain interfaceIParticleRecord- Parameters:
ucd- The UCD of the data filed to get.- Returns:
- The data field, or null if it does not exist.
-
getExtraNumber
Description copied from interface:IParticleRecordGets the extra data filed with the given name, as a double number.- Specified by:
getExtraNumberin interfaceIParticleRecord- 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
Description copied from interface:IParticleRecordGets the extra data filed with the given UCD, as a double number.- Specified by:
getExtraNumberin interfaceIParticleRecord- 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.
-