crystalspace.jbind.impl.engine.mesh
Class csMeshFactoryWrapper

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

public class csMeshFactoryWrapper
extends csBase
implements iMeshFactoryWrapper

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csMeshFactoryWrapper(iPointer nPointer)
           
 
Method Summary
 void addFactoryToStaticLOD(int lod, iMeshFactoryWrapper fact)
          Set a given child factory at a specific lod level.
 iMeshWrapper createMeshWrapper()
          Create mesh objects from this factory.
 iLODControl createStaticLODC()
          Create a LOD control template for this factory.
 void destroyStaticLOD()
          Destroy the LOD control for this factory.
 iMeshFactoryList getChildren()
          Get all the children of this mesh factory.
 iMeshObjectFactory getMeshObjectFactory()
          Get the iMeshObjectFactory.
 java.lang.String getName()
          Return the name of the interface
 iMeshFactoryWrapper getParentContainer()
          Get the parent of this factory.
 float[] getStaticLOD()
          Get the LOD function parameters for this factory.
 iLODControl getStaticLODC()
          Get the LOD control for this factory.
 csReversibleTransform getTransform()
          Get optional relative transform (relative to parent).
 int getVersion()
          Return the version of the interface
 void hardTransform(csReversibleTransform t)
          Do a hard transform of this factory.
protected  boolean isNativePointerValidSafe(long pointer)
           
 iObject queryObject()
          Get the iObject for this mesh factory.
 void removeFactoryFromStaticLOD(iMeshFactoryWrapper fact)
          Remove a child factory from all lod levels.
 void setMeshObjectFactory(iMeshObjectFactory fact)
          Set the mesh object factory.
 void setParentContainer(iMeshFactoryWrapper p)
          Set the parent of this factory.
 void setStaticLOD(float m, float a)
          Set the LOD function parameters for this factory.
 void setTransform(csReversibleTransform tr)
          Set optional relative transform (relative to parent).
 
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

csMeshFactoryWrapper

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

queryObject

public iObject queryObject()
Description copied from interface: iMeshFactoryWrapper
Get the iObject for this mesh factory.

Specified by:
queryObject in interface iMeshFactoryWrapper
Returns:
See Also:
iMeshFactoryWrapper.queryObject()

getMeshObjectFactory

public iMeshObjectFactory getMeshObjectFactory()
Description copied from interface: iMeshFactoryWrapper
Get the iMeshObjectFactory.

Specified by:
getMeshObjectFactory in interface iMeshFactoryWrapper
Returns:
See Also:
iMeshFactoryWrapper.getMeshObjectFactory()

setMeshObjectFactory

public void setMeshObjectFactory(iMeshObjectFactory fact)
Description copied from interface: iMeshFactoryWrapper
Set the mesh object factory.

Specified by:
setMeshObjectFactory in interface iMeshFactoryWrapper
Parameters:
fact -
See Also:
iMeshFactoryWrapper.setMeshObjectFactory(crystalspace.jbind.interfaces.imesh.object.iMeshObjectFactory)

hardTransform

public void hardTransform(csReversibleTransform t)
Description copied from interface: iMeshFactoryWrapper
Do a hard transform of this factory.

Specified by:
hardTransform in interface iMeshFactoryWrapper
Parameters:
t -
See Also:
iMeshFactoryWrapper.hardTransform(crystalspace.jbind.impl.csgeom.transfrm.csReversibleTransform)

createMeshWrapper

public iMeshWrapper createMeshWrapper()
Description copied from interface: iMeshFactoryWrapper
Create mesh objects from this factory.

Specified by:
createMeshWrapper in interface iMeshFactoryWrapper
Returns:
See Also:
iMeshFactoryWrapper.createMeshWrapper()

getParentContainer

public iMeshFactoryWrapper getParentContainer()
Description copied from interface: iMeshFactoryWrapper
Get the parent of this factory.

Specified by:
getParentContainer in interface iMeshFactoryWrapper
Returns:
See Also:
iMeshFactoryWrapper.getParentContainer()

