ProGAL.geom3d.viewer
Class Camera
java.lang.Object
ProGAL.geom3d.viewer.Camera
- All Implemented Interfaces:
- java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
public class Camera
- extends java.lang.Object
- implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.awt.event.KeyListener
Represents a camera located somewhere in the scene. This object completely decides the viewpoint
shown in the canvas. The camera is specified by the following properties
- The position-point indicates the position of the eye-point.
- The lookingAt-point indicates what the eye is looking at.
- The up-vector indicates the up-direction of the screen.
- The boolean perspective-parameter indicates if perspective or parallel projection is used
- If perspective-projection is enabled, the view-angle indicates the zoom level
- If perspective-projection is disabled, the view-size indicates the zoom level
- The front- and back-clip variables indicate at which distances the scene is clipped.
- The front- and back-fog variables indicate at which distances the scene starts and ends fog.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getLocation
public Point getLocation()
getLookingAt
public Point getLookingAt()
getUp
public Vector getUp()
getViewAngle
public double getViewAngle()
getFrontClip
public double getFrontClip()
getBackClip
public double getBackClip()
getFrontFog
public double getFrontFog()
getBackFog
public double getBackFog()
getParallel
public boolean getParallel()
setLocation
public void setLocation(Point p)
setLookingAt
public void setLookingAt(Point p)
setUp
public void setUp(Vector v)
setViewAngle
public void setViewAngle(double a)
setFrontClip
public void setFrontClip(double s)
setBackClip
public void setBackClip(double s)
setFrontFog
public void setFrontFog(double s)
setBackFog
public void setBackFog(double s)
updateView
public void updateView()
mouseWheelMoved
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
- Specified by:
mouseWheelMoved
in interface java.awt.event.MouseWheelListener
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked
in interface java.awt.event.MouseListener
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEntered
in interface java.awt.event.MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExited
in interface java.awt.event.MouseListener
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed
in interface java.awt.event.MouseListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interface java.awt.event.MouseListener
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Specified by:
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Specified by:
mouseMoved
in interface java.awt.event.MouseMotionListener
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- Specified by:
keyPressed
in interface java.awt.event.KeyListener
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- Specified by:
keyReleased
in interface java.awt.event.KeyListener
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- Specified by:
keyTyped
in interface java.awt.event.KeyListener
getControlPanel
public javax.swing.JFrame getControlPanel()
createControlPanel
public void createControlPanel()