Package gaiasky.scene.record
Class ParticleRecord
java.lang.Object
gaiasky.scene.record.ParticleRecord
- All Implemented Interfaces:
IParticleRecord
- Direct Known Subclasses:
VariableRecord
-
Field Summary
Modifier and TypeFieldDescriptionprotected static TLV3D
protected 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
long
String[]
static final int
static final int
-
Constructor Summary
ConstructorDescriptionParticleRecord
(double[] dataD) ParticleRecord
(double[] dataD, float[] dataF) ParticleRecord
(double[] dataD, float[] dataF, Long id) ParticleRecord
(double[] dataD, float[] dataF, Long id, String name) ParticleRecord
(double[] dataD, float[] dataF, Long id, String[] names) ParticleRecord
(double[] dataD, float[] dataF, Long id, String[] names, ObjectDoubleMap<UCD> extra) ParticleRecord
(double[] dataD, float[] dataF, Long id, String name, ObjectDoubleMap<UCD> extra) ParticleRecord
(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.double
double
boolean
hasCol()
boolean
hasExtra()
boolean
boolean
boolean
boolean
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
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()
-
Field Details
-
STAR_SIZE_D
public static final int STAR_SIZE_D- See Also:
-
STAR_SIZE_F
public static final int STAR_SIZE_F- See Also:
-
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:
-
aux3d1
-
aux3d2
-
aux3d3
-
id
public long id -
dataD
public double[] dataD -
dataF
public float[] dataF -
names
-
extra
-
octant
-
-
Constructor Details
-
ParticleRecord
public ParticleRecord(double[] dataD) -
ParticleRecord
public ParticleRecord(double[] dataD, float[] dataF) -
ParticleRecord
-
ParticleRecord
-
ParticleRecord
-
ParticleRecord
public ParticleRecord(double[] dataD, float[] dataF, Long id, String[] names, ObjectDoubleMap<UCD> extra) -
ParticleRecord
-
ParticleRecord
public ParticleRecord(double[] dataD, float[] dataF, Long id, String name, ObjectDoubleMap<UCD> 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
-
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
-
hasCol
public boolean hasCol()- Specified by:
hasCol
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
-
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
-
extraKeys
- Specified by:
extraKeys
in interfaceIParticleRecord
-
hasExtra
public boolean hasExtra()- Specified by:
hasExtra
in interfaceIParticleRecord
-
hasExtra
- Specified by:
hasExtra
in interfaceIParticleRecord
-
hasExtra
- Specified by:
hasExtra
in interfaceIParticleRecord
-
getExtra
- Specified by:
getExtra
in interfaceIParticleRecord
-
getExtra
- Specified by:
getExtra
in interfaceIParticleRecord
-