Package gaiasky.scene.record
Class PointParticleRecord
java.lang.Object
gaiasky.scene.record.PointParticleRecord
- All Implemented Interfaces:
IParticleRecord
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
absMag()
void
void
float
appMag()
double
b()
Galactic latitude in degrees.double
beta()
Ecliptic latitude in degrees.float
col()
double
dec()
Declination in degrees.double
distance()
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.double
getExtraNumber
(UCD ucd) Gets the extra data filed with the given UCD, as a double number.double
getExtraNumber
(String name) Gets the extra data filed with the given name, as a double number.getType()
Returns the particle record type.boolean
hasColor()
boolean
hasExtra()
boolean
boolean
boolean
boolean
boolean
boolean
hasSize()
int
hip()
long
id()
double
l()
Galactic longitude in degrees.double
lambda()
Ecliptic longitude in degrees.float
mualpha()
float
mudelta()
String[]
names()
octant()
double
parallax()
Parallax in mas.double
pmx()
double
pmy()
double
pmz()
double
ra()
Right ascension in degrees.double
radius()
float
radvel()
double[]
float[]
double[]
rgb()
void
setCol
(float col) void
setExtraAttributes
(com.badlogic.gdx.utils.ObjectMap<UCD, Object> extra) void
setHip
(int hip) void
setId
(long id) void
setMag
(float appmag, float absmag) void
void
void
setOctant
(OctreeNode octant) void
setPos
(double x, double y, double z) void
setProperMotion
(float mualpha, float mudelta, float radvel) void
setSize
(float size) void
setVelocityVector
(double vx, double vy, double vz) float
size()
double
x()
double
y()
double
z()
-
Constructor Details
-
PointParticleRecord
public PointParticleRecord(double[] data)
-
-
Method Details
-
rawDoubleData
public double[] rawDoubleData()- Specified by:
rawDoubleData
in interfaceIParticleRecord
-
rawFloatData
public float[] rawFloatData()- Specified by:
rawFloatData
in interfaceIParticleRecord
-
x
public double x()- Specified by:
x
in interfaceIParticleRecord
-
y
public double y()- Specified by:
y
in interfaceIParticleRecord
-
z
public double z()- Specified by:
z
in interfaceIParticleRecord
-
setPos
public void setPos(double x, double y, double z) - Specified by:
setPos
in interfaceIParticleRecord
-
names
- Specified by:
names
in interfaceIParticleRecord
-
namesConcat
- Specified by:
namesConcat
in interfaceIParticleRecord
-
hasName
- Specified by:
hasName
in interfaceIParticleRecord
-
hasName
- Specified by:
hasName
in interfaceIParticleRecord
-
setNames
- Specified by:
setNames
in interfaceIParticleRecord
-
setName
- Specified by:
setName
in interfaceIParticleRecord
-
addName
- Specified by:
addName
in interfaceIParticleRecord
-
addNames
- Specified by:
addNames
in interfaceIParticleRecord
-
pmx
public double pmx()- Specified by:
pmx
in interfaceIParticleRecord
-
pmy
public double pmy()- Specified by:
pmy
in interfaceIParticleRecord
-
pmz
public double pmz()- Specified by:
pmz
in interfaceIParticleRecord
-
setVelocityVector
public void setVelocityVector(double vx, double vy, double vz) - Specified by:
setVelocityVector
in interfaceIParticleRecord
-
appMag
public float appMag()- Specified by:
appMag
in interfaceIParticleRecord
-
absMag
public float absMag()- Specified by:
absMag
in interfaceIParticleRecord
-
setMag
public void setMag(float appmag, float absmag) - Specified by:
setMag
in interfaceIParticleRecord
-
hasColor
public boolean hasColor()- Specified by:
hasColor
in interfaceIParticleRecord
-
col
public float col()- Specified by:
col
in interfaceIParticleRecord
-
setCol
public void setCol(float col) - Specified by:
setCol
in interfaceIParticleRecord
-
size
public float size()- Specified by:
size
in interfaceIParticleRecord
-
setSize
public void setSize(float size) - Specified by:
setSize
in interfaceIParticleRecord
-
radius
public double radius()- Specified by:
radius
in interfaceIParticleRecord
-
setId
public void setId(long id) - Specified by:
setId
in interfaceIParticleRecord
-
id
public long id()- Specified by:
id
in interfaceIParticleRecord
-
setHip
public void setHip(int hip) - Specified by:
setHip
in interfaceIParticleRecord
-
hip
public int hip()- Specified by:
hip
in interfaceIParticleRecord
-
mualpha
public float mualpha()- Specified by:
mualpha
in interfaceIParticleRecord
-
mudelta
public float mudelta()- Specified by:
mudelta
in interfaceIParticleRecord
-
radvel
public float radvel()- Specified by:
radvel
in interfaceIParticleRecord
-
setProperMotion
public void setProperMotion(float mualpha, float mudelta, float radvel) - Specified by:
setProperMotion
in interfaceIParticleRecord
-
rgb
public double[] rgb()- Specified by:
rgb
in interfaceIParticleRecord
-
hasSize
public boolean hasSize()- Specified by:
hasSize
in interfaceIParticleRecord
-
octant
- Specified by:
octant
in interfaceIParticleRecord
-
setOctant
- Specified by:
setOctant
in interfaceIParticleRecord
-
pos
- Specified by:
pos
in interfaceIParticleRecord
-
hasProperMotion
public boolean hasProperMotion()- Specified by:
hasProperMotion
in interfaceIParticleRecord
-
distance
public double distance()Description copied from interface:IParticleRecord
Distance in internal units. Beware, does the computation on the fly.- Specified by:
distance
in interfaceIParticleRecord
- Returns:
- The distance, in internal units
-
parallax
public double parallax()Description copied from interface:IParticleRecord
Parallax in mas.- Specified by:
parallax
in interfaceIParticleRecord
- Returns:
- The parallax in mas.
-
ra
public double ra()Description copied from interface:IParticleRecord
Right ascension in degrees. Beware, does the conversion on the fly.- Specified by:
ra
in interfaceIParticleRecord
- Returns:
- The right ascension, in degrees
-
dec
public double dec()Description copied from interface:IParticleRecord
Declination in degrees. Beware, does the conversion on the fly.- Specified by:
dec
in interfaceIParticleRecord
- Returns:
- The declination, in degrees
-
lambda
public double lambda()Description copied from interface:IParticleRecord
Ecliptic longitude in degrees.- Specified by:
lambda
in interfaceIParticleRecord
- Returns:
- The ecliptic longitude, in degrees
-
beta
public double beta()Description copied from interface:IParticleRecord
Ecliptic latitude in degrees.- Specified by:
beta
in interfaceIParticleRecord
- Returns:
- The ecliptic latitude, in degrees
-
l
public double l()Description copied from interface:IParticleRecord
Galactic longitude in degrees.- Specified by:
l
in interfaceIParticleRecord
- Returns:
- The galactic longitude, in degrees
-
b
public double b()Description copied from interface:IParticleRecord
Galactic latitude in degrees.- Specified by:
b
in interfaceIParticleRecord
- Returns:
- The galactic latitude, in degrees
-
setExtraAttributes
- Specified by:
setExtraAttributes
in interfaceIParticleRecord
-
hasExtra
public boolean hasExtra()- Specified by:
hasExtra
in interfaceIParticleRecord
-
extraKeys
- Specified by:
extraKeys
in interfaceIParticleRecord
-
getType
Description copied from interface:IParticleRecord
Returns the particle record type.- Specified by:
getType
in interfaceIParticleRecord
- Returns:
- The type.
-
hasExtra
- Specified by:
hasExtra
in interfaceIParticleRecord
-
hasExtra
- Specified by:
hasExtra
in interfaceIParticleRecord
-
getExtra
Description copied from interface:IParticleRecord
Gets the extra attributes map.- Specified by:
getExtra
in interfaceIParticleRecord
- Returns:
- The map.
-
getExtra
Description copied from interface:IParticleRecord
Gets the extra data filed with the given name.- Specified by:
getExtra
in 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:IParticleRecord
Gets the extra data filed with the given UCD.- Specified by:
getExtra
in 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:IParticleRecord
Gets the extra data filed with the given name, as a double number.- Specified by:
getExtraNumber
in 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:IParticleRecord
Gets the extra data filed with the given UCD, as a double number.- Specified by:
getExtraNumber
in 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.
-