com.jme.scene.model
Class EmptyTriMesh

java.lang.Object
  extended bycom.jme.scene.Spatial
      extended bycom.jme.scene.Geometry
          extended bycom.jme.scene.TriMesh
              extended bycom.jme.scene.model.EmptyTriMesh
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class EmptyTriMesh
extends TriMesh
implements java.io.Externalizable

Started Date: Jun 14, 2004

This class is for use with jME's loader system. It is the same as a TriMesh but doesn't update its floatbuffers for compact storage. It is NOT ment to be attached to a scenegraph and is for internal use only.

Author:
Jack Lindamood
See Also:
Serialized Form

Field Summary
 
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
EmptyTriMesh()
           
 
Method Summary
 void readExternal(java.io.ObjectInput in)
           
 void setColors(ColorRGBA[] storageArray)
          setColors sets the color array of this geometry.
 void setIndices(int[] storageArray)
          setIndices sets the index array for this TriMesh.
 void setNormals(Vector3f[] storageArray)
          setNormals sets this geometry's normals to a new array of normal values.
 void setTextures(Vector2f[] storageArray)
          setTextures sets this geometry's texture array to a new array.
 void setVertices(Vector3f[] storageArray)
          setVertices sets the vertices of this geometry.
 void writeExternal(java.io.ObjectOutput out)
           
 
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, updateCollisionTree, updateIndexBuffer
 
Methods inherited from class com.jme.scene.Geometry
applyRenderState, applyStates, copyTextureCoords, findPick, getAllTextures, getCloneID, getColorAsFloatBuffer, getColors, getModelBound, getNormalAsFloatBuffer, getNormals, getNumberOfUnits, getTextureAsFloatBuffer, getTextureAsFloatBuffer, getTextures, getTextures, getVBOColorID, getVBONormalID, getVBOTextureID, getVBOVertexID, getVerticeAsFloatBuffer, getVertices, getVertQuantity, isVBOColorEnabled, isVBONormalEnabled, isVBOTextureEnabled, isVBOVertexEnabled, randomVertice, reconstruct, setAllTextures, setColor, setFloatBuffer, setForceView, setModelBound, setNormal, setNormalBuffer, setRandomColors, setSolidColor, setTexture, setTexture, setTextureBuffer, setTextureCoord, setTextures, setVBOColorEnabled, setVBOColorID, setVBONormalEnabled, setVBONormalID, setVBOTextureEnabled, setVBOTextureID, setVBOVertexEnabled, setVBOVertexID, setVertex, setVertexBuffer, updateColorBuffer, updateColorBuffer, updateModelBound, updateNormalBuffer, updateNormalBuffer, updateTextureBuffer, updateTextureBuffer, updateTextureBuffer, updateVertexBuffer, updateVertexBuffer, updateWorldBound
 
Methods inherited from class com.jme.scene.Spatial
addController, applyDefaultStates, calculateCollisions, calculatePick, clearCurrentState, clearCurrentStates, clearRenderState, getController, getControllers, getCurrentState, getLastFrustumIntersection, getLightCombineMode, getLocalRotation, getLocalScale, getLocalTranslation, getName, getParent, getRenderQueueMode, getRenderStateList, getTextureCombineMode, getWorldBound, getWorldRotation, getWorldScale, getWorldTranslation, getZOrder, isForceCulled, isForceView, onDraw, onDrawBounds, propagateBoundToRoot, propagateStatesFromRoot, removeController, removeFromParent, setForceCull, setLightCombineMode, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalTranslation, setName, setParent, setRenderQueueMode, setRenderState, setTextureCombineMode, setWorldBound, setZOrder, toString, updateGeometricState, updateRenderState, updateRenderState, updateWorldData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmptyTriMesh

public EmptyTriMesh()
Method Detail

setVertices

public void setVertices(Vector3f[] storageArray)
Description copied from class: Geometry
setVertices sets the vertices of this geometry. The vertices may not be null and will throw an exception if so.

Overrides:
setVertices in class Geometry
Parameters:
storageArray - the new vertices of this geometry.

setNormals

public void setNormals(Vector3f[] storageArray)
Description copied from class: Geometry
setNormals sets this geometry's normals to a new array of normal values.

Overrides:
setNormals in class Geometry
Parameters:
storageArray - the new normal values.

setColors

public void setColors(ColorRGBA[] storageArray)
Description copied from class: Geometry
setColors sets the color array of this geometry.

Overrides:
setColors in class Geometry
Parameters:
storageArray - the new color array.

setTextures

public void setTextures(Vector2f[] storageArray)
Description copied from class: Geometry
setTextures sets this geometry's texture array to a new array.

Overrides:
setTextures in class Geometry
Parameters:
storageArray - the new texture information for this geometry.

setIndices

public void setIndices(int[] storageArray)
Description copied from class: TriMesh
setIndices sets the index array for this TriMesh.

Overrides:
setIndices in class TriMesh
Parameters:
storageArray - the index array.

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException