public class

Torus

extends Element
java.lang.Object
   ↳ casmi.graphics.element.Element
     ↳ casmi.graphics.element.Torus

Class Overview

Torus class. Wrap JOGL and make it easy to use.

Summary

[Expand]
Inherited Fields
From class casmi.graphics.element.Element
Public Constructors
Torus(double innerRad, double outerRad)
Creates a new Torus object using inner radius and outer radius.
Torus(double innerRad, double outerRad, int nside, int rings)
Creates a new Torus object using inner radius, outer radius, nsides and rings.
Torus(double innerRad, double outerRad, double x, double y, double z)
Creates a new Torus object using inner radius, outer radius and x,y,z-coordinate.
Torus(double innerRad, double outerRad, double x, double y, double z, int nside, int rings)
Creates a new Torus object using inner radius, outer radius, nsides, rings and x,y,z-coordinate.
Public Methods
void render(GL2 gl, GLU glu, int width, int height, boolean selection)
void reset(GL2 gl)
[Expand]
Inherited Methods
From class casmi.graphics.element.Element
From class java.lang.Object
From interface casmi.graphics.object.Renderable
From interface casmi.graphics.object.Resettable

Public Constructors

public Torus (double innerRad, double outerRad)

Creates a new Torus object using inner radius and outer radius.

Parameters
innerRad The inner radius of the torus.
outerRad The outer radius of the torus.

public Torus (double innerRad, double outerRad, int nside, int rings)

Creates a new Torus object using inner radius, outer radius, nsides and rings.

Parameters
innerRad The inner radius of the torus.
outerRad The outer radius of the torus.
nside The number of side of each radial section.
rings The number of radial divisions for torus.

public Torus (double innerRad, double outerRad, double x, double y, double z)

Creates a new Torus object using inner radius, outer radius and x,y,z-coordinate.

Parameters
innerRad The inner radius of the torus.
outerRad The outer radius of the torus.
x The x-coordinate of the torus.
y The y-coordinate of the torus.
z The z-coordinate of the torus.

public Torus (double innerRad, double outerRad, double x, double y, double z, int nside, int rings)

Creates a new Torus object using inner radius, outer radius, nsides, rings and x,y,z-coordinate.

Parameters
innerRad The inner radius of the torus.
outerRad The outer radius of the torus.
x The x-coordinate of the torus.
y The y-coordinate of the torus.
z The z-coordinate of the torus.
nside The number of side of each radial section.
rings The number of radial divisions for torus.

Public Methods

public void render (GL2 gl, GLU glu, int width, int height, boolean selection)

public void reset (GL2 gl)