org.xith3d.ui.hud.geometries
Class DropShadowGeom
java.lang.Object
org.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.Node
org.xith3d.scenegraph.Leaf
org.xith3d.scenegraph.Shape3D
org.xith3d.ui.hud.geometries.DropShadowGeom
- All Implemented Interfaces:
- org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.openmali.spatial.SpatialNode
public class DropShadowGeom
- extends Shape3D
This is a Rectangle, that has (up to) nine panels.
The Texture coordinates are set up to make the borders always have the
same size.
|
Constructor Summary |
DropShadowGeom(Texture texture,
float width,
float height,
int borderBottom,
int borderRight,
int borderTop,
int borderLeft,
org.openmali.vecmath2.Tuple2f pixel,
boolean createCenterPanel)
|
|
Method Summary |
int |
getBorderBottom()
|
int |
getBorderLeft()
|
int |
getBorderRight()
|
int |
getBorderTop()
|
TriangleStripArray |
getGeometry()
|
float |
getHeight()
|
Texture |
getTexture()
|
float |
getWidth()
|
boolean |
hasCenterPanel()
|
void |
setBorderBottom(int border,
org.openmali.vecmath2.Tuple2f pixel)
|
void |
setBorderLeft(int border,
org.openmali.vecmath2.Tuple2f pixel)
|
void |
setBorderRight(int border,
org.openmali.vecmath2.Tuple2f pixel)
|
void |
setBorderTop(int border,
org.openmali.vecmath2.Tuple2f pixel)
|
void |
setSize(float width,
float height,
int borderBottom,
int borderRight,
int borderTop,
int borderLeft,
org.openmali.vecmath2.Tuple2f pixel)
|
void |
setSize(float width,
float height,
org.openmali.vecmath2.Tuple2f pixel)
|
void |
setTexture(Texture texture)
|
| Methods inherited from class org.xith3d.scenegraph.Shape3D |
absorbDetails, freeOpenGLResources, getAppearance, getAppearance, isBumpMappingEnabled, isShadowReceiver, isVisible, newAppearance, setAppearance, setBounds, setBumpMappingEnabled, setBumpMappingEnabled, setGeometry, setIsShadowReceiver, setLive, setModListener, setVisible, sharedCopy, sharedCopy, traverse, updateBounds, updateBoundsCheap, updateWorldTransform, verifyAppChange |
| Methods inherited from class org.xith3d.scenegraph.Node |
cloneNode, detach, duplicateNode, freeOpenGLResources, getBounds, getBoundsAutoCompute, getBoundsType, getBoundsTypeHint, getDefaultPickable, getIndentString, getInheritedNodeAttributes, getModListener, getOrderedChild, getOrderedState, getParent, getRoot, getShadowAttachment, getShowBounds, getTransformGroup, getTreeCell, getWorldBounds, getWorldTransform, getWorldTransform, isBillboard, isIgnoreBounds, isOccluder, isPickable, isRenderable, isUpdatableNode, mergeInheritedClipper, mergeInheritedNodes, mergeInheritedScissorRect, popGlobalIgnoreBounds, printBounds, pushGlobalIgnoreBounds, setBoundsAutoCompute, setBoundsDirty, setBoundsDirtyUpward, setBoundsTypeHint, setDefaultPickable, setGlobalIgnoreBounds, setIgnoreBounds, setIsOccluder, setOrderedChild, setParent, setPickable, setPickableRecursive, setPickableRecursive, setRenderable, setShadowAttachment, setShowBounds, setTransformGroup, setTreeCell, traverse, unmergeInheritedFog, unmergeInheritedLight, unmergeInheritedNodes, updateOrderedChild, updateTransformGroup |
| Methods inherited from class org.xith3d.scenegraph.SceneGraphObject |
getName, getUserData, getUserData, getUserDataMap, isLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DropShadowGeom
public DropShadowGeom(Texture texture,
float width,
float height,
int borderBottom,
int borderRight,
int borderTop,
int borderLeft,
org.openmali.vecmath2.Tuple2f pixel,
boolean createCenterPanel)
getGeometry
public TriangleStripArray getGeometry()
-
- Overrides:
getGeometry in class Shape3D
- Returns:
- the Geometry for this object.
setTexture
public void setTexture(Texture texture)
getTexture
public Texture getTexture()
hasCenterPanel
public boolean hasCenterPanel()
getWidth
public float getWidth()
getHeight
public float getHeight()
getBorderBottom
public int getBorderBottom()
getBorderRight
public int getBorderRight()
getBorderTop
public int getBorderTop()
getBorderLeft
public int getBorderLeft()
setBorderBottom
public void setBorderBottom(int border,
org.openmali.vecmath2.Tuple2f pixel)
setBorderRight
public void setBorderRight(int border,
org.openmali.vecmath2.Tuple2f pixel)
setBorderTop
public void setBorderTop(int border,
org.openmali.vecmath2.Tuple2f pixel)
setBorderLeft
public void setBorderLeft(int border,
org.openmali.vecmath2.Tuple2f pixel)
setSize
public void setSize(float width,
float height,
int borderBottom,
int borderRight,
int borderTop,
int borderLeft,
org.openmali.vecmath2.Tuple2f pixel)
setSize
public void setSize(float width,
float height,
org.openmali.vecmath2.Tuple2f pixel)