|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
jwo.utils.gui.JWFrame
jwo.landserf.gui3d.GUI3d
Creates GUI for viewing spatial objects in 3D.
Nested Class Summary |
Nested classes inherited from class javax.swing.JFrame |
JFrame.AccessibleJFrame |
Nested classes inherited from class java.awt.Frame |
Frame.AccessibleAWTFrame |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
static int |
HIGH
High texture quality (512 x 512 pixels). |
static int |
LOW
Low texture quality (128 x 128 pixels). |
static int |
MAXIMUM
Maximum texture quality (2048 x 2048 pixels). |
static int |
MEDIUM
Medium texture quality (256 x 256 pixels). |
static int |
VHIGH
Very High texture quality (1024 x 1024 pixels). |
static int |
VLOW
Very low texture quality (64 x 64 pixels). |
Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.print.Printable |
NO_SUCH_PAGE, PAGE_EXISTS |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
GUI3d(GISFrame parent)
Creates the GUI for 3d visualisation. |
Method Summary | |
void |
actionPerformed(ActionEvent event)
Responds to a selection of menu item or button press. |
void |
cameraChanged(Camera camera)
Displays the current camera position in response to a change in position. |
protected void |
closeDown()
Closes the 3d window. |
Image |
getDetailImage()
Reports the image used for detail texture. |
float |
getDetailSize()
Reports the size of the detail texture relative to 1 grid cell. |
float |
getDetailTransparency()
Reports the transparency value selected. |
int |
getDetailType()
Reports the type of detail image used. |
GISFrame |
getGISFrame()
Reports the GIS frame holding spatial objects. |
float |
getPointSize()
Gets the size of the point feature representation. |
SurfaceRenderer |
getSurfaceRenderer()
Returns the renderer used to display the 3d view. |
int |
getTextureSize()
Reports the current selected texture quality. |
float |
getVectHeight()
Reports height that vectors are drawn above the surface. |
float |
getVectWidth()
Reports the width that vectors are drawn. |
boolean |
isDrawDetail()
Reports if the detailed texture is drawn or not.. |
boolean |
isFadeDetail()
Reports if the detailed texture fades with distance. |
boolean |
isVectClipped()
Reports whether vectors are to be depth clipped. |
boolean |
isVectSmoothed()
Reports whether vectors displayed as smoothed. |
void |
loadImage(String fileName)
Loads the given graphics file and updates the drape with it. |
void |
mouseWheelMoved(MouseWheelEvent event)
Responds to a mouse wheel change event by changing the vertical position of the camera. |
int |
print(Graphics g,
PageFormat pageFormat,
int pageIndex)
Creates a printable version of the 3d display. |
void |
routeFinished()
Identifies when a route has finished naturally. |
void |
run()
Starts the main animation thread for the 3d view. |
void |
setAnimRate(int animRate)
Sets the maximum animation rate in frames per second. |
void |
setPointSize(float pointSize)
Sets the size of the point feature representation. |
void |
setVectClipped(boolean clipVect)
Sets whether vectors are drawn with (true) or without (false) depth clipping. |
void |
setVectHeight(float vectHeight)
Sets the height that vectors are drawn above the surface. |
void |
setVectSmoothed(boolean smoothed)
Sets whether vectors displayed as smoothed. |
void |
setVectWidth(float vectWidth)
Sets the line width of vectors. |
void |
snapshotReceived(String fileName,
ImageIcon snapshot)
Receives an image containing the completed shapshot. |
void |
stateChanged(ChangeEvent e)
Responds to a change in a slider by updating the relevent contol. |
void |
updateColour(Color newColour)
Responds to a request to change one of the display colours (fog, sea, sky or walls. |
void |
updateTexture()
Updates the current texture at the given level of detail. |
void |
updateTexture(int level)
Updates the current texture at the given level of detail. |
void |
updateTextureMenu(int maxTextureSize)
Updates the GUI to reflect current texture options. |
Methods inherited from class jwo.utils.gui.JWFrame |
addActionItem, addActionItem, addActionItem, addActionItem, addActionItem, addBinActionItem, addBinActionItem, addBinActionItem, addBinActionItem, addBinActionItem, addBinActionItem, addBinActionItem, addBinActionItem, addButtonSeparator, addInterruptionListener, addMenu, addMenu, addMenu, addMenuSeparator, getAction, initWindow, removeInterruptionListener, setMaxProgress, setMessage, setMinProgress, setProgress, showProgress |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
public static final int VLOW
public static final int LOW
public static final int MEDIUM
public static final int HIGH
public static final int VHIGH
public static final int MAXIMUM
Constructor Detail |
public GUI3d(GISFrame parent)
parent
- Holds spatial objects to display.Method Detail |
public void run()
run
in interface Runnable
run
in class JWFrame
protected void closeDown()
closeDown
in class JWFrame
public void updateTextureMenu(int maxTextureSize)
maxTextureSize
- Maxium stored texture size.public void loadImage(String fileName)
fileName
- Name of graphics file to load.public void updateColour(Color newColour)
updateColour
in interface JWColourListener
newColour
- New colour to display.public GISFrame getGISFrame()
public float getVectHeight()
public float getVectWidth()
public void setVectHeight(float vectHeight)
vectHeight
- Vector height in elevation units.public void setPointSize(float pointSize)
pointSize
- Size of point features represented on surface. Scaled
between 0 and 10. If 0, no point features shown.public float getPointSize()
public void setVectWidth(float vectWidth)
vectWidth
- Vector width in pixels (can be fractional).public boolean isVectSmoothed()
public void setVectSmoothed(boolean smoothed)
smoothed
- True if vectors are to be smoothed.public boolean isVectClipped()
public void setVectClipped(boolean clipVect)
clipVect
- Determines whether vectors are depth clipped.public void setAnimRate(int animRate)
animRate
- Maximum animation rate in fps.public int getTextureSize()
public void updateTexture()
public void updateTexture(int level)
level
- Texture size level of detail to update (1-2048).public float getDetailTransparency()
public Image getDetailImage()
public int getDetailType()
SurfaceDetailBox
public float getDetailSize()
public boolean isDrawDetail()
public boolean isFadeDetail()
public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
event
- Menu/button selection event.public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
e
- Slider change event.public void cameraChanged(Camera camera)
cameraChanged
in interface CameraListener
camera
- Camera containing changed properties.public void routeFinished()
routeFinished
in interface CameraListener
public void mouseWheelMoved(MouseWheelEvent event)
mouseWheelMoved
in interface MouseWheelListener
event
- Mouse wheel event.public int print(Graphics g, PageFormat pageFormat, int pageIndex)
print
in interface Printable
g
- Graphics to print.pageFormat
- Format of page on which to print.pageIndex
- Page to print.public SurfaceRenderer getSurfaceRenderer()
public void snapshotReceived(String fileName, ImageIcon snapshot)
snapshotReceived
in interface SnapshotListener
fileName
- Name of file containing snapshot or null if not written to a file.snapshot
- Snapshot image.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |