public class Dome extends Mesh
Modifier | Constructor and Description |
---|---|
protected |
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.
|
Modifier and Type | Method and Description |
---|---|
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 importer) |
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) |
addMorphTarget, clearBuffer, clearCollisionData, clone, cloneFields, cloneForAnim, collideWith, createCollisionData, deepClone, extractVertexData, generateBindPose, generateBindPose, getBound, getBuffer, getBufferList, getBuffers, getElementLengths, getFloatBuffer, getId, getIndexBuffer, getIndicesAsList, getInstanceCount, getLineWidth, getLodLevel, getMaxNumWeights, getMode, getModeStart, getMorphIndex, getMorphTarget, getMorphTargetNames, getMorphTargets, getNumLodLevels, getPatchVertexCount, getPointSize, getShortBuffer, getTriangle, getTriangle, getTriangle, getTriangleCount, getTriangleCount, getVertexCount, hasMorphTargets, isAnimated, isAnimatedByBone, isAnimatedByJoint, jmeClone, prepareForAnim, removeMorphTarget, removeMorphTarget, scaleTextureCoordinates, setBound, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setDynamic, setElementLengths, setId, setInterleaved, setLineWidth, setLodLevels, setMaxNumWeights, setMode, setModeStart, setPatchVertexCount, setStatic, setStreamed, updateBound, updateCounts
protected 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.jme3.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.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 importer) throws java.io.IOException
public void write(JmeExporter e) throws java.io.IOException