crystalspace.jbind.impl.engine.lod
Class csLODControl

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csutil.scf.csBase
          extended bycrystalspace.jbind.impl.engine.lod.csLODControl
All Implemented Interfaces:
iBase, iLODControl, iPointer

public class csLODControl
extends csBase
implements iLODControl

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csLODControl(iPointer nPointer)
           
 
Method Summary
 float[] getLODf()
          Get the current LOD function.
 iSharedVariable[] getLODish()
          Return the variables used by lod.
 int getLODPolygonCount(float lod)
          Get a rough estimate of the number of polygons for a given LOD value (between 0 and 1, similar to the value used by SetLOD()).
 java.lang.String getName()
          Return the name of the interface
 int getVersion()
          Return the version of the interface
protected  boolean isNativePointerValidSafe(long pointer)
           
 void setLOD(float m, float a)
          Set a parameters for a function to compute LOD for the given LOD control.
 void setLOD(iSharedVariable varm, iSharedVariable vara)
          Set LOD using variables.
 
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

csLODControl

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

setLOD

public void setLOD(float m,
                   float a)
Description copied from interface: iLODControl
Set a parameters for a function to compute LOD for the given LOD control.

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

getLODf

public float[] getLODf()
Description copied from interface: iLODControl
Get the current LOD function.

Specified by:
getLODf in interface iLODControl
Returns:
See Also:
iLODControl.getLODf()

setLOD

public void setLOD(iSharedVariable varm,
                   iSharedVariable vara)
Description copied from interface: iLODControl
Set LOD using variables.

Specified by:
setLOD in interface iLODControl
Parameters:
varm -
vara -
See Also:
iLODControl.setLOD(crystalspace.jbind.interfaces.iengine.sharevar.iSharedVariable, crystalspace.jbind.interfaces.iengine.sharevar.iSharedVariable)

getLODish

public iSharedVariable[] getLODish()
Description copied from interface: iLODControl
Return the variables used by lod.

Specified by:
getLODish in interface iLODControl
Returns:
See Also:
iLODControl.getLODish()

getLODPolygonCount

public int getLODPolygonCount(float lod)
Description copied from interface: iLODControl
Get a rough estimate of the number of polygons for a given LOD value (between 0 and 1, similar to the value used by SetLOD()).

Specified by:
getLODPolygonCount in interface iLODControl
Parameters:
lod -
Returns:
See Also:
iLODControl.getLODPolygonCount(float)