org.vizzini.ui.graphics.shape
Class Ellipsoid
java.lang.Object
org.vizzini.ui.graphics.shape.AbstractShape
org.vizzini.ui.graphics.shape.ExtrudedShape
org.vizzini.ui.graphics.shape.Ellipsoid
- All Implemented Interfaces:
- Comparable, IStateful, IShape
- Direct Known Subclasses:
- EllipsoidTokenUI
public class Ellipsoid
- extends ExtrudedShape
Shape class for an ellipsoid. This is not a smooth ellipsoid.
- Since:
- v0.2
- Version:
- v0.3
- Author:
- Jeffrey M. Thompson
Constructor Summary |
Ellipsoid(int numSides,
int numStations,
double width,
double height,
double depth)
Construct this object with the given parameters. |
Method Summary |
protected void |
computeCrossSection(int segments)
Compute the cross-section points. |
protected void |
computeScale(int numStations)
Compute the spine points. |
protected void |
computeSpine(int numStations)
Compute the spine points. |
Methods inherited from class org.vizzini.ui.graphics.shape.ExtrudedShape |
computePolygonShapes, computeScreenPoints, contains, drawOn, initPoints, processPolygonShape, releasePolygonShapes, setBeginCap, setEndCap, setHighlightColor, setHighlighted |
Methods inherited from class org.vizzini.ui.graphics.shape.AbstractShape |
add, clear, compareTo, computeCenteredScreenPoints, computeNormalZComponent, computeScreenCenter, createState, createStatefulSupport, drawOn, drawOnSolid, drawOnWireframe, getAbsoluteState, getBounds, getChildren, getColor, getColorForIntensity, getDepth, getDimensions, getHeight, getMinDimension, getName, getScreenCenter, getShapeGroup, getState, getStatefulParent, getTextureFilepath, getWidth, isInFrontOf, isLightSource, isTextureFilepathSet, isVisible, isWireframe, remove, setColor, setLightSource, setName, setStatefulParent, setTextureFilepath, setVisible, setWireframe, toString |
Ellipsoid
public Ellipsoid(int numSides,
int numStations,
double width,
double height,
double depth)
- Construct this object with the given parameters.
- Parameters:
numSides
- The number of sides to the cylinder.width
- Width.height
- Height.depth
- Depth.- Since:
- v0.2
computeCrossSection
protected void computeCrossSection(int segments)
- Compute the cross-section points.
- Parameters:
segments
- The number of segments.- Since:
- v0.2
computeScale
protected void computeScale(int numStations)
- Compute the spine points.
- Since:
- v0.2
computeSpine
protected void computeSpine(int numStations)
- Compute the spine points.
- Since:
- v0.2
Copyright © 2007 Vizzini.org. All Rights Reserved.
|
2007.12.25.03.00.02 |