A B C D E G H I M P R S T Y

A

actionPerformed(ActionEvent) - Method in class HourglassFrame
Responds to the commands of the user
activateSandMaterial() - Method in class Bulbs
 

B

BizarreBulbs - class BizarreBulbs.
Description:
Bizarre looking bulbs.
BizarreBulbs(GLFunc, GLUFunc, GLUTFunc) - Constructor for class BizarreBulbs
BizarreBulbs constructor
BizarreStand - class BizarreStand.
Description:
A "bizarre" stand, used together with BizarreBulbs to make an hourglass.
BizarreStand(GLFunc, GLUFunc, GLUTFunc, float, float) - Constructor for class BizarreStand
BizarreStand constructor
BlueGlassMaterial - class BlueGlassMaterial.
Description:
Subclass of the abstract class Material, which supplies all necessary common methods for its subclasses.
BlueGlassMaterial(GLFunc) - Constructor for class BlueGlassMaterial
BlueGlassMaterial constructor
BrassMaterial - class BrassMaterial.
Description:
Subclass of the abstract class Material, which supplies all necessary common methods for its subclasses.
BrassMaterial(GLFunc) - Constructor for class BrassMaterial
BrassMaterial constructor
Bulbs - class Bulbs.
Description:
Abstract bulbs to be used togehter with the abstract class Stand to make an hourglass.
Bulbs(GLFunc, GLUFunc, GLUTFunc) - Constructor for class Bulbs
Bulbs constructor

C

changeBulbsMaterial(String) - Method in class HourglassAnimCanvas
Changes the material of the bulbs used for the hourglass.
changeBulbsType(String) - Method in class HourglassAnimCanvas
Changes the type of bulbs used for the hourglass.
changeSandMaterial(String) - Method in class HourglassAnimCanvas
Changes the material of the sand used in the hourglass.
changeStandType(String) - Method in class HourglassAnimCanvas
Changes the type of stand used for the hourglass.
ClassicBulbs - class ClassicBulbs.
Description:
Classic onion-shaped bulbs.
ClassicBulbs(GLFunc, GLUFunc, GLUTFunc) - Constructor for class ClassicBulbs
ClassicBulbs constructor
ClassicStand - class ClassicStand.
Description:
A "classic" stand, used together with ClassicBulbs to make an hourglass.
ClassicStand(GLFunc, GLUFunc, GLUTFunc, float, float) - Constructor for class ClassicStand
ClassicStand constructor
createMaterial(String) - Method in class MaterialFactory
Creates an instance of the desired material

D

deactivateSandMaterial() - Method in class Bulbs
 
disableMaterial() - Method in class Material
Restores default values
disableMaterial() - Method in class BlueGlassMaterial
Restores default values
disableMaterial() - Method in class GreenGlassMaterial
Restores default values
disableMaterial() - Method in class SootyGlassMaterial
Restores default values
display() - Method in class HourglassAnimCanvas
Ensures GL is initialised correctly Calls showScene() if GL4Java is initialized, and makes the GLContext current for this thread
drawAxes() - Method in class HourglassAnimCanvas
 
drawBulbCtrPointLines() - Method in class Bulbs
Draws lines between the controlpoints for one of the bulbs Bezier surfaces.
drawBulbs() - Method in class Bulbs
Draws the glass sand container (bulbs) of the hourglass
drawHalfStand(boolean) - Method in class Stand
Draws a half hourglass stand.
drawHalfStand(boolean) - Method in class ClassicStand
Draws a half hourglass stand
drawHalfStand(boolean) - Method in class ModernStand
Draws a half hourglass stand
drawHalfStand(boolean) - Method in class BizarreStand
Draws a half hourglass stand
drawHalfStand(boolean) - Method in class SimpleStand
Draws a half hourglass stand
drawHalfStand(boolean) - Method in class PlainStand
Draws a half hourglass stand
drawHourglass() - Method in class HourglassAnimCanvas
Calls the necessary methods for the bulbs, stand and sand to be drawn.
drawLowerSand(boolean, boolean, float, float) - Method in class Bulbs
Draws the sand in the lower part of the hourglass
drawSandWhileTurning() - Method in class Bulbs
Draws a sphere to symbolize the sand while the hourglass is turning
drawStand() - Method in class Stand
Initiates correct material with correct properties and calls for the two halfs of the hourglass stand to be drawn
drawUpperSand(float) - Method in class Bulbs
Draws the sand in the upper part of the hourglass

E

