|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.Overlay
public class Overlay
| Nested Class Summary | |
|---|---|
static class |
Overlay.Overlay2DElementsIterator
|
static class |
Overlay.OverlayContainerList
|
| Nested classes/interfaces inherited from interface org.ogre4j.IOverlay |
|---|
IOverlay.IOverlay2DElementsIterator, IOverlay.IOverlayContainerList |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
Overlay(InstancePointer p)
This constructor is public for internal useage only! |
protected |
Overlay(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
Overlay(java.lang.String name)
|
|
Overlay(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
_findVisibleObjects(ICamera cam,
IRenderQueue queue)
Internal method to put the overlay contents onto the render queue. |
void |
_getWorldTransforms(IMatrix4 xform)
Used to transform the overlay when scrolling, scaling etc. |
void |
_notifyOrigin(java.lang.String origin)
|
void |
add2D(IOverlayContainer cont)
Adds a 2D 'container' to the overlay. |
void |
add3D(ISceneNode node)
Adds a node capable of holding 3D objects to the overlay. |
void |
clear()
Clears the overlay of all attached items. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
IOverlayElement |
findElementAt(float x,
float y)
This returns a at position x,y. |
void |
get2DElementsIterator(IOverlay.IOverlay2DElementsIterator returnValue)
|
IOverlayContainer |
getChild(java.lang.String name)
|
java.lang.String |
getName()
Gets the name of this overlay. |
java.lang.String |
getOrigin()
Get the origin of this overlay, e.g. a script file name. |
IRadian |
getRotate()
Gets the rotation applied to this overlay, in degrees. |
float |
getScaleX()
Gets the current X scale value |
float |
getScaleY()
Gets the current Y scale value |
float |
getScrollX()
Gets the current X scroll value |
float |
getScrollY()
Gets the current Y scroll value |
int |
getZOrder()
Gets the ZOrder of this overlay. |
void |
hide()
Hides the overlay if it was visible. |
boolean |
isInitialised()
Gets whether the overlay is initialised or not. |
boolean |
isVisible()
Gets whether the overlay is displayed or not. |
void |
remove2D(IOverlayContainer cont)
Removes a 2D container from the overlay. |
void |
remove3D(ISceneNode node)
Removes a 3D element from the overlay. |
void |
rotate(IRadian angle)
Adds the passed in angle to the rotation applied to this overlay. |
void |
scroll(float xoff,
float yoff)
Scrolls the overlay by the offsets provided. |
void |
setRotate(IRadian angle)
Sets the rotation applied to this overlay. |
void |
setScale(float x,
float y)
Sets the scaling factor of this overlay. |
void |
setScroll(float x,
float y)
Sets the scrolling factor of this overlay. |
void |
setZOrder(int zorder)
Alters the ZOrder of this overlay. |
void |
show()
Shows the overlay if it was hidden. |
| 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 Overlay(InstancePointer p)
protected Overlay(InstancePointer p,
boolean remote)
public Overlay(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public Overlay(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 IOverlayContainer getChild(java.lang.String name)
getChild in interface IOverlaypublic java.lang.String getName()
getName in interface IOverlaypublic void setZOrder(int zorder)
setZOrder in interface IOverlaypublic int getZOrder()
getZOrder in interface IOverlaypublic boolean isVisible()
isVisible in interface IOverlaypublic boolean isInitialised()
isInitialised in interface IOverlaypublic void show()
show in interface IOverlaypublic void hide()
hide in interface IOverlaypublic void add2D(IOverlayContainer cont)
add2D in interface IOverlaypublic void remove2D(IOverlayContainer cont)
remove2D in interface IOverlaypublic void add3D(ISceneNode node)
add3D in interface IOverlaypublic void remove3D(ISceneNode node)
remove3D in interface IOverlaypublic void clear()
clear in interface IOverlay
public void setScroll(float x,
float y)
setScroll in interface IOverlaypublic float getScrollX()
getScrollX in interface IOverlaypublic float getScrollY()
getScrollY in interface IOverlay
public void scroll(float xoff,
float yoff)
scroll in interface IOverlaypublic void setRotate(IRadian angle)
setRotate in interface IOverlaypublic IRadian getRotate()
getRotate in interface IOverlaypublic void rotate(IRadian angle)
rotate in interface IOverlay
public void setScale(float x,
float y)
setScale in interface IOverlaypublic float getScaleX()
getScaleX in interface IOverlaypublic float getScaleY()
getScaleY in interface IOverlaypublic void _getWorldTransforms(IMatrix4 xform)
_getWorldTransforms in interface IOverlay
public void _findVisibleObjects(ICamera cam,
IRenderQueue queue)
_findVisibleObjects in interface IOverlay
public IOverlayElement findElementAt(float x,
float y)
findElementAt in interface IOverlaypublic void get2DElementsIterator(IOverlay.IOverlay2DElementsIterator returnValue)
get2DElementsIterator in interface IOverlaypublic java.lang.String getOrigin()
getOrigin in interface IOverlaypublic void _notifyOrigin(java.lang.String origin)
_notifyOrigin in interface IOverlay
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||