|
||||||||||
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
apps.docviewer.SimpleSketch
public class SimpleSketch
The Class SimpleSketch.
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 |
---|
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 | |
---|---|
SimpleSketch(java.lang.String name,
int widthPixels,
int heightPixels)
Instantiates a new simple sketch. |
Method Summary | |
---|---|
void |
cursorClicked(long cursorID,
int x,
int y)
Cursor clicked. |
void |
cursorDragged(long id,
int x,
int y)
Cursor dragged. |
void |
cursorPressed(long cursorID,
int x,
int y)
Cursor pressed. |
void |
cursorReleased(long cursorID,
int x,
int y)
Cursor released. |
void |
draw()
Draw. |
float |
getHeight()
Gets the height. |
int |
getImageHeight()
Gets the image height. |
int |
getImageWidth()
Gets the image width. |
com.jme.scene.Spatial |
getSpatial()
Gets the spatial. |
float |
getWidth()
Gets the width. |
Methods inherited from class synergynetframework.jme.gfx.twod.utils.GraphicsImageQuad |
---|
getImageGraphics, getTextureState, recreateImageForSize, setTextureApplyMode, updateGraphics |
Methods inherited from class com.jme.scene.shape.Quad |
---|
getCenter, 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 |
Constructor Detail |
---|
public SimpleSketch(java.lang.String name, int widthPixels, int heightPixels)
name
- the namewidthPixels
- the width pixelsheightPixels
- the height pixelsMethod Detail |
---|
public void cursorClicked(long cursorID, int x, int y)
DrawableSpatialImage
cursorClicked
in interface DrawableSpatialImage
cursorID
- the cursor idx
- the xy
- the ypublic void cursorDragged(long id, int x, int y)
DrawableSpatialImage
cursorDragged
in interface DrawableSpatialImage
id
- the idx
- the xy
- the ypublic void cursorPressed(long cursorID, int x, int y)
DrawableSpatialImage
cursorPressed
in interface DrawableSpatialImage
cursorID
- the cursor idx
- the xy
- the ypublic void cursorReleased(long cursorID, int x, int y)
DrawableSpatialImage
cursorReleased
in interface DrawableSpatialImage
cursorID
- the cursor idx
- the xy
- the ypublic void draw()
DrawableSpatialImage
draw
in interface DrawableSpatialImage
public float getHeight()
DrawableSpatialImage
getHeight
in interface DrawableSpatialImage
getHeight
in class com.jme.scene.shape.Quad
public int getImageHeight()
GraphicsImageQuad
getImageHeight
in interface DrawableSpatialImage
getImageHeight
in class GraphicsImageQuad
public int getImageWidth()
GraphicsImageQuad
getImageWidth
in interface DrawableSpatialImage
getImageWidth
in class GraphicsImageQuad
public com.jme.scene.Spatial getSpatial()
DrawableSpatialImage
getSpatial
in interface DrawableSpatialImage
public float getWidth()
DrawableSpatialImage
getWidth
in interface DrawableSpatialImage
getWidth
in class com.jme.scene.shape.Quad
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |