Package gaiasky.scene.record
Class PointParticleRecord
java.lang.Object
gaiasky.scene.record.PointParticleRecord
- All Implemented Interfaces:
IParticleRecord
Point particle record, only contains a double array to hold the data
-
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.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()
-
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
-
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
-
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
-
octant
- Specified by:
octant
in interfaceIParticleRecord
-
setOctant
- Specified by:
setOctant
in interfaceIParticleRecord
-
pos
- Specified by:
pos
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
-
hasExtra
public boolean hasExtra()- Specified by:
hasExtra
in interfaceIParticleRecord
-
extraKeys
- Specified by:
extraKeys
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
-