public class

Cone

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

Class Overview

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

Summary

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

Creates a new Cone object using base size and height.

Parameters
base The base size of the Cone.
height The height of the Cone.

public Cone (double base, double height, int slices, int stacks)

Creates a new Cone object using base size, height, slices and stacks.

Parameters
base The base size of the Cone.
height The height of the Cone.
slices The slices of the Cone.
stacks The stacks of the Cone.

public Cone (double base, double height, double x, double y, double z)

Creates a new Cone object using base size, height and x,y,z-coordinate.

Parameters
base The base size of the Cone.
height The height of the Cone.
x The x-coordinate of the Cone.
y The y-coordinate of the Cone.
z The z-coordinate of the Cone.

public Cone (double base, double height, double x, double y, double z, int slices, int stacks)

Creates a new Cone object using base size, height, slices, stacks, and x,y,z-coordinate.

Parameters
base The base size of the Cone.
height The height of the Cone.
x The x-coordinate of the Cone.
y The y-coordinate of the Cone.
z The z-coordinate of the Cone.
slices The slices of the Cone.
stacks The stacks of the Cone.

Public Methods

public double getBase ()

Gets the base size of this Cone.

Returns
  • The base size of the Cone.

public double getHeight ()

Gets the height of this Cone.

Returns
  • The height of the Cone.

public int getSlices ()

Gets the slices of this Cone.

Returns
  • The slices of the Cone.

public int getStacks ()

Gets the stacks of this Cone.

Returns
  • The stacks of the Cone.

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

public void reset (GL2 gl)

public void setBase (double base)

Sets the base size of this Cone.

Parameters
base The base size of the Cone.

public void setHeight (double height)

Sets the height of this Cone.

Parameters
height The height of the Cone.

public void setSlices (int slices)

Sets the slices of this Cone.

Parameters
slices The slices of the Cone.

public void setStacks (int stacks)

Set the stacks of this Cone.

Parameters
stacks The stacks of the Cone.