setParentContainer

public void setParentContainer(iMeshFactoryWrapper p)
Description copied from interface: iMeshFactoryWrapper
Set the parent of this factory.

Specified by:
setParentContainer in interface iMeshFactoryWrapper
Parameters:
p -
See Also:
iMeshFactoryWrapper.setParentContainer(crystalspace.jbind.interfaces.iengine.mesh.iMeshFactoryWrapper)

getChildren

public iMeshFactoryList getChildren()
Description copied from interface: iMeshFactoryWrapper
Get all the children of this mesh factory.

Specified by:
getChildren in interface iMeshFactoryWrapper
Returns:
See Also:
iMeshFactoryWrapper.getChildren()

getTransform

public csReversibleTransform getTransform()
Description copied from interface: iMeshFactoryWrapper
Get optional relative transform (relative to parent).

Specified by:
getTransform in interface iMeshFactoryWrapper
Returns:
See Also:
iMeshFactoryWrapper.getTransform()

setTransform

public void setTransform(csReversibleTransform tr)
Description copied from interface: iMeshFactoryWrapper
Set optional relative transform (relative to parent).

Specified by:
setTransform in interface iMeshFactoryWrapper
Parameters:
tr -
See Also:
iMeshFactoryWrapper.setTransform(crystalspace.jbind.impl.csgeom.transfrm.csReversibleTransform)

createStaticLODC

public iLODControl createStaticLODC()
Description copied from interface: iMeshFactoryWrapper
Create a LOD control template for this factory.

Specified by:
createStaticLODC in interface iMeshFactoryWrapper
Returns:
See Also:
iMeshFactoryWrapper.createStaticLODC()

destroyStaticLOD

public void destroyStaticLOD()
Description copied from interface: iMeshFactoryWrapper
Destroy the LOD control for this factory.

Specified by:
destroyStaticLOD in interface iMeshFactoryWrapper
See Also:
iMeshFactoryWrapper.destroyStaticLOD()

getStaticLODC

public iLODControl getStaticLODC()
Description copied from interface: iMeshFactoryWrapper
Get the LOD control for this factory.

Specified by:
getStaticLODC in interface iMeshFactoryWrapper
Returns:
See Also:
iMeshFactoryWrapper.getStaticLODC()

setStaticLOD

public void setStaticLOD(float m,
                         float a)
Description copied from interface: iMeshFactoryWrapper
Set the LOD function parameters for this factory.

Specified by:
setStaticLOD in interface iMeshFactoryWrapper
Parameters:
m -
a -
See Also:
iMeshFactoryWrapper.setStaticLOD(float, float)

getStaticLOD

public float[] getStaticLOD()
Description copied from interface: iMeshFactoryWrapper
Get the LOD function parameters for this factory.

Specified by:
getStaticLOD in interface iMeshFactoryWrapper
Returns:
See Also:
iMeshFactoryWrapper.getStaticLOD()

addFactoryToStaticLOD

public void addFactoryToStaticLOD(int lod,
                                  iMeshFactoryWrapper fact)
Description copied from interface: iMeshFactoryWrapper
Set a given child factory at a specific lod level.

Specified by:
addFactoryToStaticLOD in interface iMeshFactoryWrapper
Parameters:
lod -
fact -
See Also:
iMeshFactoryWrapper.addFactoryToStaticLOD(int, crystalspace.jbind.interfaces.iengine.mesh.iMeshFactoryWrapper)

removeFactoryFromStaticLOD

public void removeFactoryFromStaticLOD(iMeshFactoryWrapper fact)
Description copied from interface: iMeshFactoryWrapper
Remove a child factory from all lod levels.

Specified by:
removeFactoryFromStaticLOD in interface iMeshFactoryWrapper
Parameters:
fact -
See Also:
iMeshFactoryWrapper.removeFactoryFromStaticLOD(crystalspace.jbind.interfaces.iengine.mesh.iMeshFactoryWrapper)