Package com.jme3.scene
Class CenterQuad
java.lang.Object
com.jme3.scene.Mesh
com.jme3.scene.CenterQuad
- All Implemented Interfaces:
- Savable,- JmeCloneable,- Cloneable
Deprecated.
use com.jme3.scene.shape.CenterQuad
A static, indexed, Triangles-mode mesh for an axis-aligned rectangle in the
 X-Y plane.
 
The rectangle extends from (-width/2, -height/2, 0) to (width/2, height/2, 0) with normals set to (0,0,1).
This differs from com.jme3.scene.shape.Quad because it puts (0,0,0) at the rectangle's center instead of in a corner.
- 
Nested Class Summary
- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedDeprecated.For serialization only.CenterQuad(float width, float height) Deprecated.Create a quad with the given width and height.CenterQuad(float width, float height, boolean flipCoords) Deprecated.Create a quad with the given width and height.
- 
Method SummaryModifier and TypeMethodDescriptionfloatDeprecated.floatgetWidth()Deprecated.voidread(JmeImporter importer) Deprecated.De-serializes from the specified importer, for example when loading from a J3O file.voidupdateGeometry(float width, float height) Deprecated.voidupdateGeometry(float width, float height, boolean flipCoords) Deprecated.voidwrite(JmeExporter exporter) Deprecated.Serializes to the specified exporter, for example when saving to a J3O file.Methods inherited from class com.jme3.scene.MeshaddMorphTarget, 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
- 
Field Details- 
UnitQuadDeprecated.
- 
CenterSplitQuadDeprecated.
 
- 
- 
Constructor Details- 
CenterQuadpublic CenterQuad(float width, float height) Deprecated.Create a quad with the given width and height. The quad is always created in the XY plane.- Parameters:
- width- The X extent or width
- height- The Y extent or width
 
- 
CenterQuadpublic CenterQuad(float width, float height, boolean flipCoords) Deprecated.Create a quad with the given width and height. The quad is always created in the XY plane.- Parameters:
- width- The X extent or width
- height- The Y extent or width
- flipCoords- If true, the texture coordinates will be flipped along the Y axis.
 
- 
CenterQuadprotected CenterQuad()Deprecated.For serialization only. Do not use.
 
- 
- 
Method Details- 
getHeightpublic float getHeight()Deprecated.
- 
getWidthpublic float getWidth()Deprecated.
- 
updateGeometrypublic void updateGeometry(float width, float height) Deprecated.
- 
updateGeometrypublic void updateGeometry(float width, float height, boolean flipCoords) Deprecated.
- 
readDeprecated.De-serializes from the specified importer, for example when loading from a J3O file.- Specified by:
- readin interface- Savable
- Overrides:
- readin class- Mesh
- Parameters:
- importer- the importer to use (not null)
- Throws:
- IOException- from the importer
 
- 
writeDeprecated.Serializes to the specified exporter, for example when saving to a J3O file. The current instance is unaffected.- Specified by:
- writein interface- Savable
- Overrides:
- writein class- Mesh
- Parameters:
- exporter- the exporter to use (not null)
- Throws:
- IOException- from the exporter
 
 
-