public class

Frustum

extends Object
implements Projection
java.lang.Object
   ↳ casmi.graphics.object.Frustum

Class Overview

Frustum class. Works like glFrustum. Wrapper of frustum projection for JOGL

Summary

Public Constructors
Frustum(double left, double right, double bottom, double top, double near, double far)
Creates Frustum object with the clipping plane.
Frustum()
Creates Frustum object with the default parameter.
Public Methods
void project(Graphics g)
void projectForSelection(Graphics g)
void set(double left, double right, double bottom, double top, double near, double far)
Sets the clipping plane.
[Expand]
Inherited Methods
From class java.lang.Object
From interface casmi.graphics.object.Projection

Public Constructors

public Frustum (double left, double right, double bottom, double top, double near, double far)

Creates Frustum object with the clipping plane.

Parameters
left The left coordinate of the clipping plane.
right The right coordinate of the clipping plane.
bottom The bottom coordinate of the clipping plane.
top The top coordinate of the clipping plane.
near The near coordinate of the clipping plane.
far The far coordinate of the clipping plane.

public Frustum ()

Creates Frustum object with the default parameter. The default parameter is Frustom(0, this.width, 0, this.height, -1.0e10, 1.0e10).

Public Methods

public void project (Graphics g)

public void projectForSelection (Graphics g)

public void set (double left, double right, double bottom, double top, double near, double far)

Sets the clipping plane.

Parameters
left The left coordinate of the clipping plane.
right The right coordinate of the clipping plane.
bottom The bottom coordinate of the clipping plane.
top The top coordinate of the clipping plane.
near The near coordinate of the clipping plane.
far The far coordinate of the clipping plane.