Package gaiasky.scene.record
Class ParticleRecord
java.lang.Object
gaiasky.scene.record.ParticleRecord
- All Implemented Interfaces:
IParticleRecord
- Direct Known Subclasses:
VariableRecord
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enumeration to identify the type of record. -
Field Summary
Modifier and TypeFieldDescriptionprotected static TLV3D
protected static TLV3D
double[]
float[]
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
long
String[]
-
Constructor Summary
ConstructorDescriptionParticleRecord
(ParticleRecord.ParticleRecordType type, double[] dataD) ParticleRecord
(ParticleRecord.ParticleRecordType type, double[] dataD, float[] dataF) ParticleRecord
(ParticleRecord.ParticleRecordType type, double[] dataD, float[] dataF, Long id) ParticleRecord
(ParticleRecord.ParticleRecordType type, double[] dataD, float[] dataF, Long id, String name) ParticleRecord
(ParticleRecord.ParticleRecordType type, double[] dataD, float[] dataF, Long id, String[] names) ParticleRecord
(ParticleRecord.ParticleRecordType type, double[] dataD, float[] dataF, Long id, String[] names, com.badlogic.gdx.utils.ObjectMap<UCD, Object> extra) ParticleRecord
(ParticleRecord.ParticleRecordType type, double[] dataD, float[] dataF, Long id, String name, com.badlogic.gdx.utils.ObjectMap<UCD, Object> extra) ParticleRecord
(ParticleRecord.ParticleRecordType type, double[] dataD, float[] dataF, String[] names) -
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
setTeff
(float teff) void
setVelocityVector
(double vx, double vy, double vz) float
size()
float
teff()
Returns the effective temperature, in K.double
x()
double
y()
double
z()
-
Field Details
-
I_X
public static final int I_X- See Also:
-
I_Y
public static final int I_Y- See Also:
-
I_Z
public static final int I_Z- See Also:
-
I_FPMX
public static final int I_FPMX- See Also:
-
I_FPMY
public static final int I_FPMY- See Also:
-
I_FPMZ
public static final int I_FPMZ- See Also:
-
I_FMUALPHA
public static final int I_FMUALPHA- See Also:
-
I_FMUDELTA
public static final int I_FMUDELTA- See Also:
-
I_FRADVEL
public static final int I_FRADVEL- See Also:
-
I_FAPPMAG
public static final int I_FAPPMAG- See Also:
-
I_FABSMAG
public static final int I_FABSMAG- See Also:
-
I_FCOL
public static final int I_FCOL- See Also:
-
I_FSIZE
public static final int I_FSIZE- See Also:
-
I_FHIP
public static final int I_FHIP- See Also:
-
I_FTEFF
public static final int I_FTEFF- See Also:
-
aux3d1
-
aux3d2
-
type
-
id
public long id -
dataD
public double[] dataD -
dataF
public float[] dataF -
names
-
extra
-
octant
-
-
Constructor Details
-
ParticleRecord
-
ParticleRecord
-
ParticleRecord
-
ParticleRecord
public ParticleRecord(ParticleRecord.ParticleRecordType type, double[] dataD, float[] dataF, Long id) -
ParticleRecord
public ParticleRecord(ParticleRecord.ParticleRecordType type, double[] dataD, float[] dataF, String[] names) -
ParticleRecord
public ParticleRecord(ParticleRecord.ParticleRecordType type, double[] dataD, float[] dataF, Long id, String[] names) -
ParticleRecord
public ParticleRecord(ParticleRecord.ParticleRecordType type, double[] dataD, float[] dataF, Long id, String[] names, com.badlogic.gdx.utils.ObjectMap<UCD, Object> extra) -
ParticleRecord
public ParticleRecord(ParticleRecord.ParticleRecordType type, double[] dataD, float[] dataF, Long id, String name) -
ParticleRecord
public ParticleRecord(ParticleRecord.ParticleRecordType type, double[] dataD, float[] dataF, Long id, String name, com.badlogic.gdx.utils.ObjectMap<UCD, Object> extra)
-
-
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
-
hasProperMotion
public boolean hasProperMotion()- Specified by:
hasProperMotion
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
-
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
-
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
-
hasSize
public boolean hasSize()- Specified by:
hasSize
in interfaceIParticleRecord
-
size
public float size()- Specified by:
size
in interfaceIParticleRecord
-
setSize
public void setSize(float size) - Specified by:
setSize
in interfaceIParticleRecord
-
hip
public int hip()- Specified by:
hip
in interfaceIParticleRecord
-
id
public long id()- Specified by:
id
in interfaceIParticleRecord
-
setHip
public void setHip(int hip) - Specified by:
setHip
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
-
radius
public double radius()- Specified by:
radius
in interfaceIParticleRecord
-
setId
public void setId(long id) - Specified by:
setId
in interfaceIParticleRecord
-
rgb
public double[] rgb()- Specified by:
rgb
in interfaceIParticleRecord
-
octant
- Specified by:
octant
in interfaceIParticleRecord
-
setOctant
- Specified by:
setOctant
in interfaceIParticleRecord
-
pos
- Specified by:
pos
in interfaceIParticleRecord
-
distance
public double distance()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()Parallax in mas.- Specified by:
parallax
in interfaceIParticleRecord
- Returns:
- The parallax in mas.
-
ra
public double ra()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()Declination in degrees. Beware, does the conversion on the fly.- Specified by:
dec
in interfaceIParticleRecord
- Returns:
- The declination, in degrees
-
lambda
public double lambda()Ecliptic longitude in degrees.- Specified by:
lambda
in interfaceIParticleRecord
- Returns:
- The ecliptic longitude, in degrees
-
beta
public double beta()Ecliptic latitude in degrees.- Specified by:
beta
in interfaceIParticleRecord
- Returns:
- The ecliptic latitude, in degrees
-
l
public double l()Galactic longitude in degrees.- Specified by:
l
in interfaceIParticleRecord
- Returns:
- The galactic longitude, in degrees
-
b
public double b()Galactic latitude in degrees.- Specified by:
b
in interfaceIParticleRecord
- Returns:
- The galactic latitude, in degrees
-
setTeff
public void setTeff(float teff) - Specified by:
setTeff
in interfaceIParticleRecord
-
teff
public float teff()Description copied from interface:IParticleRecord
Returns the effective temperature, in K.- Specified by:
teff
in interfaceIParticleRecord
- Returns:
- The effective temperature in K.
-
setExtraAttributes
- Specified by:
setExtraAttributes
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
public boolean hasExtra()- Specified by:
hasExtra
in interfaceIParticleRecord
-
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.
-