EbonyMaterial - class EbonyMaterial.
Description:
Subclass of the abstract class Material, which supplies all necessary common methods for its subclasses.
EbonyMaterial(GLFunc) - Constructor for class EbonyMaterial
EbonyMaterial constructor
enableMaterial(int) - Method in class Material
Enables the spesific Material.
enableMaterial(int) - Method in class BlueGlassMaterial
Enables the BlueGlassMaterial
enableMaterial(int) - Method in class GreenGlassMaterial
Enables the GreenGlassMaterial
enableMaterial(int) - Method in class SootyGlassMaterial
Enables the SootyGlassMaterial
enableMaterial(int) - Method in class BrassMaterial
Enables the BrassMaterial
enableMaterial(int) - Method in class EbonyMaterial
Enables the EbonyMaterial
enableMaterial(int) - Method in class GreenMaterial
Enables the GreenMaterial
enableMaterial(int) - Method in class RedSandMaterial
Enables the RedSandMaterial
enableMaterial(int) - Method in class YellowSandMaterial
Enables the YellowSandMaterial

G

getBottomLowerSandSteps() - Method in class Bulbs
Gets the number of steps needed for the sand to grow in the lower part
getBulbheight() - Method in class Bulbs
 
getBulbsMaterial() - Method in class Bulbs
 
getEndBulbRadius() - Method in class Bulbs
 
getEndSandRadius() - Method in class Bulbs
 
getGlassThickness() - Method in class Bulbs
 
getLowerTinyHeapRadiusStart() - Method in class Bulbs
Gets the start radius of the tiny sand heap
getLowerTinyHeapSteps() - Method in class Bulbs
Gets the number of steps needed for the lowerTinyHeapRadius to reach the sandEndRadius (sRad4)
getMaxLowerSandLevel() - Method in class Bulbs
 
getMaxUpperSandLevel() - Method in class Bulbs
 
getPointOnCurve(float[], float[], float[], float[], float[], float) - Method in class Bulbs
This function returns an X-Y-Z point along the curve, depending on t (0 to 1)
getSandMaterial() - Method in class Bulbs
 
getStandMaterial() - Method in class Stand
Returns a string representation of the hourglass stand material.
getUpperSandShrink1() - Method in class Bulbs
Gets the first value of shrinks for the sand in the upper part
getUpperSandShrink2() - Method in class Bulbs
Gets the second value of shrinks for the sand in the upper part
getUpperSandShrink3() - Method in class Bulbs
Gets the third value of shrinks for the sand in the upper part
getUpperSandShrink4() - Method in class Bulbs
Gets the forth value of shrinks for the sand in the upper part
getUpperSandSteps1() - Method in class Bulbs
Gets the number of steps needed for the sand to sink in the upper part
getUpperSandSteps2() - Method in class Bulbs
Gets the number of steps needed for the sand to sink in the upper part
getUpperSandSteps3() - Method in class Bulbs
Gets the number of steps needed for the sand to sink in the upper part
getUpperSandSteps4() - Method in class Bulbs
Gets the number of steps needed for the sand to sink in the upper part
GreenGlassMaterial - class GreenGlassMaterial.
Description:
Subclass of the abstract class Material, which supplies all necessary common methods for its subclasses.
GreenGlassMaterial(GLFunc) - Constructor for class GreenGlassMaterial
GreenGlassMaterial constructor
GreenMaterial - class GreenMaterial.
Description:
Subclass of the abstract class Material, which supplies all necessary common methods for its subclasses.
GreenMaterial(GLFunc) - Constructor for class GreenMaterial
GreenMaterial constructor

H

HourglassAnimCanvas - class HourglassAnimCanvas.
Description:
This is where all the fun takes part in making an Hourglass.
HourglassAnimCanvas(int, int) - Constructor for class HourglassAnimCanvas
HourglassAnimCanvas constructor
HourglassFrame - class HourglassFrame.
Description:
The main class for making an Hourglass.
HourglassFrame() - Constructor for class HourglassFrame
HourglassFrame constructor

I

init() - Method in class HourglassAnimCanvas
Initialises the canvas after creating the GLContext.

M

main(String[]) - Static method in class HourglassFrame
Main method
Material - class Material.
Description:
Supplies all necessary common methods for its subclasses.
Material(GLFunc) - Constructor for class Material
Material constructor
MaterialFactory - class MaterialFactory.
Description:
Supplies a factory method for deciding which subclass of Material to instantiate.
MaterialFactory(GLFunc) - Constructor for class MaterialFactory
MaterialFactory constructor
ModernBulbs - class ModernBulbs.
Description:
"Modern" looking shape.
ModernBulbs(GLFunc, GLUFunc, GLUTFunc) - Constructor for class ModernBulbs
ModernBulbs constructor
ModernStand - class ModernStand.
Description:
A "modern" stand, used together with ModernBulbs to make an hourglass.
ModernStand(GLFunc, GLUFunc, GLUTFunc, float, float) - Constructor for class ModernStand
ModernStand constructor

P

PlainStand - class PlainStand.
Description:
A thin plate that just covers the opening of the bulbs, to be used togehter with bulbs, to make an hourglass.
PlainStand(GLFunc, GLUFunc, GLUTFunc, float, float) - Constructor for class PlainStand
PlainStand constructor
preInit() - Method in class HourglassAnimCanvas
Initialises the canvas before creating the GLContext.
putHourglassBackUp() - Method in class HourglassAnimCanvas
Puts the hourglass back up to its original position

R

RedSandMaterial - class RedSandMaterial.
Description:
Subclass of the abstract class Material, which supplies all necessary common methods for its subclasses.
RedSandMaterial(GLFunc) - Constructor for class RedSandMaterial
RedSandMaterial constructor
reshape(int, int) - Method in class HourglassAnimCanvas
Gets called when the size of the canvas changes
runAnimation() - Method in class HourglassAnimCanvas
Takes care of the animation

S

setAllControlPoints(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float) - Method in class Bulbs
 
setAxesClicked(ActionEvent) - Method in class HourglassAnimCanvas
 
setBottomLowerSandSteps(int) - Method in class Bulbs
Sets the number of steps needed for the for the sand up along the walls in the lower part of the glass to go from empty to its max lower level
setBulbCtrPoints(float[]) - Method in class Bulbs
 
setBulbheight(float) - Method in class Bulbs
 
setBulbsMaterial(String) - Method in class Bulbs
 
setBulbsTypeName(String) - Method in class Bulbs
 
setCtrPointsClicked(ActionEvent) - Method in class HourglassAnimCanvas
 
setGlassThickness(float) - Method in class Bulbs
 
setLowerTinyHeapRadiusStart(float) - Method in class Bulbs
Sets the start radius for the sand heap
setLowerTinyHeapSteps(int) - Method in class Bulbs
Sets the number of steps needed for the lowerTinyHeapRadius to reach the sandEndRadius (sRad4)
setMaxLowerSandLevel(float) - Method in class Bulbs
 
setMaxUpperSandLevel(float) - Method in class Bulbs
 
setSandBezierCurvePoints0(float[]) - Method in class Bulbs
 
setSandBezierCurvePoints1(float[]) - Method in class Bulbs
 
setSandBezierCurvePoints2(float[]) - Method in class Bulbs
 
setSandBezierCurvePoints3(float[]) - Method in class Bulbs
 
setSandBezierCurvePoints4(float[]) - Method in class Bulbs
 
setSandCtrPoints(float[]) - Method in class Bulbs
 
setSandMaterial(String) - Method in class Bulbs
 
setSpecialBulbValues() - Method in class Bulbs
Sets all the variables particular to the subclass.
setSpecialBulbValues() - Method in class ClassicBulbs
Sets all the variables particular to the subclass.
setSpecialBulbValues() - Method in class ModernBulbs
Sets all the variables particular to the subclass.
setSpecialBulbValues() - Method in class BizarreBulbs
Sets all the variables particular to the subclass.
setStandMaterial(String) - Method in class Stand
 
setTurnButtonClicked() - Method in class HourglassAnimCanvas
 
setUpperSandShrinks(float, float, float, float) - Method in class Bulbs
Sets the value of shrinks for the sand down along the walls in the upper part of the glass
setUpperSandSteps(int, int, int, int) - Method in class Bulbs
Sets the number of steps needed for the sand down along the walls in the upper part of the glass to go from its max upper level to empty
setWantSandClicked(ActionEvent) - Method in class HourglassAnimCanvas
 
SimpleStand - class SimpleStand.
Description:
A simple plate sticking out just a little further than the end opening of the bulbs, to be used togehter with bulbs, to make an hourglass.
SimpleStand(GLFunc, GLUFunc, GLUTFunc, float, float) - Constructor for class SimpleStand
SimpleStand constructor
SootyGlassMaterial - class SootyGlassMaterial.
Description:
Subclass of the abstract class Material, which supplies all necessary common methods for its subclasses.
SootyGlassMaterial(GLFunc) - Constructor for class SootyGlassMaterial
SootyGlassMaterial constructor
Stand - class Stand.
Description:
An abstract stand to be used togehter with the abstract class Bulbs to make an hourglass.
Stand(GLFunc, GLUFunc, float) - Constructor for class Stand
Stand constructor, used by the classes ModernStand, SimpleStand and PlainStand.
Stand(GLFunc, GLUFunc, GLUTFunc, float) - Constructor for class Stand
Stand constructor, used by the classes ClassicStand and BizarreStand.
standRadius - Variable in class Stand
 

T

testAddSpheres() - Method in class HourglassAnimCanvas
Test method
testMarkCurve(float, float, float) - Method in class Bulbs
 
toString() - Method in class Bulbs
 
toString() - Method in class Stand
 

Y

YellowSandMaterial - class YellowSandMaterial.
Description:
Subclass of the abstract class Material, which supplies all necessary common methods for its subclasses.
YellowSandMaterial(GLFunc) - Constructor for class YellowSandMaterial
YellowSandMaterial constructor

A B C D E G H I M P R S T Y