crystalspace.jbind.impl.engine.portalcontainer
Class csPortalContainer

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csutil.scf.csBase
          extended bycrystalspace.jbind.impl.engine.portalcontainer.csPortalContainer
All Implemented Interfaces:
iBase, iPointer, iPortalContainer

public class csPortalContainer
extends csBase
implements iPortalContainer

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csPortalContainer(iPointer nPointer)
           
 
Method Summary
 iPortal createPortal(csVector3 vertices, int num)
          Create a new portal.
 void draw(iRenderView rview)
          Render the portal container.
 java.lang.String getName()
          Return the name of the interface
 iPortal getPortal(int idx)
          Get a specific portal.
 int getPortalCount()
          Get the number of portals in this contain.
 int getVersion()
          Return the version of the interface
protected  boolean isNativePointerValidSafe(long pointer)
           
 void removePortal(iPortal portal)
          Remove a portal.
 
Methods inherited from class crystalspace.jbind.impl.csutil.scf.csBase
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe
 
Methods inherited from class crystalspace.jbind.impl.csNativeObject
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe
 
Methods inherited from interface crystalspace.jbind.interfaces.iPointer
changePointer, getPointer, isMemoryOwner, setMemoryOwner
 

Constructor Detail

csPortalContainer

public csPortalContainer(iPointer nPointer)
Parameters:
nPointer -
Method Detail

getVersion

public int getVersion()
Description copied from interface: iBase
Return the version of the interface

Specified by:
getVersion in interface iBase
Specified by:
getVersion in class csBase
See Also:
iBase.getVersion()

getName

public java.lang.String getName()
Description copied from interface: iBase
Return the name of the interface

Specified by:
getName in interface iBase
Specified by:
getName in class csBase
See Also:
iBase.getName()

isNativePointerValidSafe

protected boolean isNativePointerValidSafe(long pointer)
Specified by:
isNativePointerValidSafe in class csNativeObject
See Also:
csNativeObject.isNativePointerValidSafe(long)

createPortal

public iPortal createPortal(csVector3 vertices,
                            int num)
Description copied from interface: iPortalContainer
Create a new portal.

Specified by:
createPortal in interface iPortalContainer
Parameters:
vertices -
num -
Returns:
See Also:
iPortalContainer.createPortal(crystalspace.jbind.impl.csgeom.vector3.csVector3, int)

draw

public void draw(iRenderView rview)
Description copied from interface: iPortalContainer
Render the portal container.

Specified by:
draw in interface iPortalContainer
Parameters:
rview -
See Also:
iPortalContainer.draw(crystalspace.jbind.interfaces.iengine.rview.iRenderView)

getPortal

public iPortal getPortal(int idx)
Description copied from interface: iPortalContainer
Get a specific portal.

Specified by:
getPortal in interface iPortalContainer
Parameters:
idx -
Returns:
See Also:
iPortalContainer.getPortal(int)

getPortalCount

public int getPortalCount()
Description copied from interface: iPortalContainer
Get the number of portals in this contain.

Specified by:
getPortalCount in interface iPortalContainer
Returns:
See Also:
iPortalContainer.getPortalCount()

removePortal

public void removePortal(iPortal portal)
Description copied from interface: iPortalContainer
Remove a portal.

Specified by:
removePortal in interface iPortalContainer
Parameters:
portal -
See Also:
iPortalContainer.removePortal(crystalspace.jbind.interfaces.iengine.portal.iPortal)