|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteinshader.graphics.displaylists.GeometricListInfo
org.proteinshader.graphics.displaylists.CylinderListInfo
public class CylinderListInfo
Stores information on an OpenGL display list for a cylinder. Methods for actually creating the display list are in the Cylinder class. This class is only for storing a memory of how the cylinder was drawn (baseRadius, topRadius, height, slices, stacks, etc.).
| Constructor Summary | |
|---|---|
CylinderListInfo()
Constructs a CylinderListInfo. |
|
CylinderListInfo(int displayListName,
StyleEnum style,
double baseRadius,
double topRadius,
double height,
int slices,
int stacks,
boolean baseCapped,
boolean topCapped,
int capSlices,
int capStacks)
Constructs a CylinderListInfo. |
|
| Method Summary | |
|---|---|
double |
getBaseRadius()
Returns the base radius of the cylinder in the display list. |
int |
getCapSlices()
Returns the number of slices that were used to draw the capping sphere at one or both ends of the cylinder (if a capping sphere was used). |
int |
getCapStacks()
Returns the number of stacks that were used to draw the capping sphere at one or both ends of the cylinder (if a capping sphere was used). |
double |
getHeight()
Returns the height of the cylinder stored in the display list. |
int |
getSlices()
Returns the number of slices that were used to draw the cylinder stored in the display list. |
int |
getStacks()
Returns the number of stacks that were used to draw the cylinder stored in the display list. |
double |
getTopRadius()
Returns the top radius of the cylinder in the display list. |
boolean |
isBaseCapped()
Returns true if a capping sphere was used at the base of the cylinder. |
boolean |
isTopCapped()
Returns true if a capping sphere was used at the top of the cylinder. |
void |
setBaseCapped(boolean baseCapped)
Sets a boolean indicating whether the base of the cylinder is capped with a small sphere. |
void |
setBaseRadius(double baseRadius)
Sets the base radius that was used to draw the cylinder in the display list. |
void |
setCapSlices(int capSlices)
Sets the number of slices that were used to draw the capping sphere at one or both ends of the cylinder (if a capping sphere was used). |
void |
setCapStacks(int capStacks)
Sets the number of stacks that were used to draw the capping sphere at one or both ends of the cylinder (if a capping sphere was used). |
void |
setHeight(double height)
Sets the height that was used to draw the cylinder stored in the display list. |
void |
setSlices(int slices)
Sets the number of slices that were used to draw the cylinder stored in thedisplay list. |
void |
setStacks(int stacks)
Sets the number of stacks that were used to draw the cylinder in the display list. |
void |
setTopCapped(boolean topCapped)
Sets a boolean indicating whether the top of the cylinder is capped with a small sphere. |
void |
setTopRadius(double topRadius)
Sets the top radius that was used to draw the cylinder in the display list. |
| Methods inherited from class org.proteinshader.graphics.displaylists.GeometricListInfo |
|---|
getDisplayListName, getStyle, setDisplayListName, setStyle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CylinderListInfo()
public CylinderListInfo(int displayListName,
StyleEnum style,
double baseRadius,
double topRadius,
double height,
int slices,
int stacks,
boolean baseCapped,
boolean topCapped,
int capSlices,
int capStacks)
displayListName - the name (an int) of an OpenGL display list
that stores commands to draw a cylinder.style - the style as a StyleEnum.baseRadius - the radius at the base of the cylinder.topRadius - the radius at the top of the cylinder.height - the height of the cylinder.slices - the number of slices in the cylinder.stacks - the number of stacks in the cylinder.baseCapped - true if the base is capped with a sphere.topCapped - true if the top is capped with a sphere.capSlices - the number of slices in the capping sphere.capStacks - the number of stacks in the capping sphere.| Method Detail |
|---|
public double getBaseRadius()
public void setBaseRadius(double baseRadius)
baseRadius - the base radius of the cylinder.public double getTopRadius()
public void setTopRadius(double topRadius)
topRadius - the top radius of the cylinder.public double getHeight()
public void setHeight(double height)
height - the height of the cylinder.public int getSlices()
public void setSlices(int slices)
slices - the number of slices in the cylinder.public int getStacks()
public void setStacks(int stacks)
stacks - the number of stacks in the cylinder.public boolean isBaseCapped()
public void setBaseCapped(boolean baseCapped)
baseCapped - a boolean indicating if the base is capped.public boolean isTopCapped()
public void setTopCapped(boolean topCapped)
topCapped - a boolean indicating if the top is capped.public int getCapSlices()
public void setCapSlices(int capSlices)
capSlices - the number of slices in the capping sphere.public int getCapStacks()
public void setCapStacks(int capStacks)
capStacks - the number of stacks in the capping sphere.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||