|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.scene.Mesh
com.jme3.scene.shape.Dome
public class Dome
A hemisphere.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jme3.scene.Mesh |
---|
Mesh.Mode |
Constructor Summary | |
---|---|
Dome()
Serialization only. |
|
Dome(int planes,
int radialSamples,
float radius)
Constructs a dome for use as a SkyDome. |
|
Dome(Vector3f center,
int planes,
int radialSamples,
float radius)
Constructs a dome visible from the inside, e.g. |
|
Dome(Vector3f center,
int planes,
int radialSamples,
float radius,
boolean insideView)
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 |
isInsideView()
Are the triangles connected in such a way as to present a view out from the dome or not. |
void |
read(JmeImporter e)
|
void |
updateGeometry(Vector3f center,
int planes,
int radialSamples,
float radius,
boolean insideView)
Rebuilds the dome with a new set of parameters. |
void |
write(JmeExporter e)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dome()
public Dome(int planes, int radialSamples, float radius)
planes
- The number of planes along the Z-axis. Must be >= 2.
Influences how round the arch of the dome is.radialSamples
- The number of samples along the radial.
Influences how round the base of the dome is.radius
- Radius of the dome.#Dome(com.jme.math.Vector3f, int, int, float)
public Dome(Vector3f center, int planes, int radialSamples, float radius)
center
- Center of the dome.planes
- The number of planes along the Z-axis. Must be >= 2.
Influences how round the arch of the dome is.radialSamples
- The number of samples along the radial.
Influences how round the base of the dome is.radius
- The radius of the dome.public Dome(Vector3f center, int planes, int radialSamples, float radius, boolean insideView)
center
- Center of the dome.planes
- The number of planes along the Z-axis. Must be >= 2.
Influences how round the arch of the dome is.radialSamples
- The number of samples along the radial.
Influences how round the base of the dome is.radius
- The radius of the dome.insideView
- If true, the dome is only visible from the inside, like a SkyDome.
If false, the dome is only visible from the outside.Method Detail |
---|
public Vector3f getCenter()
public int getPlanes()
public int getRadialSamples()
public float getRadius()
public boolean isInsideView()
public void updateGeometry(Vector3f center, int planes, int radialSamples, float radius, boolean insideView)
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.insideView
- should the dome be set up to be viewed from the inside looking out.public void read(JmeImporter e) throws java.io.IOException
read
in interface Savable
read
in class Mesh
java.io.IOException
public void write(JmeExporter e) throws java.io.IOException
write
in interface Savable
write
in class Mesh
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |