|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.stellarium.astro.ConstellationMgr
public class ConstellationMgr
Manage group of constellations.
See C++ version of this file.
Field Summary | |
---|---|
private java.util.List<java.util.List<javax.vecmath.Point3d>>
|
allBoundarySegments
|
private double |
artFadeDuration
|
private double |
artMaxIntensity
|
private SFontIfc
|
asterFont
|
private java.util.Map<java.lang.String,Constellation>
|
asterisms
|
private boolean |
flagArt
|
private boolean |
flagBoundaries
|
private boolean |
flagLines
|
private boolean |
flagNames
|
private HipStarMgr |
hipStarMgr
|
private boolean |
isolateSelected
|
private Constellation |
selected
|
Constructor Summary | |
---|---|
ConstellationMgr(HipStarMgr hipStars)
constructor which loads all data from appropriate files |
Method Summary | |
---|---|
void |
draw(Projector prj, NavigatorIfc nav)
Draw all the constellations in the vector |
void |
drawArt(Projector prj, NavigatorIfc nav)
|
(package private) void |
drawBoundaries(Projector prj)
|
void |
drawLines(Projector prj)
|
void |
drawNames(Projector prj)
Draw the names of all the constellations |
Constellation |
findFromAbbreviation(java.lang.String shortname)
|
double |
getArtFadeDuration()
Get constellation art fade duration |
double |
getArtIntensity()
Set constellation maximum art intensity |
SColor |
getBoundaryColor()
|
boolean |
getFlagBoundaries()
Get whether constellation boundaries lines are displayed |
boolean |
getFlagIsolateSelected()
Get whether selected constellation is displayed alone |
boolean |
getFlagLines()
Get whether constellation path lines are displayed |
boolean |
getFlagNames()
Get whether constellation names are displayed |
SColor |
getLabelColor()
|
SColor |
getLineColor()
|
StelObject |
getSelected()
|
boolean |
isFlagArt()
Get whether constellation art is displayed |
Constellation |
isStarIn(StelObject s)
|
java.util.List<java.lang.String>
|
listMatchingObjectsI18n(java.lang.String objPrefix)
|
java.util.List<java.lang.String>
|
listMatchingObjectsI18n(java.lang.String objPrefix,
int maxNbItem)
Find and return the list of at most maxNbItem objects auto-completing the passed object I18n name |
(package private) boolean |
loadBoundaries(java.lang.String boundaryFile)
|
void |
loadLinesAndArt(java.lang.String fileName,
java.lang.String artfileName, java.lang.String boundaryfileName, LoadingBar lb)
Load from file |
void |
loadNames(java.lang.String namesFile)
|
StelObject |
searchByNameI18n(java.lang.String nameI18n)
Return the matching constellation object's pointer if exists or NULL |
void |
setArtFadeDuration(float duration)
Set constellation art fade duration |
void |
setArtIntensity(float max)
Set constellation maximum art intensity |
void |
setBoundaryColor(SColor c)
|
void |
setFlagArt(boolean b)
Set whether constellation art will be displayed |
void |
setFlagBoundaries(boolean b)
Set whether constellation boundaries lines will be displayed |
void |
setFlagGravityLabel(boolean g)
|
void |
setFlagIsolateSelected(boolean s)
Set whether selected constellation must be displayed alone |
void |
setFlagLines(boolean b)
Set whether constellation path lines will be displayed |
void |
setFlagNames(boolean b)
Set whether constellation names will be displayed |
void |
setFont(float fontSize,
java.lang.String ttfFileName)
|
void |
setLabelColor(SColor c)
|
void |
setLineColor(SColor c)
|
void |
setSelected(StelObject s)
Define which constellation is selected from a star number |
void |
setSelected(java.lang.String abbreviation)
Define which constellation is selected from its abbreviation |
(package private) void |
setSelectedConst(Constellation c)
|
void |
translateNames(Translator trans)
|
void |
update(int deltaTime)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Map<java.lang.String,Constellation> asterisms
private SFontIfc asterFont
private final HipStarMgr hipStarMgr
private Constellation selected
private boolean isolateSelected
private java.util.List<java.util.List<javax.vecmath.Point3d>> allBoundarySegments
private boolean flagNames
private boolean flagLines
private boolean flagArt
private boolean flagBoundaries
private double artFadeDuration
private double artMaxIntensity
Constructor Detail |
---|
public ConstellationMgr(HipStarMgr hipStars) throws StellariumException
StellariumException
Method Detail |
---|
public void setFlagGravityLabel(boolean g)
public void setLineColor(SColor c)
public SColor getLineColor()
public void setBoundaryColor(SColor c)
public SColor getBoundaryColor()
public void setLabelColor(SColor c)
public SColor getLabelColor()
public void setFont(float fontSize, java.lang.String ttfFileName) throws StellariumException
StellariumException
public void loadLinesAndArt(java.lang.String fileName, java.lang.String artfileName, java.lang.String boundaryfileName, LoadingBar lb) throws StellariumException
StellariumException
public void draw(Projector prj, NavigatorIfc nav)
public void drawArt(Projector prj, NavigatorIfc nav)
public void drawLines(Projector prj)
public void drawNames(Projector prj)
public Constellation isStarIn(StelObject s)
public Constellation findFromAbbreviation(java.lang.String shortname)
public void loadNames(java.lang.String namesFile) throws StellariumException
namesFile
- Name of the file containing the constellation names in english
StellariumException
public void translateNames(Translator trans)
public void update(int deltaTime)
public void setArtIntensity(float max)
max
-
public double getArtIntensity()
public void setArtFadeDuration(float duration)
duration
-
public double getArtFadeDuration()
public void setFlagLines(boolean b)
b
-
public boolean getFlagLines()
public void setFlagBoundaries(boolean b)
b
-
public boolean getFlagBoundaries()
public void setFlagArt(boolean b)
b
-
public boolean isFlagArt()
public void setFlagNames(boolean b)
b
-
public boolean getFlagNames()
public void setFlagIsolateSelected(boolean s)
public boolean getFlagIsolateSelected()
public void setSelected(java.lang.String abbreviation)
public void setSelected(StelObject s)
public StelObject getSelected()
void setSelectedConst(Constellation c)
boolean loadBoundaries(java.lang.String boundaryFile) throws StellariumException
StellariumException
void drawBoundaries(Projector prj)
public StelObject searchByNameI18n(java.lang.String nameI18n)
nameI18n
- The case sensistive constellation name
public java.util.List<java.lang.String> listMatchingObjectsI18n(java.lang.String objPrefix)
public java.util.List<java.lang.String> listMatchingObjectsI18n(java.lang.String objPrefix, int maxNbItem)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |