|
||||||||||
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.TriMesh
com.jme.scene.shape.Quad
synergynetframework.jme.gfx.twod.utils.GraphicsImageQuad
synergynetframework.jme.gfx.twod.PolygonMesh
public class PolygonMesh
The Class PolygonMesh.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jme.scene.TriMesh |
---|
com.jme.scene.TriMesh.Mode |
Nested classes/interfaces inherited from class com.jme.scene.Spatial |
---|
com.jme.scene.Spatial.CullHint, com.jme.scene.Spatial.LightCombineMode, com.jme.scene.Spatial.NormalsMode, com.jme.scene.Spatial.TextureCombineMode |
Field Summary | |
---|---|
float[][] |
coords
The coords. |
com.jmex.awt.swingui.ImageGraphics |
gfx
The gfx. |
Fields inherited from class com.jme.scene.Geometry |
---|
states |
Fields inherited from class com.jme.scene.Spatial |
---|
LOCKED_BOUNDS, LOCKED_BRANCH, LOCKED_MESH_DATA, LOCKED_NONE, LOCKED_SHADOWS, LOCKED_TRANSFORMS, queueDistance |
Constructor Summary | |
---|---|
PolygonMesh(java.lang.String name,
int x,
int y)
Instantiates a new polygon mesh. |
Method Summary | |
---|---|
void |
addCircleFilled(int radius,
com.jme.renderer.ColorRGBA c,
boolean border)
Adds the circle filled. |
void |
addImage(java.net.URL resource)
Adds the image. |
void |
addOvalFilled(int xRadius,
int yRadius,
com.jme.renderer.ColorRGBA c,
boolean border)
Adds the oval filled. |
void |
addPolygonFilled(float[][] coords,
com.jme.renderer.ColorRGBA c,
boolean border)
Adds the polygon filled. |
void |
addSquareFilled(com.jme.renderer.ColorRGBA c,
int curve,
boolean border)
Adds the square filled. |
void |
addTriangleFilled(com.jme.renderer.ColorRGBA c,
boolean border)
Adds the triangle filled. |
void |
changeTextureMode()
Change texture mode. |
void |
clear()
Clear. |
com.jme.renderer.ColorRGBA |
getOtherColour()
Gets the other colour. |
java.lang.String |
getShapeType()
Gets the shape type. |
static void |
setBorder(com.jme.renderer.ColorRGBA c,
int borderWidth)
Sets the border. |
void |
setOtherColour(com.jme.renderer.ColorRGBA otherColour)
Sets the other colour. |
void |
setShapeType(java.lang.String shapeType)
Sets the shape type. |
Methods inherited from class synergynetframework.jme.gfx.twod.utils.GraphicsImageQuad |
---|
getImageGraphics, getImageHeight, getImageWidth, getTextureState, recreateImageForSize, setTextureApplyMode, updateGraphics |
Methods inherited from class com.jme.scene.shape.Quad |
---|
getCenter, getHeight, getWidth, initialize, resize, updateGeometry |
Methods inherited from class com.jme.scene.TriMesh |
---|
clearBuffers, draw, findCollisions, findTriangleCollision, findTrianglePick, getIndexBuffer, getMaxIndex, getMeshAsTriangles, getMeshAsTrianglesVertices, getMode, getTriangle, getTriangle, getTriangleCount, getTriangleIndices, hasCollision, hasTriangleCollision, randomPointOnTriangles, read, reconstruct, setIndexBuffer, setMode, setTriangleQuantity, write |
Methods inherited from class com.jme.scene.Geometry |
---|
addTextureCoordinates, addTextureCoordinates, clearTextureBuffers, copyTextureCoordinates, copyTextureCoordinates, findPick, getBinormalBuffer, getColorBuffer, getDefaultColor, getDisplayListID, getFogBuffer, getLightState, getModelBound, getNormalBuffer, getNumberOfUnits, getTangentBuffer, getTextureCoords, getTextureCoords, getVBOInfo, getVertexBuffer, getVertexCount, getWorldCoords, getWorldNormals, hasDirtyVertices, isCastsShadows, lockMeshes, postdraw, predraw, randomVertex, reconstruct, resizeTextureIds, rotateNormals, rotatePoints, scaleTextureCoordinates, scaleTextureCoordinates, setBinormalBuffer, setCastsShadows, setColorBuffer, setDefaultColor, setDisplayListID, setFogCoordBuffer, setHasDirtyVertices, setLightState, setModelBound, setNormalBuffer, setRandomColors, setSolidColor, setTangentBuffer, setTextureCoords, setTextureCoords, setTextureCoords, setVBOInfo, setVertexBuffer, setVertexCount, sortLights, translatePoints, translatePoints, unlockMeshes, updateModelBound, updateWorldBound |
Methods inherited from class com.jme.scene.Spatial |
---|
addController, calculateCollisions, calculatePick, clearControllers, clearRenderState, clearRenderState, getClassTag, getController, getControllerCount, getControllers, getCullHint, getLastFrustumIntersection, getLightCombineMode, getLocalCullHint, getLocalLightCombineMode, getLocalNormalsMode, getLocalRenderQueueMode, getLocalRotation, getLocalScale, getLocalTextureCombineMode, getLocalToWorldMatrix, getLocalTranslation, getLocks, getName, getNormalsMode, getParent, getRenderQueueMode, getRenderState, getRenderState, getTextureCombineMode, getUserData, getWorldBound, getWorldRotation, getWorldScale, getWorldTranslation, getZOrder, hasAncestor, isCollidable, localToWorld, lock, lock, lockBounds, lockBranch, lockMeshes, lockShadows, lockTransforms, lookAt, onDraw, propagateBoundToRoot, propagateStatesFromRoot, removeController, removeController, removeFromParent, removeUserData, rotateUpTo, setCullHint, setIsCollidable, setLastFrustumIntersection, setLightCombineMode, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalTranslation, setLocalTranslation, setLocks, setLocks, setName, setNormalsMode, setRenderQueueMode, setRenderState, setTextureCombineMode, setUserData, setZOrder, setZOrder, toString, unlock, unlock, unlockBounds, unlockBranch, unlockMeshes, unlockShadows, unlockTransforms, updateGeometricState, updateRenderState, updateWorldData, updateWorldVectors, updateWorldVectors, worldToLocal |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.jme.util.export.Savable |
---|
getClassTag |
Field Detail |
---|
public float[][] coords
public com.jmex.awt.swingui.ImageGraphics gfx
Constructor Detail |
---|
public PolygonMesh(java.lang.String name, int x, int y)
name
- the namex
- the xy
- the yMethod Detail |
---|
public static void setBorder(com.jme.renderer.ColorRGBA c, int borderWidth)
c
- the cborderWidth
- the border widthpublic void addCircleFilled(int radius, com.jme.renderer.ColorRGBA c, boolean border)
radius
- the radiusc
- the cborder
- the borderpublic void addImage(java.net.URL resource)
resource
- the resourcepublic void addOvalFilled(int xRadius, int yRadius, com.jme.renderer.ColorRGBA c, boolean border)
xRadius
- the x radiusyRadius
- the y radiusc
- the cborder
- the borderpublic void addPolygonFilled(float[][] coords, com.jme.renderer.ColorRGBA c, boolean border)
coords
- the coordsc
- the cborder
- the borderpublic void addSquareFilled(com.jme.renderer.ColorRGBA c, int curve, boolean border)
c
- the ccurve
- the curveborder
- the borderpublic void addTriangleFilled(com.jme.renderer.ColorRGBA c, boolean border)
c
- the cborder
- the borderpublic void changeTextureMode()
public void clear()
public com.jme.renderer.ColorRGBA getOtherColour()
public java.lang.String getShapeType()
public void setOtherColour(com.jme.renderer.ColorRGBA otherColour)
otherColour
- the new other colourpublic void setShapeType(java.lang.String shapeType)
shapeType
- the new shape type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |