org.ogre4j
Interface IOverlay

All Superinterfaces:
IAllocatedObject<ISceneObjAllocPolicy>, INativeObject, ISceneObjAllocatedObject
All Known Implementing Classes:
Overlay

public interface IOverlay
extends INativeObject, ISceneObjAllocatedObject


Nested Class Summary
static interface IOverlay.IOverlay2DElementsIterator
           
static interface IOverlay.IOverlayContainerList
           
 
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.
 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 interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

getChild

IOverlayContainer getChild(java.lang.String name)

getName

java.lang.String getName()
Gets the name of this overlay.


setZOrder

void setZOrder(int zorder)
Alters the ZOrder of this overlay.


getZOrder

int getZOrder()
Gets the ZOrder of this overlay.


isVisible

boolean isVisible()
Gets whether the overlay is displayed or not.


isInitialised

boolean isInitialised()
Gets whether the overlay is initialised or not.


show

void show()
Shows the overlay if it was hidden.


hide

void hide()
Hides the overlay if it was visible.


add2D

void add2D(IOverlayContainer cont)
Adds a 2D 'container' to the overlay.


remove2D

void remove2D(IOverlayContainer cont)
Removes a 2D container from the overlay.


add3D

void add3D(ISceneNode node)
Adds a node capable of holding 3D objects to the overlay.


remove3D

void remove3D(ISceneNode node)
Removes a 3D element from the overlay.


clear

void clear()
Clears the overlay of all attached items.


setScroll

void setScroll(float x,
               float y)
Sets the scrolling factor of this overlay.


getScrollX

float getScrollX()
Gets the current X scroll value


getScrollY

float getScrollY()
Gets the current Y scroll value


scroll

void scroll(float xoff,
            float yoff)
Scrolls the overlay by the offsets provided.


setRotate

void setRotate(IRadian angle)
Sets the rotation applied to this overlay.


getRotate

IRadian getRotate()
Gets the rotation applied to this overlay, in degrees.


rotate

void rotate(IRadian angle)
Adds the passed in angle to the rotation applied to this overlay.


setScale

void setScale(float x,
              float y)
Sets the scaling factor of this overlay.


getScaleX

float getScaleX()
Gets the current X scale value


getScaleY

float getScaleY()
Gets the current Y scale value


_getWorldTransforms

void _getWorldTransforms(IMatrix4 xform)
Used to transform the overlay when scrolling, scaling etc.


_findVisibleObjects

void _findVisibleObjects(ICamera cam,
                         IRenderQueue queue)
Internal method to put the overlay contents onto the render queue.


findElementAt

IOverlayElement findElementAt(float x,
                              float y)
This returns a at position x,y.


get2DElementsIterator

void get2DElementsIterator(IOverlay.IOverlay2DElementsIterator returnValue)

getOrigin

java.lang.String getOrigin()
Get the origin of this overlay, e.g. a script file name.


_notifyOrigin

void _notifyOrigin(java.lang.String origin)


Copyright © 2007 netAllied GmbH. All Rights Reserved.