org.stellarium.ui.render
Class Image
java.lang.Object
org.stellarium.ui.render.Image
-
public class Image
- extends java.lang.Object
manage an image for display from scripts
- Version:
- Java
- Author:
- Jerome Beau
Method Summary |
(package private) void |
draw(NavigatorIfc nav,
Projector prj)
|
(package private)
java.lang.String |
getName()
|
(package private) boolean |
imageLoaded()
was texture loaded from disk?
|
void |
setAlpha(float alpha,
float duration)
|
void |
setLocation(float xpos,
boolean deltax, float ypos, boolean deltay, float duration)
|
void |
setRotation(float rotation,
float duration)
|
void |
setScale(float scale,
float duration)
|
(package private) boolean |
update(int deltaTime)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
imageTex
private STexture imageTex
imageName
private java.lang.String imageName
imagePosType
private Image.IMAGE_POSITIONING imagePosType
imageScale
private float imageScale
imageAlpha
private float imageAlpha
imageRotation
private float imageRotation
imageRatio
private float imageRatio
imageXPos
private float imageXPos
imageYPos
private float imageYPos
flagAlpha
private boolean flagAlpha
flagScale
private boolean flagScale
flagRotation
private boolean flagRotation
flagLocation
private boolean flagLocation
coefAlpha
private float coefAlpha
coefScale
private float coefScale
coefRotation
private float coefRotation
multAlpha
private float multAlpha
multScale
private float multScale
multRotation
private float multRotation
startAlpha
private float startAlpha
startScale
private float startScale
startRotation
private float startRotation
endAlpha
private float endAlpha
endScale
private float endScale
endRotation
private float endRotation
coefLocation
private float coefLocation
multLocation
private float multLocation
startXPos
private float startXPos
startYPos
private float startYPos
endXPos
private float endXPos
endYPos
private float endYPos
Image
public Image(java.lang.String filename,
java.lang.String name,
Image.IMAGE_POSITIONING positionType)
throws StellariumException
- Throws:
StellariumException
getName
java.lang.String getName()
-
imageLoaded
boolean imageLoaded()
- was texture loaded from disk?
-
- Returns:
-
setAlpha
public void setAlpha(float alpha,
float duration)
-
setScale
public void setScale(float scale,
float duration)
-
setRotation
public void setRotation(float rotation,
float duration)
-
setLocation
public void setLocation(float xpos,
boolean deltax,
float ypos,
boolean deltay,
float duration)
-
update
boolean update(int deltaTime)
-
draw
void draw(NavigatorIfc nav,
Projector prj)
-