crystalspace.jbind.impl.engine.mesh
Class csMeshList

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csutil.scf.csBase
          extended bycrystalspace.jbind.impl.engine.mesh.csMeshList
All Implemented Interfaces:
iBase, iMeshList, iPointer

public class csMeshList
extends csBase
implements iMeshList

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csMeshList(iPointer nPointer)
           
 
Method Summary
 int add(iMeshWrapper obj)
          Add a mesh.
 int find(iMeshWrapper obj)
          Find a mesh and return its index.
 iMeshWrapper findByName(java.lang.String Name)
          Find a mesh by name.
 iMeshWrapper get(int n)
          Return a mesh by index.
 int getCount()
          Return the number of meshes in this list.
 java.lang.String getName()
          Return the name of the interface
 int getVersion()
          Return the version of the interface
protected  boolean isNativePointerValidSafe(long pointer)
           
 boolean remove(iMeshWrapper obj)
          Remove a mesh.
 boolean remove(int n)
          Remove the nth mesh.
 void removeAll()
          Remove all meshes.
 
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

csMeshList

public csMeshList(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)

getCount

public int getCount()
Description copied from interface: iMeshList
Return the number of meshes in this list.

Specified by:
getCount in interface iMeshList
Returns:
See Also:
iMeshList.getCount()

get

public iMeshWrapper get(int n)
Description copied from interface: iMeshList
Return a mesh by index.

Specified by:
get in interface iMeshList
Parameters:
n -
Returns:
See Also:
iMeshList.get(int)

add

public int add(iMeshWrapper obj)
Description copied from interface: iMeshList
Add a mesh.

Specified by:
add in interface iMeshList
Parameters:
obj -
Returns:
See Also:
iMeshList.add(crystalspace.jbind.interfaces.iengine.mesh.iMeshWrapper)

remove

public boolean remove(iMeshWrapper obj)
Description copied from interface: iMeshList
Remove a mesh.

Specified by:
remove in interface iMeshList
Parameters:
obj -
Returns:
See Also:
iMeshList.remove(crystalspace.jbind.interfaces.iengine.mesh.iMeshWrapper)

remove

public boolean remove(int n)
Description copied from interface: iMeshList
Remove the nth mesh.

Specified by:
remove in interface iMeshList
Parameters:
n -
Returns:
See Also:
iMeshList.remove(int)

removeAll

public void removeAll()
Description copied from interface: iMeshList
Remove all meshes.

Specified by:
removeAll in interface iMeshList
See Also:
iMeshList.removeAll()

find

public int find(iMeshWrapper obj)
Description copied from interface: iMeshList
Find a mesh and return its index.

Specified by:
find in interface iMeshList
Parameters:
obj -
Returns:
See Also:
iMeshList.find(crystalspace.jbind.interfaces.iengine.mesh.iMeshWrapper)

findByName

public iMeshWrapper findByName(java.lang.String Name)
Description copied from interface: iMeshList
Find a mesh by name.

Specified by:
findByName in interface iMeshList
Parameters:
Name -
Returns:
See Also:
iMeshList.findByName(java.lang.String)