|
||||||||||
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.Dome
public class Dome
A hemisphere.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jme.scene.TriMesh |
---|
TriMesh.Mode |
Nested classes/interfaces inherited from class com.jme.scene.Spatial |
---|
Spatial.CullHint, Spatial.LightCombineMode, Spatial.NormalsMode, Spatial.TextureCombineMode |
Field Summary |
---|
Fields inherited from class com.jme.scene.TriMesh |
---|
indexBuffer, mode, triangleQuantity |
Fields inherited from class com.jme.scene.Geometry |
---|
binormalBuf, bound, castsShadows, colorBuf, compVect, defaultColor, displayListID, enabled, fogBuf, hasDirtyVertices, normBuf, states, tangentBuf, texBuf, vboInfo, vertBuf, vertQuantity |
Fields inherited from class com.jme.scene.Spatial |
---|
cullHint, frustrumIntersects, geometricalControllers, isCollidable, lightCombineMode, localRotation, localScale, localTranslation, LOCKED_BOUNDS, LOCKED_BRANCH, LOCKED_MESH_DATA, LOCKED_NONE, LOCKED_SHADOWS, LOCKED_TRANSFORMS, lockedMode, name, normalsMode, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder |
Constructor Summary | |
---|---|
Dome()
NOT API: for internal use, do not call from user code. |
|
Dome(java.lang.String name)
Constructs a dome. |
|
Dome(java.lang.String name,
int planes,
int radialSamples,
float radius)
Constructs a dome with center at the origin. |
|
Dome(java.lang.String name,
Vector3f center,
int planes,
int radialSamples,
float radius)
Constructs a dome. |
|
Dome(java.lang.String name,
Vector3f center,
int planes,
int radialSamples,
float radius,
boolean outsideView)
Constructs a dome. |
Method Summary | |
---|---|
Vector3f |
getCenter()
|
int |
getPlanes()
Get the number of planar segments along the z-axis of the dome. |
int |
getRadialSamples()
Get the number of samples radially around the main axis of the dome. |
float |
getRadius()
Get the radius of the dome. |
boolean |
isOutsideView()
Are the triangles connected in such a way as to present aview out from the dome or not. |
void |
read(JMEImporter e)
|
void |
setData(Vector3f center,
int planes,
int radialSamples,
float radius,
boolean updateBuffers,
boolean outsideView)
Deprecated. use updateGeometry(Vector3f, int, int, float, boolean) . |
void |
updateGeometry(Vector3f center,
int planes,
int radialSamples,
float radius,
boolean outsideView)
Rebuilds the dome with a new set of parameters. |
void |
write(JMEExporter e)
Generates the connections |
Methods inherited from class com.jme.scene.TriMesh |
---|
clearBuffers, draw, findCollisions, findTriangleCollision, findTrianglePick, getIndexBuffer, getMaxIndex, getMeshAsTriangles, getMeshAsTrianglesVertices, getMode, getTriangle, getTriangle, getTriangleCount, getTriangleIndices, getVertIndex, hasCollision, hasTriangleCollision, randomPointOnTriangles, recalcTriangleQuantity, reconstruct, setIndexBuffer, setMode, setTriangleQuantity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.jme.util.export.Savable |
---|
getClassTag |
Constructor Detail |
---|
public Dome()
public Dome(java.lang.String name)
name
- The name of the dome.public Dome(java.lang.String name, int planes, int radialSamples, float radius)
name
- Name of dome.planes
- The number of planes along the Z-axis.radialSamples
- The samples along the radial.radius
- Radius of the dome.Dome(java.lang.String, com.jme.math.Vector3f, int, int, float)
public Dome(java.lang.String name, Vector3f center, int planes, int radialSamples, float radius)
name
- Name of the dome.center
- Center of the dome.planes
- The number of planes along the Z-axis.radialSamples
- The number of samples along the radial.radius
- The radius of the dome.public Dome(java.lang.String name, Vector3f center, int planes, int radialSamples, float radius, boolean outsideView)
name
- Name of the dome.center
- Center of the dome.planes
- The number of planes along the Z-axis.radialSamples
- The number of samples along the radial.radius
- The radius of the dome.outsideView
- If true, the triangles will be connected for a view outside of
the dome.Method Detail |
---|
public Vector3f getCenter()
public int getPlanes()
public int getRadialSamples()
public float getRadius()
public boolean isOutsideView()
public void read(JMEImporter e) throws java.io.IOException
read
in interface Savable
read
in class TriMesh
java.io.IOException
public void setData(Vector3f center, int planes, int radialSamples, float radius, boolean updateBuffers, boolean outsideView)
updateGeometry(Vector3f, int, int, float, boolean)
.
public void updateGeometry(Vector3f center, int planes, int radialSamples, float radius, boolean outsideView)
center
- the new center of the dome.planes
- the number of planes along the Z-axis.radialSamples
- the new number of radial samples of the dome.radius
- the new radius of the dome.outsideView
- should the dome be set up to be viewed from the inside looking out.public void write(JMEExporter e) throws java.io.IOException
write
in interface Savable
write
in class TriMesh
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |