|
||||||||||
| 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.SphereListInfo
public class SphereListInfo
Stores information on an OpenGL display list for a sphere. Methods for actually creating the OpenGL display list are in the Sphere class. This class is only for storing information on how the Sphere was drawn (slices, stacks, and radius).
| Constructor Summary | |
|---|---|
SphereListInfo()
Constructs a SphereListInfo. |
|
SphereListInfo(int displayListName,
StyleEnum style,
double radius,
int slices,
int stacks)
Constructs a SphereListInfo. |
|
| Method Summary | |
|---|---|
double |
getRadius()
Returns the radius used to draw the sphere in the display list. |
int |
getSlices()
Returns the number of slices that were used to draw the sphere stored in the display list. |
int |
getStacks()
Returns the number of stacks that were used to draw the sphere stored in the display list. |
void |
setRadius(double radius)
Sets the radius used to draw the sphere in the display list. |
void |
setSlices(int slices)
Sets the number of slices that were used to draw the sphere stored in the display list. |
void |
setStacks(int stacks)
Sets the number of stacks that were used to draw the sphere 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 SphereListInfo()
public SphereListInfo(int displayListName,
StyleEnum style,
double radius,
int slices,
int stacks)
displayListName - the name (an integer) of an OpenGL display
list that stores commands to draw a sphere.style - the style as a StyleEnum.radius - the radius of the sphere.slices - the number of slices in the sphere.stacks - the number of stacks in the sphere.| Method Detail |
|---|
public double getRadius()
public void setRadius(double radius)
radius - the radius of the sphere saved in the display list.public int getSlices()
public void setSlices(int slices)
slices - the number of slices in the sphere.public int getStacks()
public void setStacks(int stacks)
stacks - the number of stacks in the sphere.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||