public class

Ortho

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

Class Overview

Ortho class. Works like glOrtho. Wrapper of orthogonal projection for JOGL

Summary

Public Constructors
Ortho(double left, double right, double bottom, double top, double near, double far)
Creates Ortho object with the clipping plane.
Ortho()
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 Ortho (double left, double right, double bottom, double top, double near, double far)

Creates Ortho 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 Ortho ()

Creates Frustum object with the default parameter. The default parameter is Ortho(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.