Package gaiasky.scenegraph.particle
Class PointParticleRecord
java.lang.Object
gaiasky.scenegraph.particle.PointParticleRecord
- All Implemented Interfaces:
IParticleRecord
public class PointParticleRecord extends java.lang.Object implements IParticleRecord
Point particle record, only contains a double array to hold the data
-
Constructor Summary
Constructors Constructor Description PointParticleRecord(double[] data) -
Method Summary
Modifier and Type Method Description floatabsmag()voidaddName(java.lang.String name)voidaddNames(java.lang.String... names)floatappmag()doubleb()Galactic latitude in degrees.doublebeta()Ecliptic latitude in degrees.floatcol()doubledec()Declination in degrees.doubledistance()Distance in internal units.ObjectDoubleMap.Keys<UCD>extraKeys()doublegetExtra(UCD ucd)doublegetExtra(java.lang.String name)booleanhasCol()booleanhasExtra()booleanhasExtra(UCD ucd)booleanhasExtra(java.lang.String name)booleanhasName(java.lang.String candidate)booleanhasName(java.lang.String candidate, boolean matchCase)inthip()longid()doublel()Galactic longitude in degrees.doublelambda()Ecliptic longitude in degrees.floatmualpha()floatmudelta()java.lang.String[]names()java.lang.StringnamesConcat()OctreeNodeoctant()doubleparallax()Parallax in mas.doublepmx()doublepmy()doublepmz()Vector3dpos(Vector3d aux)doublera()Right ascension in degrees.doubleradius()floatradvel()double[]rawDoubleData()float[]rawFloatData()double[]rgb()voidsetCol(float col)voidsetHip(int hip)voidsetId(long id)voidsetMag(float appmag, float absmag)voidsetName(java.lang.String name)voidsetNames(java.lang.String... names)voidsetOctant(OctreeNode octant)voidsetPos(double x, double y, double z)voidsetProperMotion(float mualpha, float mudelta, float radvel)voidsetSize(float size)voidsetVelocityVector(double vx, double vy, double vz)floatsize()doublex()doubley()doublez()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
public java.lang.String[] names()- Specified by:
namesin interfaceIParticleRecord
-
namesConcat
public java.lang.String namesConcat()- Specified by:
namesConcatin interfaceIParticleRecord
-
hasName
public boolean hasName(java.lang.String candidate)- Specified by:
hasNamein interfaceIParticleRecord
-
hasName
public boolean hasName(java.lang.String candidate, boolean matchCase)- Specified by:
hasNamein interfaceIParticleRecord
-
setNames
public void setNames(java.lang.String... names)- Specified by:
setNamesin interfaceIParticleRecord
-
setName
public void setName(java.lang.String name)- Specified by:
setNamein interfaceIParticleRecord
-
addName
public void addName(java.lang.String name)- Specified by:
addNamein interfaceIParticleRecord
-
addNames
public void addNames(java.lang.String... names)- 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
-
hasCol
public boolean hasCol()- Specified by:
hasColin 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
-
octant
- Specified by:
octantin interfaceIParticleRecord
-
setOctant
- Specified by:
setOctantin interfaceIParticleRecord
-
pos
- Specified by:
posin 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
-
hasExtra
public boolean hasExtra()- Specified by:
hasExtrain interfaceIParticleRecord
-
extraKeys
- Specified by:
extraKeysin interfaceIParticleRecord
-
hasExtra
public boolean hasExtra(java.lang.String name)- Specified by:
hasExtrain interfaceIParticleRecord
-
hasExtra
- Specified by:
hasExtrain interfaceIParticleRecord
-
getExtra
public double getExtra(java.lang.String name)- Specified by:
getExtrain interfaceIParticleRecord
-
getExtra
- Specified by:
getExtrain interfaceIParticleRecord
-