|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.scene.Spatial
com.jme.scene.Geometry
com.jme.scene.TriMesh
com.jme.scene.shape.Sphere
Sphere is um ... a sphere :)
| Field Summary | |
Vector3f |
center
|
float |
radius
|
| Fields inherited from class com.jme.scene.TriMesh |
indices, triangleQuantity |
| Fields inherited from class com.jme.scene.Geometry |
bound, color, colorBuf, normal, normBuf, texBuf, texture, vertBuf, vertex, vertQuantity |
| Fields inherited from class com.jme.scene.Spatial |
currentStates, defaultStateList, forceCull, forceView, frustrumIntersects, geometricalControllers, lightCombineMode, localRotation, localScale, localTranslation, name, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder |
| Constructor Summary | |
Sphere(java.lang.String name)
Constructs a sphere. |
|
Sphere(java.lang.String name,
int zSamples,
int radialSamples,
float radius)
Constructs a sphere with center at the origin. |
|
Sphere(java.lang.String name,
Vector3f center,
int zSamples,
int radialSamples,
float radius)
Constructs a sphere. |
|
| Method Summary | |
Vector3f |
getCenter()
Returns the center of this sphere. |
void |
setCenter(Vector3f aCenter)
Sets the center of this sphere. |
void |
setData(Vector3f center,
int zSamples,
int radialSamples,
float radius,
boolean updateBuffers)
Changes the information of the sphere into the given values. |
| Methods inherited from class com.jme.scene.TriMesh |
clearBuffers, draw, drawBounds, findCollisions, findTriangleCollision, findTrianglePick, findWorldRotMat, getIndexAsBuffer, getIndices, getMeshAsTriangles, getTriangle, getTriangle, getTriangleQuantity, hasCollision, hasTriangleCollision, putClone, reconstruct, setIndexBuffer, setIndices, updateCollisionTree, updateIndexBuffer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public float radius
public Vector3f center
| Constructor Detail |
public Sphere(java.lang.String name)
name - The name of the sphere.
public Sphere(java.lang.String name,
int zSamples,
int radialSamples,
float radius)
name - Name of sphere.zSamples - The samples along the Z.radialSamples - The samples along the radial.radius - Radius of the sphere.Sphere(java.lang.String, com.jme.math.Vector3f, int, int, float)
public Sphere(java.lang.String name,
Vector3f center,
int zSamples,
int radialSamples,
float radius)
name - Name of the sphere.center - Center of the sphere.zSamples - The number of samples along the Z.radialSamples - The number of samples along the radial.radius - The radius of the sphere.| Method Detail |
public void setData(Vector3f center,
int zSamples,
int radialSamples,
float radius,
boolean updateBuffers)
center - The new center of the sphere.zSamples - The new number of zSamples of the sphere.radialSamples - The new number of radial samples of the sphere.radius - The new radius of the sphere.updateBuffers - If true, buffer information is updated as well.public Vector3f getCenter()
public void setCenter(Vector3f aCenter)
aCenter - The new center.setData(com.jme.math.Vector3f, int, int, float, boolean)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||