net.jinx.video
Class View3D

java.lang.Object
  extended by net.jinx.video.View3D
All Implemented Interfaces:
View
Direct Known Subclasses:
Camera

public class View3D
extends java.lang.Object
implements View

View implementation that sets OpenGL into a three dimensional drawing mode with lighting enabled.

API Stability: Stable.


Constructor Summary
View3D()
          Same as View3D(null).
View3D(Visible drawable)
          Constructs a View3D for the given Visible.
 
Method Summary
 void deinit(Context opt)
          Deinitializes this View.
 Visible getVisible()
          Provides the Visible object that should be rendered in the viewport.
 void init(Context opt)
          Initializes this View.
 void setVisible(Visible drawable)
          Sets the Visible for this View.
 void view(Context options, java.awt.Rectangle viewport)
          Prepares the view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

View3D

public View3D()
Same as View3D(null).


View3D

public View3D(Visible drawable)
Constructs a View3D for the given Visible.

Parameters:
drawable - the Visible to display in the view. This may be null.
Method Detail

init

public void init(Context opt)
Description copied from interface: View
Initializes this View. happen.

Specified by:
init in interface View
Parameters:
opt - the Context object providing data on how rendering should proceed.

deinit

public void deinit(Context opt)
Description copied from interface: View
Deinitializes this View.

Specified by:
deinit in interface View
Parameters:
opt - the Context object providing data on how rendering should proceed.

view

public void view(Context options,
                 java.awt.Rectangle viewport)
Description copied from interface: View
Prepares the view. Camera related OpenGL commands should be employed here.

Specified by:
view in interface View
Parameters:
options - the Context object providing data on how rendering should proceed.
viewport - the rectangle within the window that this View will be rendered into. NOTE: The origin in OpenGL is the lower left hand corner, not the upper left hand corner.

getVisible

public Visible getVisible()
Description copied from interface: View
Provides the Visible object that should be rendered in the viewport. If this is null, the default Visible for the SplitScreenRenderer will be used instead.

Specified by:
getVisible in interface View
Returns:
the Visible to draw.

setVisible

public void setVisible(Visible drawable)
Sets the Visible for this View. This may be null.

Parameters:
drawable - the Visible.