|
||||||||||
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
com.jmex.effects.FlareQuad
public class FlareQuad
FlareQuad
represents a single light reflection in a LensFlare
object.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jme.scene.TriMesh |
---|
TriMesh.Mode |
Nested classes/interfaces inherited from class com.jme.scene.Spatial |
---|
Spatial.CullHint, Spatial.LightCombineMode, Spatial.NormalsMode, Spatial.TextureCombineMode |
Field Summary | |
---|---|
(package private) Vector2f |
positionPercent
|
Fields inherited from class com.jme.scene.shape.Quad |
---|
height, width |
Fields inherited from class com.jme.scene.TriMesh |
---|
indexBuffer, mode, triangleQuantity |
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 |
---|
cullHint, frustrumIntersects, geometricalControllers, isCollidable, 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 | |
---|---|
FlareQuad()
|
|
FlareQuad(java.lang.String name,
float width,
float height)
Creates a new Quad to act as a single lens flare reflection in a LensFlare. |
Method Summary | |
---|---|
void |
read(JMEImporter e)
|
void |
setOffset(float amountX,
float amountY)
Set the offset of this FlareQuad from the center point of the screen using a ratio where 1.0f (100%) = the position of the light source (or screen position of the worldTranslation of the LensFlare.) A negative value for x or y flips it across the axis from the light position. |
void |
updatePosition(Vector3f flarePoint,
Vector2f midPoint)
Updates worldTranslation of this FlareQuad. |
void |
write(JMEExporter e)
|
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, getVertIndex, hasCollision, hasTriangleCollision, randomPointOnTriangles, recalcTriangleQuantity, reconstruct, setIndexBuffer, setMode, setTriangleQuantity |
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 |
---|
Vector2f positionPercent
Constructor Detail |
---|
public FlareQuad()
public FlareQuad(java.lang.String name, float width, float height)
name
- Stringwidth
- floatheight
- floatMethod Detail |
---|
public void setOffset(float amountX, float amountY)
amountX
- floatamountY
- floatpublic void updatePosition(Vector3f flarePoint, Vector2f midPoint)
flarePoint
- Vector3fmidPoint
- Vector2fpublic void write(JMEExporter e) throws java.io.IOException
write
in interface Savable
write
in class TriMesh
java.io.IOException
public void read(JMEImporter e) throws java.io.IOException
read
in interface Savable
read
in class TriMesh
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |