de.javagl.swogl.scene
Class DefaultView

java.lang.Object
  extended by de.javagl.swogl.scene.DefaultView
All Implemented Interfaces:
View

public class DefaultView
extends java.lang.Object
implements View

Default implementation of a View


Constructor Summary
DefaultView()
          Creates a new DefaultView
 
Method Summary
 float getAspect()
          Returns the current aspect ratio of this view
 float getFarClippingPlane()
          Return the far plane of this view
 float getNearClippingPlane()
          Return the near plane of this view
 java.awt.Rectangle getViewport()
          Returns a copy of the current viewport of this view
 void setAspect(float newAspect)
          Set the aspect ratio of this view
 void setFarClippingPlane(float far)
          Set the far clipping plane of this view
 void setNearClippingPlane(float near)
          Set the near clipping plane of this view
 void setViewport(java.awt.Rectangle viewport)
          Set the viewport of this view
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultView

public DefaultView()
Creates a new DefaultView

Method Detail

setAspect

public void setAspect(float newAspect)
Set the aspect ratio of this view

Parameters:
newAspect - The aspect ratio

getAspect

public float getAspect()
Description copied from interface: View
Returns the current aspect ratio of this view

Specified by:
getAspect in interface View
Returns:
The aspect ratio

setNearClippingPlane

public void setNearClippingPlane(float near)
Set the near clipping plane of this view

Parameters:
near - The near clipping plane

getNearClippingPlane

public float getNearClippingPlane()
Description copied from interface: View
Return the near plane of this view

Specified by:
getNearClippingPlane in interface View
Returns:
The near plane of this view

setFarClippingPlane

public void setFarClippingPlane(float far)
Set the far clipping plane of this view

Parameters:
far - The near clipping plane

getFarClippingPlane

public float getFarClippingPlane()
Description copied from interface: View
Return the far plane of this view

Specified by:
getFarClippingPlane in interface View
Returns:
The far plane of this view

getViewport

public java.awt.Rectangle getViewport()
Description copied from interface: View
Returns a copy of the current viewport of this view

Specified by:
getViewport in interface View
Returns:
The viewport

setViewport

public void setViewport(java.awt.Rectangle viewport)
Set the viewport of this view

Parameters:
viewport - The viewport