com.partnersoft.gui
Class SphericalImageDisplay
java.lang.Object
com.partnersoft.gui.opengl.OpenglControl
com.partnersoft.gui.SphericalImageDisplay
public class SphericalImageDisplay
- extends OpenglControl
|
Method Summary |
double |
angleFor(double radius,
double pixel)
|
protected void |
display(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu)
This is the workhorse method. |
void |
drag(int startX,
int startY,
int endX,
int endY)
|
double |
fancyAngleFor(double radius,
double pixel)
|
VfsFile |
getImageFile()
|
double |
getRotation()
|
double |
getScale()
|
double |
getTilt()
|
void |
highDrag(int startX,
int startY,
int endX,
int endY)
|
void |
reset()
|
void |
setImageFile(VfsFile newFile)
|
void |
setRotation(double newRotation)
|
void |
setScale(double scale)
|
void |
setTilt(double newTilt)
|
double |
tiltFor(double radius,
double pixel)
|
| Methods inherited from class com.partnersoft.gui.opengl.OpenglControl |
addFont, addTexture, addTexture, addTexture, addTexture, clearTextures, errorCheck, fontNamed, getGLAutoDrawable, getGui, isAntialiased, isHeavyweight, isMipmapped, isUsingFractionalMetrics, logInfo, setAntialiased, setMipmapped, setUsingFractionalMetrics, textureNamed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SphericalImageDisplay
public SphericalImageDisplay()
fancyAngleFor
public double fancyAngleFor(double radius,
double pixel)
tiltFor
public double tiltFor(double radius,
double pixel)
angleFor
public double angleFor(double radius,
double pixel)
highDrag
public void highDrag(int startX,
int startY,
int endX,
int endY)
drag
public void drag(int startX,
int startY,
int endX,
int endY)
reset
public void reset()
display
protected void display(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu)
- Description copied from class:
OpenglControl
- This is the workhorse method. Override it with your specific GL commands.
- Overrides:
display in class OpenglControl
setRotation
public void setRotation(double newRotation)
getRotation
public double getRotation()
setTilt
public void setTilt(double newTilt)
getTilt
public double getTilt()
setImageFile
public void setImageFile(VfsFile newFile)
getScale
public double getScale()
setScale
public void setScale(double scale)
getImageFile
public VfsFile getImageFile()