|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stellarium.StelObject
org.stellarium.StelObjectBase
org.stellarium.astro.Nebula
public class Nebula
Nested Class Summary | |
---|---|
static class |
Nebula.NebulaType
|
Nested classes/interfaces inherited from class org.stellarium.StelObject |
---|
StelObject.TYPE
|
Field Summary | |
---|---|
private double |
angularSize
Angular size in radians |
(package private) static SColor |
circleColor
|
(package private) static double
|
circleScale
Define the sclaing of the hints circle |
private java.lang.String |
credit
Nebula image credit |
private static char |
endl
|
(package private)
java.lang.String |
englishName
English name |
(package private) static boolean
|
flagBright
Define if nebulae must be drawn in bright mode |
(package private) static double
|
hintsBrightness
|
private int |
icNb
Index Catalog number |
private double |
incLum
Local counter for symbol animation |
(package private) static SColor |
labelColor
|
private double |
luminance
Object luminance to use (value computed to compensate the texture avergae luminosity) |
(package private) double |
mag
Apparent magnitude |
private int |
messierNb
Messier Catalog number |
(package private)
java.lang.String |
nameI18
Nebula name |
private STexture
|
nebTex
Texture |
(package private) static SFontIfc
|
nebulaFontIfc
Font used for names printing |
private int |
ngcNb
New General Catalog number |
(package private) Nebula.NebulaType |
nType
Nebula Type |
(package private) static double
|
RADIUS_NEB
|
private double |
texAvgLuminance
avg luminance of the texture (saved here for performance) |
(package private) static STexture
|
texCircle
The symbolic circle texture |
private javax.vecmath.Point3d[]
|
texQuadVertex
The 4 vertex used to draw the nebula texture |
private
static java.lang.String[] |
UNKNOWN_TYPE_NAMES
|
(package private)
javax.vecmath.Point3d |
XY
Store temporary 2D position |
(package private)
javax.vecmath.Point3d |
XYZ
Cartesian equatorial position |
Fields inherited from class org.stellarium.StelObjectBase |
---|
DEFAULT_COLOR |
Constructor Summary | |
---|---|
Nebula()
|
Method Summary | |
---|---|
(package private) void |
drawChart(DefaultProjector prj,
Navigator nav)
|
(package private) void |
drawCircle(DefaultProjector prj,
Navigator nav)
|
(package private) void |
drawName(DefaultProjector prj)
|
(package private) void |
drawNoTex(DefaultProjector prj,
Navigator nav, ToneReproductor eye)
|
(package private) void |
drawTex(DefaultProjector prj,
Navigator nav, ToneReproductor eye)
|
double |
getAngularSize()
|
double |
getCloseFOV(NavigatorIfc nav)
Tree.Return the best FOV in degree to use for a close view of the object |
javax.vecmath.Point3d |
getEarthEquPos(NavigatorIfc nav)
Get position in earth equatorial frame |
int |
getIcNb()
|
java.lang.String |
getInfoString(NavigatorIfc nav)
Write I18n information about the object in wstring. |
int |
getMessierNb()
|
int |
getNgcNb()
|
float |
getOnScreenSize(Projector prj, NavigatorIfc nav)
Return the radius of a circle containing the object on screen |
java.lang.String |
getShortInfoString(NavigatorIfc nav)
The returned wstring can typically be used for object labeling in the sky |
StelObject.TYPE |
getType()
Tree.Return object's type |
java.lang.String |
getTypeString()
|
(package private) boolean |
hasTex()
|
(package private) boolean |
readNGC(java.lang.String recordstr)
Read the record entry and fill the members |
(package private) void |
readTexture(java.lang.String record)
Read nebula data from file and compute x,y and z; |
(package private) void |
setCircleColor(SColor v)
|
void |
setEnglishName(java.lang.String englishName)
|
(package private) void |
setLabelColor(SColor v)
|
void |
setMessierNb(int mNb)
|
void |
translateName(Translator trans)
Translate nebula name using the passed translator |
Methods inherited from class org.stellarium.StelObjectBase |
---|
deleteTextures, drawPointer,
getBrightestStarInConstellation,
getEnglishName, getMag, getMag, getNameI18n, getObsJ2000Pos,
getParentSatellitesFOV,
getRGB, getSatellitesFOV,
initTextures, release, retain, update |
Methods inherited from class org.stellarium.StelObject |
---|
getUninitializedObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final char endl
private static final java.lang.String[] UNKNOWN_TYPE_NAMES
static final double RADIUS_NEB
private int messierNb
private int ngcNb
private int icNb
java.lang.String englishName
java.lang.String nameI18
private java.lang.String credit
double mag
private double angularSize
javax.vecmath.Point3d XYZ
javax.vecmath.Point3d XY
Nebula.NebulaType nType
private STexture nebTex
private javax.vecmath.Point3d[] texQuadVertex
private double luminance
private double texAvgLuminance
private double incLum
static STexture texCircle
static SFontIfc nebulaFontIfc
static double hintsBrightness
static SColor labelColor
static SColor circleColor
static double circleScale
static boolean flagBright
Constructor Detail |
---|
Nebula()
Method Detail |
---|
public javax.vecmath.Point3d getEarthEquPos(NavigatorIfc nav)
StelObjectBase
getEarthEquPos
in class StelObjectBase
public java.lang.String getInfoString(NavigatorIfc nav)
StelObject
getInfoString
in class StelObject
public java.lang.String getShortInfoString(NavigatorIfc nav)
StelObject
getShortInfoString
in class StelObject
public double getCloseFOV(NavigatorIfc nav)
StelObjectBase
getCloseFOV
in class StelObjectBase
void readTexture(java.lang.String record) throws StellariumException
record
- One line in the fab file representing one nebula entry
StellariumException
void drawChart(DefaultProjector prj, Navigator nav)
void drawTex(DefaultProjector prj, Navigator nav, ToneReproductor eye)
void drawCircle(DefaultProjector prj, Navigator nav)
void drawNoTex(DefaultProjector prj, Navigator nav, ToneReproductor eye)
public float getOnScreenSize(Projector prj, NavigatorIfc nav)
getOnScreenSize
in class StelObjectBase
void drawName(DefaultProjector prj)
boolean hasTex()
boolean readNGC(java.lang.String recordstr)
recordstr
-
public java.lang.String getTypeString()
public void translateName(Translator trans)
trans
-
public StelObject.TYPE getType()
StelObjectBase
getType
in class StelObjectBase
void setLabelColor(SColor v)
void setCircleColor(SColor v)
public double getAngularSize()
public int getMessierNb()
public void setMessierNb(int mNb)
public int getNgcNb()
public int getIcNb()
public void setEnglishName(java.lang.String englishName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |