|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.PanelOverlayElement
public class PanelOverlayElement
| Nested Class Summary | |
|---|---|
static class |
PanelOverlayElement.CmdTiling
|
static class |
PanelOverlayElement.CmdTransparent
|
static class |
PanelOverlayElement.CmdUVCoords
|
| Nested classes/interfaces inherited from interface org.ogre4j.IPanelOverlayElement |
|---|
IPanelOverlayElement.ICmdTiling, IPanelOverlayElement.ICmdTransparent, IPanelOverlayElement.ICmdUVCoords |
| Nested classes/interfaces inherited from interface org.ogre4j.IOverlayContainer |
|---|
IOverlayContainer.IChildContainerIterator, IOverlayContainer.IChildContainerMap, IOverlayContainer.IChildIterator, IOverlayContainer.IChildMap |
| Nested classes/interfaces inherited from interface org.ogre4j.IRenderable |
|---|
IRenderable.ICustomParameterMap, IRenderable.IRenderSystemData, IRenderable.IVisitor |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
PanelOverlayElement(InstancePointer p)
This constructor is public for internal useage only! |
protected |
PanelOverlayElement(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
PanelOverlayElement(java.lang.String name)
Constructor. |
|
PanelOverlayElement(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
_addChild(IOverlayElement elem)
|
void |
_getClippingRegion(IRectangle clippingRegion)
Gets the clipping region of the element |
float |
_getDerivedLeft()
Gets the 'left' position as derived from own left and that of parents. |
float |
_getDerivedTop()
Gets the 'top' position as derived from own left and that of parents. |
float |
_getHeight()
Gets the height of this element in relation to the screen (where 1.0 = screen height) |
float |
_getLeft()
Gets the left of this element in relation to the screen (where 0 = far left, 1.0 = far right) |
float |
_getRelativeHeight()
Gets the 'height' as derived from own height and metrics mode. |
float |
_getRelativeWidth()
Gets the 'width' as derived from own width and metrics mode. |
float |
_getTop()
Gets the top of this element in relation to the screen (where 0 = far left, 1.0 = far right) |
float |
_getWidth()
Gets the width of this element in relation to the screen (where 1.0 = screen width) |
void |
_notifyParent(IOverlayContainer parent,
IOverlay overlay)
Overridden from . |
void |
_notifyViewport()
Overridden from . |
void |
_notifyWorldTransforms(IMatrix4 xform)
Overridden from . |
int |
_notifyZOrder(int newZOrder)
Overridden from . |
void |
_positionsOutOfDate()
Tell the object and its children to recalculate |
void |
_removeChild(IOverlayElement elem)
|
void |
_removeChild(java.lang.String name)
|
void |
_setDimensions(float width,
float height)
Sets the width and height of this element in relation to the screen (where 1.0 = screen width) |
void |
_setHeight(float height)
Sets the height of this element in relation to the screen (where 1.0 = screen width) |
void |
_setLeft(float left)
Sets the left of this element in relation to the screen (where 1.0 = screen width) |
void |
_setParent(IOverlayContainer parent)
|
void |
_setPosition(float left,
float top)
Sets the left and top of this element in relation to the screen (where 1.0 = screen width) |
void |
_setTop(float top)
Sets the top of this element in relation to the screen (where 1.0 = screen width) |
void |
_setWidth(float width)
Sets the width of this element in relation to the screen (where 1.0 = screen width) |
void |
_update()
Overridden from . |
void |
_updateCustomGpuParameter(IGpuProgramParameters.IAutoConstantEntry constantEntry,
IGpuProgramParameters params)
Update a custom constant which is derived from information only this knows. |
void |
_updateFromParent()
Updates this elements transform based on it's parent. |
void |
_updateRenderQueue(IRenderQueue queue)
Overridden from |
void |
addChild(IOverlayElement elem)
Adds another to this container. |
void |
addChildImpl(IOverlayContainer cont)
Add a nested container to this container. |
void |
addChildImpl(IOverlayElement elem)
Adds another to this container. |
static void |
cleanupDictionary()
Cleans up the static 'msDictionary' required to reset , otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the implementers (e.g. ) initializes. |
IOverlayElement |
clone(java.lang.String instanceName)
|
boolean |
contains(float x,
float y)
Returns true if xy is within the constraints of the component |
void |
copyFromTemplate(IOverlayElement templateOverlay)
|
void |
copyParametersTo(IStringInterface dest)
Method for copying this object's parameters to another object. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
IOverlayElement |
findElementAt(float x,
float y)
This returns a at position x,y. |
IUTFString |
getCaption()
Gets the caption for this element. |
boolean |
getCastsShadows()
Method which reports whether this renderable would normally cast a shadow. |
IOverlayElement |
getChild(java.lang.String name)
Gets the named child of this container. |
void |
getChildContainerIterator(IOverlayContainer.IChildContainerIterator returnValue)
Gets an iterator for just the container children of this object. |
void |
getChildIterator(IOverlayContainer.IChildIterator returnValue)
Gets an object for iterating over all the children of this object. |
IColourValue |
getColour()
Gets the colour for this element. |
IVector4 |
getCustomParameter(int index)
Gets the custom value associated with this at the given index. |
float |
getHeight()
Gets the height of this element in relation to the screen (where 1.0 = screen height) |
GuiHorizontalAlignment |
getHorizontalAlignment()
Gets the horizontal alignment for this element. |
float |
getLeft()
Gets the left of this element in relation to the screen (where 0 = far left, 1.0 = far right) |
ILightList |
getLights()
Gets a list of lights, ordered relative to how close they are to this renderable. |
IMaterialPtr |
getMaterial()
See |
java.lang.String |
getMaterialName()
Gets the name of the material this element uses. |
GuiMetricsMode |
getMetricsMode()
Retrieves the current settings of how the element metrics are interpreted. |
java.lang.String |
getName()
Gets the name of this overlay. |
int |
getNumWorldTransforms()
Returns the number of world transform matrices this renderable requires. |
IParamDictionary |
getParamDictionary_const()
|
IParamDictionary |
getParamDictionary()
Retrieves the parameter dictionary for this class. |
java.lang.String |
getParameter(java.lang.String name)
Generic parameter retrieval method. |
IParameterList |
getParameters()
Retrieves a list of parameters valid for this object. |
IOverlayContainer |
getParent()
Returns the parent container. |
boolean |
getPolygonModeOverrideable()
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. |
void |
getRenderOperation(IRenderOperation op)
See . |
IRenderable.IRenderSystemData |
getRenderSystemData()
Sets render system private data |
IOverlayElement |
getSourceTemplate()
|
float |
getSquaredViewDepth(ICamera cam)
Overridden from |
ITechnique |
getTechnique()
Retrieves a pointer to the this renderable object uses. |
float |
getTileX(int layer)
|
float |
getTileY(int layer)
Gets the number of times the texture should repeat vertically. |
float |
getTop()
Gets the top of this element in relation to the screen (where 0 = top, 1.0 = bottom) |
java.lang.String |
getTypeName()
See . |
boolean |
getUseIdentityProjection()
Returns whether or not to use an 'identity' projection. |
boolean |
getUseIdentityView()
Returns whether or not to use an 'identity' view. |
IAny |
getUserAny()
Retrieves the custom user value associated with this object. |
void |
getUV(FloatPointer u1,
FloatPointer v1,
FloatPointer u2,
FloatPointer v2)
Get the uv coordinates for the panel |
GuiVerticalAlignment |
getVerticalAlignment()
Gets the vertical alignment for this element. |
float |
getWidth()
Gets the width of this element in relation to the screen (where 1.0 = screen width) |
void |
getWorldTransforms(IMatrix4 xform)
See |
int |
getZOrder()
Returns the zOrder of the element |
void |
hide()
Hides this element if it was visible. |
void |
initialise()
Initialise |
boolean |
isChildrenProcessEvents()
Should this container pass events to their children |
boolean |
isCloneable()
|
boolean |
isContainer()
Overridden from . |
boolean |
isEnabled()
|
boolean |
isKeyEnabled()
|
boolean |
isTransparent()
Returns whether this panel is transparent. |
boolean |
isVisible()
Returns whether or not the element is visible. |
void |
postRender(ISceneManager sm,
IRenderSystem rsys)
Called immediately after the has been rendered. |
boolean |
preRender(ISceneManager sm,
IRenderSystem rsys)
Called just prior to the being rendered. |
void |
removeChild(java.lang.String name)
Removes a named element from this container. |
void |
setCaption(IUTFString text)
Sets the caption on elements that support it. |
void |
setChildrenProcessEvents(boolean val)
Should this container pass events to their children |
void |
setCloneable(boolean c)
|
void |
setColour(IColourValue col)
Sets the colour on elements that support it. |
void |
setCustomParameter(int index,
IVector4 value)
Sets a custom parameter for this , which may be used to drive calculations for this specific , like GPU program parameters. |
void |
setDimensions(float width,
float height)
Sets the dimensions of this element in relation to the screen (1.0 = screen width/height). |
void |
setEnabled(boolean b)
|
void |
setHeight(float height)
Sets the height of this element in relation to the screen (where 1.0 = screen height) |
void |
setHorizontalAlignment(GuiHorizontalAlignment gha)
Sets the horizontal origin for this element. |
void |
setLeft(float left)
Sets the left of this element in relation to the screen (where 0 = far left, 1.0 = far right) |
void |
setMaterialName(java.lang.String matName)
Overridden from |
void |
setMetricsMode(GuiMetricsMode gmm)
Tells this element how to interpret the position and dimension values it is given. |
boolean |
setParameter(java.lang.String name,
java.lang.String value)
Generic parameter setting method. |
void |
setParameterList(INameValuePairList paramList)
Generic multiple parameter setting method. |
void |
setPolygonModeOverrideable(boolean override)
Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. |
void |
setPosition(float left,
float top)
Sets the position of the top-left corner of the element, relative to the screen size (1.0 = screen width / height) |
void |
setRenderSystemData(IRenderable.IRenderSystemData val)
gets render system private data |
void |
setTiling(float x,
float y,
int layer)
Sets the number of times textures should repeat. |
void |
setTop(float Top)
Sets the top of this element in relation to the screen (where 0 = top, 1.0 = bottom) |
void |
setTransparent(boolean isTransparent)
Sets whether this panel is transparent (used only as a grouping level), or if it is actually rendered. |
void |
setUseIdentityProjection(boolean useIdentityProjection)
Sets whether or not to use an 'identity' projection. |
void |
setUseIdentityView(boolean useIdentityView)
Sets whether or not to use an 'identity' view. |
void |
setUserAny(IAny anything)
Sets any kind of user value on this object. |
void |
setUV(float u1,
float v1,
float u2,
float v2)
Sets the texture coordinates for the panel. |
void |
setVerticalAlignment(GuiVerticalAlignment gva)
Sets the vertical origin for this element. |
void |
setWidth(float width)
Sets the width of this element in relation to the screen (where 1.0 = screen width) |
void |
show()
Shows this element if it was hidden. |
void |
visitRenderables(IRenderable.IVisitor visitor,
boolean debugRenderables)
|
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public PanelOverlayElement(InstancePointer p)
protected PanelOverlayElement(InstancePointer p,
boolean remote)
public PanelOverlayElement(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public PanelOverlayElement(java.lang.String name)
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic void initialise()
initialise in interface IOverlayContainerinitialise in interface IOverlayElementinitialise in interface IPanelOverlayElement
public void setTiling(float x,
float y,
int layer)
setTiling in interface IPanelOverlayElementpublic float getTileX(int layer)
getTileX in interface IPanelOverlayElementpublic float getTileY(int layer)
getTileY in interface IPanelOverlayElement
public void setUV(float u1,
float v1,
float u2,
float v2)
setUV in interface IPanelOverlayElement
public void getUV(FloatPointer u1,
FloatPointer v1,
FloatPointer u2,
FloatPointer v2)
getUV in interface IPanelOverlayElementpublic void setTransparent(boolean isTransparent)
setTransparent in interface IPanelOverlayElementpublic boolean isTransparent()
isTransparent in interface IPanelOverlayElementpublic java.lang.String getTypeName()
getTypeName in interface IOverlayElementgetTypeName in interface IPanelOverlayElementpublic void getRenderOperation(IRenderOperation op)
getRenderOperation in interface IPanelOverlayElementgetRenderOperation in interface IRenderablepublic void setMaterialName(java.lang.String matName)
setMaterialName in interface IOverlayElementsetMaterialName in interface IPanelOverlayElementpublic void _updateRenderQueue(IRenderQueue queue)
_updateRenderQueue in interface IOverlayContainer_updateRenderQueue in interface IOverlayElement_updateRenderQueue in interface IPanelOverlayElementpublic void addChild(IOverlayElement elem)
addChild in interface IOverlayContainerpublic void addChildImpl(IOverlayElement elem)
addChildImpl in interface IOverlayContainerpublic void addChildImpl(IOverlayContainer cont)
addChildImpl in interface IOverlayContainerpublic void removeChild(java.lang.String name)
removeChild in interface IOverlayContainerpublic IOverlayElement getChild(java.lang.String name)
getChild in interface IOverlayContainerpublic void _addChild(IOverlayElement elem)
_addChild in interface IOverlayContainerpublic void _removeChild(IOverlayElement elem)
_removeChild in interface IOverlayContainerpublic void _removeChild(java.lang.String name)
_removeChild in interface IOverlayContainerpublic void getChildIterator(IOverlayContainer.IChildIterator returnValue)
getChildIterator in interface IOverlayContainerpublic void getChildContainerIterator(IOverlayContainer.IChildContainerIterator returnValue)
getChildContainerIterator in interface IOverlayContainerpublic void _positionsOutOfDate()
_positionsOutOfDate in interface IOverlayContainer_positionsOutOfDate in interface IOverlayElementpublic void _update()
_update in interface IOverlayContainer_update in interface IOverlayElementpublic int _notifyZOrder(int newZOrder)
_notifyZOrder in interface IOverlayContainer_notifyZOrder in interface IOverlayElementpublic void _notifyViewport()
_notifyViewport in interface IOverlayContainer_notifyViewport in interface IOverlayElementpublic void _notifyWorldTransforms(IMatrix4 xform)
_notifyWorldTransforms in interface IOverlayContainer_notifyWorldTransforms in interface IOverlayElement
public void _notifyParent(IOverlayContainer parent,
IOverlay overlay)
_notifyParent in interface IOverlayContainer_notifyParent in interface IOverlayElementpublic boolean isContainer()
isContainer in interface IOverlayContainerisContainer in interface IOverlayElementpublic boolean isChildrenProcessEvents()
isChildrenProcessEvents in interface IOverlayContainerpublic void setChildrenProcessEvents(boolean val)
setChildrenProcessEvents in interface IOverlayContainer
public IOverlayElement findElementAt(float x,
float y)
findElementAt in interface IOverlayContainerfindElementAt in interface IOverlayElementpublic void copyFromTemplate(IOverlayElement templateOverlay)
copyFromTemplate in interface IOverlayContainercopyFromTemplate in interface IOverlayElementpublic IOverlayElement clone(java.lang.String instanceName)
clone in interface IOverlayContainerclone in interface IOverlayElementpublic java.lang.String getName()
getName in interface IOverlayElementpublic void show()
show in interface IOverlayElementpublic void hide()
hide in interface IOverlayElementpublic boolean isVisible()
isVisible in interface IOverlayElementpublic boolean isEnabled()
isEnabled in interface IOverlayElementpublic void setEnabled(boolean b)
setEnabled in interface IOverlayElement
public void setDimensions(float width,
float height)
setDimensions in interface IOverlayElement
public void setPosition(float left,
float top)
setPosition in interface IOverlayElementpublic void setWidth(float width)
setWidth in interface IOverlayElementpublic float getWidth()
getWidth in interface IOverlayElementpublic void setHeight(float height)
setHeight in interface IOverlayElementpublic float getHeight()
getHeight in interface IOverlayElementpublic void setLeft(float left)
setLeft in interface IOverlayElementpublic float getLeft()
getLeft in interface IOverlayElementpublic void setTop(float Top)
setTop in interface IOverlayElementpublic float getTop()
getTop in interface IOverlayElementpublic float _getLeft()
_getLeft in interface IOverlayElementpublic float _getTop()
_getTop in interface IOverlayElementpublic float _getWidth()
_getWidth in interface IOverlayElementpublic float _getHeight()
_getHeight in interface IOverlayElementpublic void _setLeft(float left)
_setLeft in interface IOverlayElementpublic void _setTop(float top)
_setTop in interface IOverlayElementpublic void _setWidth(float width)
_setWidth in interface IOverlayElementpublic void _setHeight(float height)
_setHeight in interface IOverlayElement
public void _setPosition(float left,
float top)
_setPosition in interface IOverlayElement
public void _setDimensions(float width,
float height)
_setDimensions in interface IOverlayElementpublic java.lang.String getMaterialName()
getMaterialName in interface IOverlayElementpublic IMaterialPtr getMaterial()
getMaterial in interface IOverlayElementgetMaterial in interface IRenderablepublic void getWorldTransforms(IMatrix4 xform)
getWorldTransforms in interface IOverlayElementgetWorldTransforms in interface IRenderablepublic void _updateFromParent()
_updateFromParent in interface IOverlayElementpublic float _getDerivedLeft()
_getDerivedLeft in interface IOverlayElementpublic float _getDerivedTop()
_getDerivedTop in interface IOverlayElementpublic float _getRelativeWidth()
_getRelativeWidth in interface IOverlayElementpublic float _getRelativeHeight()
_getRelativeHeight in interface IOverlayElementpublic void _getClippingRegion(IRectangle clippingRegion)
_getClippingRegion in interface IOverlayElement
public void visitRenderables(IRenderable.IVisitor visitor,
boolean debugRenderables)
visitRenderables in interface IOverlayElementpublic void setCaption(IUTFString text)
setCaption in interface IOverlayElementpublic IUTFString getCaption()
getCaption in interface IOverlayElementpublic void setColour(IColourValue col)
setColour in interface IOverlayElementpublic IColourValue getColour()
getColour in interface IOverlayElementpublic void setMetricsMode(GuiMetricsMode gmm)
setMetricsMode in interface IOverlayElementpublic GuiMetricsMode getMetricsMode()
getMetricsMode in interface IOverlayElementpublic void setHorizontalAlignment(GuiHorizontalAlignment gha)
setHorizontalAlignment in interface IOverlayElementpublic GuiHorizontalAlignment getHorizontalAlignment()
getHorizontalAlignment in interface IOverlayElementpublic void setVerticalAlignment(GuiVerticalAlignment gva)
setVerticalAlignment in interface IOverlayElementpublic GuiVerticalAlignment getVerticalAlignment()
getVerticalAlignment in interface IOverlayElement
public boolean contains(float x,
float y)
contains in interface IOverlayElementpublic boolean isKeyEnabled()
isKeyEnabled in interface IOverlayElementpublic boolean isCloneable()
isCloneable in interface IOverlayElementpublic void setCloneable(boolean c)
setCloneable in interface IOverlayElementpublic IOverlayContainer getParent()
getParent in interface IOverlayElementpublic void _setParent(IOverlayContainer parent)
_setParent in interface IOverlayElementpublic int getZOrder()
getZOrder in interface IOverlayElementpublic float getSquaredViewDepth(ICamera cam)
getSquaredViewDepth in interface IOverlayElementgetSquaredViewDepth in interface IRenderablepublic ILightList getLights()
IRenderable
getLights in interface IOverlayElementgetLights in interface IRenderablepublic IOverlayElement getSourceTemplate()
getSourceTemplate in interface IOverlayElementpublic IParamDictionary getParamDictionary()
getParamDictionary in interface IStringInterfacepublic IParamDictionary getParamDictionary_const()
getParamDictionary_const in interface IStringInterfacepublic IParameterList getParameters()
getParameters in interface IStringInterface
public boolean setParameter(java.lang.String name,
java.lang.String value)
setParameter in interface IStringInterfacepublic void setParameterList(INameValuePairList paramList)
setParameterList in interface IStringInterfacepublic java.lang.String getParameter(java.lang.String name)
getParameter in interface IStringInterfacepublic void copyParametersTo(IStringInterface dest)
copyParametersTo in interface IStringInterfacepublic static void cleanupDictionary()
public ITechnique getTechnique()
getTechnique in interface IRenderable
public boolean preRender(ISceneManager sm,
IRenderSystem rsys)
preRender in interface IRenderable
public void postRender(ISceneManager sm,
IRenderSystem rsys)
postRender in interface IRenderablepublic int getNumWorldTransforms()
getNumWorldTransforms in interface IRenderablepublic void setUseIdentityProjection(boolean useIdentityProjection)
setUseIdentityProjection in interface IRenderablepublic boolean getUseIdentityProjection()
getUseIdentityProjection in interface IRenderablepublic void setUseIdentityView(boolean useIdentityView)
setUseIdentityView in interface IRenderablepublic boolean getUseIdentityView()
getUseIdentityView in interface IRenderablepublic boolean getCastsShadows()
getCastsShadows in interface IRenderable
public void setCustomParameter(int index,
IVector4 value)
setCustomParameter in interface IRenderablepublic IVector4 getCustomParameter(int index)
getCustomParameter in interface IRenderable
public void _updateCustomGpuParameter(IGpuProgramParameters.IAutoConstantEntry constantEntry,
IGpuProgramParameters params)
_updateCustomGpuParameter in interface IRenderablepublic void setPolygonModeOverrideable(boolean override)
setPolygonModeOverrideable in interface IRenderablepublic boolean getPolygonModeOverrideable()
getPolygonModeOverrideable in interface IRenderablepublic void setUserAny(IAny anything)
setUserAny in interface IRenderablepublic IAny getUserAny()
getUserAny in interface IRenderablepublic IRenderable.IRenderSystemData getRenderSystemData()
getRenderSystemData in interface IRenderablepublic void setRenderSystemData(IRenderable.IRenderSystemData val)
setRenderSystemData in interface IRenderable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||