crystalspace.jbind.interfaces.iengine.mesh
Interface iMeshFactoryWrapper

All Superinterfaces:
iBase, iPointer
All Known Implementing Classes:
csMeshFactoryWrapper

public interface iMeshFactoryWrapper
extends iBase

A mesh factory wrapper is an engine-level object that wraps around a mesh object factory.

Author:
Quentin Anciaux
See Also:
iMeshObjectFactory

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.
 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).
 void hardTransform(csReversibleTransform t)
          Do a hard transform of this factory.
 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 interface crystalspace.jbind.interfaces.iutil.scf.iBase
decRef, getName, getRefCount, getVersion, incRef, queryInterface, queryInterfaceSafe
 
Methods inherited from interface crystalspace.jbind.interfaces.iPointer
changePointer, getPointer, isMemoryOwner, setMemoryOwner
 

Method Detail

queryObject

public iObject queryObject()
Get the iObject for this mesh factory.

Returns:

getMeshObjectFactory

public iMeshObjectFactory getMeshObjectFactory()
Get the iMeshObjectFactory.

Returns:

setMeshObjectFactory

public void setMeshObjectFactory(iMeshObjectFactory fact)
Set the mesh object factory.

Parameters:
fact -

hardTransform

public void hardTransform(csReversibleTransform t)
Do a hard transform of this factory.

Parameters:
t -

createMeshWrapper

public iMeshWrapper createMeshWrapper()
Create mesh objects from this factory.

Returns:

getParentContainer

public iMeshFactoryWrapper getParentContainer()
Get the parent of this factory.

Returns:

setParentContainer

public void setParentContainer(iMeshFactoryWrapper p)
Set the parent of this factory.

Parameters:
p -

getChildren

public iMeshFactoryList getChildren()
Get all the children of this mesh factory.

Returns:

getTransform

public csReversibleTransform getTransform()
Get optional relative transform (relative to parent).

Returns:

setTransform

public void setTransform(csReversibleTransform tr)
Set optional relative transform (relative to parent).

Parameters:
tr -

createStaticLODC

public iLODControl createStaticLODC()
Create a LOD control template for this factory.

Returns:

destroyStaticLOD

public void destroyStaticLOD()
Destroy the LOD control for this factory.


getStaticLODC

public iLODControl getStaticLODC()
Get the LOD control for this factory.

Returns:

setStaticLOD

public void setStaticLOD(float m,
                         float a)
Set the LOD function parameters for this factory.

Parameters:
m -
a -

getStaticLOD

public float[] getStaticLOD()
Get the LOD function parameters for this factory.

Returns:

addFactoryToStaticLOD

public void addFactoryToStaticLOD(int lod,
                                  iMeshFactoryWrapper fact)
Set a given child factory at a specific lod level.

Parameters:
lod -
fact -

removeFactoryFromStaticLOD

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

Parameters:
fact -