crystalspace.jbind.impl.engine.viscul
Class csVisibilityObject

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csutil.scf.csBase
          extended bycrystalspace.jbind.impl.engine.viscul.csVisibilityObject
All Implemented Interfaces:
iBase, iPointer, iVisibilityObject

public class csVisibilityObject
extends csBase
implements iVisibilityObject

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csVisibilityObject(iPointer nPointer)
           
 
Method Summary
 csFlags getCullerFlags()
          Get flags for this object.
 iMeshWrapper getMeshWrapper()
          Get the reference to the mesh wrapper from this object.
 iMovable getMovable()
          Get the reference to the movable from this object.
 java.lang.String getName()
          Return the name of the interface
 iObjectModel getObjectModel()
          Get the object model corresponding with this object.
 int getVersion()
          Return the version of the interface
 int getVisibilityNumber()
          Get the visibility number.
protected  boolean isNativePointerValidSafe(long pointer)
           
 void setVisibilityNumber(int visnr)
          Set the visibility number for this object.
 
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

csVisibilityObject

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

getCullerFlags

public csFlags getCullerFlags()
Description copied from interface: iVisibilityObject
Get flags for this object. This is a combination of zero or more of the following flags. See the documentation with these flags for more info: CS_CULLER_HINT_GOODOCCLUDER CS_CULLER_HINT_BADOCCLUDER Implemented in csMeshWrapper.

Specified by:
getCullerFlags in interface iVisibilityObject
Returns:
See Also:
iVisibilityObject.getCullerFlags()

getMeshWrapper

public iMeshWrapper getMeshWrapper()
Description copied from interface: iVisibilityObject
Get the reference to the mesh wrapper from this object. Implemented in csMeshWrapper.

Specified by:
getMeshWrapper in interface iVisibilityObject
Returns:
See Also:
iVisibilityObject.getMeshWrapper()

getMovable

public iMovable getMovable()
Description copied from interface: iVisibilityObject
Get the reference to the movable from this object. Implemented in csMeshWrapper.

Specified by:
getMovable in interface iVisibilityObject
Returns:
See Also:
iVisibilityObject.getMovable()

getObjectModel

public iObjectModel getObjectModel()
Description copied from interface: iVisibilityObject
Get the object model corresponding with this object. Implemented in csMeshWrapper.

Specified by:
getObjectModel in interface iVisibilityObject
Returns:
See Also:
iVisibilityObject.getObjectModel()

getVisibilityNumber

public int getVisibilityNumber()
Description copied from interface: iVisibilityObject
Get the visibility number. You can compare this with iVisibilityCuller->GetCurrentVisibilityNumber();. If equal then this object is visible. Implemented in csMeshWrapper.

Specified by:
getVisibilityNumber in interface iVisibilityObject
Returns:
See Also:
iVisibilityObject.getVisibilityNumber()

setVisibilityNumber

public void setVisibilityNumber(int visnr)
Description copied from interface: iVisibilityObject
Set the visibility number for this object. A visibility culler will set the visibility number of an object equal to the current visibility culler number if the object is visible. Implemented in csMeshWrapper.

Specified by:
setVisibilityNumber in interface iVisibilityObject
Parameters:
visnr -
See Also:
iVisibilityObject.setVisibilityNumber(int)