openpiano.gl
Class Camera

java.lang.Object
  extended by openpiano.gl.Camera

public class Camera
extends Object

Camera class to set up the user's point of view

Version:
1.0, 07/30/08
Author:
Sascha Westermann

Constructor Summary
Camera(Settings settings)
          Construct a camera ontroller controllerwith default settings
 
Method Summary
 float getVisibleArea()
          Returns the last visible GLFloat
 float getXPosition()
          Returns the actual x-position
 void setAngle(float angle)
          Sets the actual angle
 void setXPosition(float x)
          Sets the actual x-position
 void setZoomFactor(float zoomFactor)
          Sets the actual zoom factor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Camera

public Camera(Settings settings)
Construct a camera ontroller controllerwith default settings

Method Detail

setXPosition

public void setXPosition(float x)
Sets the actual x-position

Parameters:
x - the actual x-position

getXPosition

public float getXPosition()
Returns the actual x-position

Returns:
the actual x-position

setAngle

public void setAngle(float angle)
Sets the actual angle

Parameters:
angle - the actual angle

getVisibleArea

public float getVisibleArea()
Returns the last visible GLFloat

Returns:
the last visible GLFloat

setZoomFactor

public void setZoomFactor(float zoomFactor)
Sets the actual zoom factor

Parameters:
zoom -