crystalspace.jbind.impl.map.ldrctxt
Class csLoaderContext

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csutil.scf.csBase
          extended bycrystalspace.jbind.impl.map.ldrctxt.csLoaderContext
All Implemented Interfaces:
iBase, iLoaderContext, iPointer

public class csLoaderContext
extends csBase
implements iLoaderContext

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csLoaderContext(iPointer nPointer)
           
 
Method Summary
 boolean checkDupes()
          Return true if we check for dupes (to avoid objects with same name being loaded again.
 boolean currentRegionOnly()
          Return true if we only want to look for objects in the region given by GetRegion();.
 iLight findLight(java.lang.String name)
          Find a light.
 iMaterialWrapper findMaterial(java.lang.String name)
          Find a material.
 iMeshFactoryWrapper findMeshFactory(java.lang.String name)
          Find a mesh factory.
 iMeshWrapper findMeshObject(java.lang.String name)
          Find a mesh object.
 iSector findSector(java.lang.String name)
          Find a sector.
 iTextureWrapper findTexture(java.lang.String name)
          Find a texture.
 java.lang.String getName()
          Return the name of the interface
 iRegion getRegion()
          Return a region if we only want to load in that region. 0 otherwise.
 int getVersion()
          Return the version of the interface
protected  boolean isNativePointerValidSafe(long pointer)
           
 
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

csLoaderContext

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

checkDupes

public boolean checkDupes()
Description copied from interface: iLoaderContext
Return true if we check for dupes (to avoid objects with same name being loaded again.

Specified by:
checkDupes in interface iLoaderContext
Returns:
See Also:
iLoaderContext.checkDupes()

currentRegionOnly

public boolean currentRegionOnly()
Description copied from interface: iLoaderContext
Return true if we only want to look for objects in the region given by GetRegion();.

Specified by:
currentRegionOnly in interface iLoaderContext
Returns:
See Also:
iLoaderContext.currentRegionOnly()

findLight

public iLight findLight(java.lang.String name)
Description copied from interface: iLoaderContext
Find a light.

Specified by:
findLight in interface iLoaderContext
Parameters:
name -
Returns:
See Also:
iLoaderContext.findLight(java.lang.String)

findMaterial

public iMaterialWrapper findMaterial(java.lang.String name)
Description copied from interface: iLoaderContext
Find a material.

Specified by:
findMaterial in interface iLoaderContext
Parameters:
name -
Returns:
See Also:
iLoaderContext.findMaterial(java.lang.String)

findMeshFactory

public iMeshFactoryWrapper findMeshFactory(java.lang.String name)
Description copied from interface: iLoaderContext
Find a mesh factory.

Specified by:
findMeshFactory in interface iLoaderContext
Parameters:
name -
Returns:
See Also:
iLoaderContext.findMeshFactory(java.lang.String)

findMeshObject

public iMeshWrapper findMeshObject(java.lang.String name)
Description copied from interface: iLoaderContext
Find a mesh object.

Specified by:
findMeshObject in interface iLoaderContext
Parameters:
name -
Returns:
See Also:
iLoaderContext.findMeshObject(java.lang.String)

findSector

public iSector findSector(java.lang.String name)
Description copied from interface: iLoaderContext
Find a sector.

Specified by:
findSector in interface iLoaderContext
Parameters:
name -
Returns:
See Also:
iLoaderContext.findSector(java.lang.String)

findTexture

public iTextureWrapper findTexture(java.lang.String name)
Description copied from interface: iLoaderContext
Find a texture.

Specified by:
findTexture in interface iLoaderContext
Parameters:
name -
Returns:
See Also:
iLoaderContext.findTexture(java.lang.String)

getRegion

public iRegion getRegion()
Description copied from interface: iLoaderContext
Return a region if we only want to load in that region. 0 otherwise. If not 0 then all objects will be created in the region.

Specified by:
getRegion in interface iLoaderContext
Returns:
See Also:
iLoaderContext.getRegion()