|
||||||||||
| 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.Point
public class Point
Point defines a collection of vertices that are rendered as
single points.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.jme.scene.Spatial |
|---|
Spatial.CullHint, Spatial.LightCombineMode, Spatial.NormalsMode, Spatial.TextureCombineMode |
| Field Summary | |
|---|---|
protected java.nio.IntBuffer |
indexBuffer
|
| 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 |
|---|
collisionBits, cullHint, frustrumIntersects, geometricalControllers, 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 | |
|---|---|
Point()
|
|
Point(java.lang.String name,
java.nio.FloatBuffer vertex,
java.nio.FloatBuffer normal,
java.nio.FloatBuffer color,
TexCoords coords)
Constructor instantiates a new Point object with a given
set of data. |
|
Point(java.lang.String name,
Vector3f[] vertex,
Vector3f[] normal,
ColorRGBA[] color,
Vector2f[] texture)
Constructor instantiates a new Point object with a given
set of data. |
|
| Method Summary | |
|---|---|
void |
draw(Renderer r)
draw prepares the geometry for rendering to the display. |
void |
findCollisions(Spatial scene,
CollisionResults results,
int requiredOnBits)
checks this spatial against a second spatial, any collisions are stored in the results object. |
void |
generateIndices()
|
java.nio.IntBuffer |
getIndexBuffer()
|
float |
getPointSize()
|
boolean |
hasCollision(Spatial scene,
boolean checkTriangles,
int requiredOnBits)
Checks this spatial against a second spatial for collisions. |
boolean |
isAntialiased()
|
void |
read(JMEImporter e)
|
void |
reconstruct(java.nio.FloatBuffer vertices,
java.nio.FloatBuffer normals,
java.nio.FloatBuffer colors,
TexCoords coords)
reconstruct reinitializes the geometry with new data. |
void |
setAntialiased(boolean antialiased)
Sets whether the point should be antialiased. |
void |
setIndexBuffer(java.nio.IntBuffer indices)
|
void |
setPointSize(float size)
Sets the pixel width of the point when drawn. |
void |
write(JMEExporter e)
|
| 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 |
| Field Detail |
|---|
protected transient java.nio.IntBuffer indexBuffer
| Constructor Detail |
|---|
public Point()
public Point(java.lang.String name,
Vector3f[] vertex,
Vector3f[] normal,
ColorRGBA[] color,
Vector2f[] texture)
Point object with a given
set of data. Any data may be null, except the vertex array. If this is
null an exception is thrown.
name - the name of the scene element. This is required for
identification and comparison purposes.vertex - the vertices or points.normal - the normals of the points.color - the color of the points.texture - the texture coordinates of the points.
public Point(java.lang.String name,
java.nio.FloatBuffer vertex,
java.nio.FloatBuffer normal,
java.nio.FloatBuffer color,
TexCoords coords)
Point object with a given
set of data. Any data may be null, except the vertex array. If this is
null an exception is thrown.
name - the name of the scene element. This is required for
identification and comparison purposes.vertex - the vertices or points.normal - the normals of the points.color - the color of the points.coords - the texture coordinates of the points.| Method Detail |
|---|
public void reconstruct(java.nio.FloatBuffer vertices,
java.nio.FloatBuffer normals,
java.nio.FloatBuffer colors,
TexCoords coords)
Geometryreconstruct reinitializes the geometry with new data. This
will reuse the geometry object.
reconstruct in class Geometryvertices - the new vertices to use.normals - the new normals to use.colors - the new colors to use.coords - the new texture coordinates to use (position 0).public void generateIndices()
public void findCollisions(Spatial scene,
CollisionResults results,
int requiredOnBits)
Spatial
findCollisions in class Spatialscene - the scene to test against.results - the results of the collisions.requiredOnBits - considered a collision only if these bits are 'on'
in both 'this' and the 'scene' spatial.
public boolean hasCollision(Spatial scene,
boolean checkTriangles,
int requiredOnBits)
Spatial
hasCollision in class Spatialscene - the scene to test against.checkTriangles - check for collisions on triangle accuracy levelrequiredOnBits - considered a collision only if these bits are 'on'
in both 'this' and the 'scene' spatial.
public boolean isAntialiased()
public void setAntialiased(boolean antialiased)
antialiased - true if the line should be antialiased.public float getPointSize()
public void setPointSize(float size)
size - The size to set.public java.nio.IntBuffer getIndexBuffer()
public void setIndexBuffer(java.nio.IntBuffer indices)
public void write(JMEExporter e)
throws java.io.IOException
write in interface Savablewrite in class Geometryjava.io.IOException
public void read(JMEImporter e)
throws java.io.IOException
read in interface Savableread in class Geometryjava.io.IOExceptionpublic void draw(Renderer r)
Geometrydraw prepares the geometry for rendering to the display.
The renderstate is set and the subclass is responsible for rendering the
actual data.
draw in class Geometryr - the renderer that displays to the context.Spatial.draw(com.jme.renderer.Renderer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||