public class

Cylinder

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

Class Overview

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

Summary

[Expand]
Inherited Fields
From class casmi.graphics.element.Element
Public Constructors
Cylinder(double radius, double height)
Creates a new Cylinder object using radius and height.
Cylinder(double radius, double height, int slices, int stacks)
Creates a new Cylinder object using radius, height, slices and stacks.
Cylinder(double radius, double height, double x, double y, double z)
Creates a new Cylinder object using radius, height and x,y,z-coordinate.
Cylinder(double radius, double height, double x, double y, double z, int slices, int stacks)
Creates a new Cylinder object using radius, height, slices, stacks, and x,y,z-coordinate.
Public Methods
double getHeight()
Gets the height of this Cylinder.
double getRadius()
Gets the radius of this Cylinder.
void render(GL2 gl, GLU glu, int width, int height, boolean selection)
void reset(GL2 gl)
void setHeight(double height)
Sets the height of this Cylinder.
void setRadius(double radius)
Sets the radius of this Cylinder.
void setSlices(int slices)
Sets the slices of this Cylinder.
void setStacks(int stacks)
Sets the stacks of this Cylinder.
[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 Cylinder (double radius, double height)

Creates a new Cylinder object using radius and height.

Parameters
radius The radius of the Cylinder.
height The height of the Cylinder.

public Cylinder (double radius, double height, int slices, int stacks)

Creates a new Cylinder object using radius, height, slices and stacks.

Parameters
radius The radius of the Cylinder.
height The height of the Cylinder.
slices The slices of the Cylinder.
stacks The stacks of the Cylinder.

public Cylinder (double radius, double height, double x, double y, double z)

Creates a new Cylinder object using radius, height and x,y,z-coordinate.

Parameters
radius The radius of the Cylinder.
height The height of the Cylinder.
x The x-coordinate of the Cylinder.
y The y-coordinate of the Cylinder.
z The z-coordinate of the Cylinder.

public Cylinder (double radius, double height, double x, double y, double z, int slices, int stacks)

Creates a new Cylinder object using radius, height, slices, stacks, and x,y,z-coordinate.

Parameters
radius The radius of the Cylinder.
height The height of the Cylinder.
x The x-coordinate of the Cylinder.
y The y-coordinate of the Cylinder.
z The z-coordinate of the Cylinder.
slices The slices of the Cylinder.
stacks The stacks of the Cylinder.

Public Methods

public double getHeight ()

Gets the height of this Cylinder.

Returns
  • The height of the Cylinder.

public double getRadius ()

Gets the radius of this Cylinder.

Returns
  • The radius of the Cylinder.

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

public void reset (GL2 gl)

public void setHeight (double height)

Sets the height of this Cylinder.

Parameters
height The height of the Cylinder.

public void setRadius (double radius)

Sets the radius of this Cylinder.

Parameters
radius The radius of the Cylinder.

public void setSlices (int slices)

Sets the slices of this Cylinder.

Parameters
slices The slices of the Cylinder.

public void setStacks (int stacks)

Sets the stacks of this Cylinder.

Parameters
stacks The stacks of the Cylinder.