crystalspace.jbind.interfaces.imesh.thing
Interface iPolygonHandle

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

public interface iPolygonHandle
extends iBase

This is an interface that can be used to represent a polygon in situations where a SCF object is required. Create an instance of this object using iThingFactoryState->CreatePolygonHandle() or iThingState->CreatePolygonHandle(). Note that this handle will make sure that the returned pointers are cleared if the thing or thing factory happens to be removed.

Author:
Java wrapper - Quentin Anciaux, c++ version - http://crystal.sourceforge.net/docs/online/devapi/structiPolygonHandle.php

Method Summary
 int getIndex()
          Get the polygon index which this polygon handle represents.
 iMeshObject getMeshObject()
          Get the mesh object of this polygon.
 iMeshObjectFactory getMeshObjectFactory()
          Get the mesh object factory for this polygon.
 iThingFactoryState getThingFactoryState()
          Get the factory state for this polygon.
 iThingState getThingState()
          Get the instance of this polygon.
 
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

getIndex

public int getIndex()
Get the polygon index which this polygon handle represents.

Returns:

getMeshObject

public iMeshObject getMeshObject()
Get the mesh object of this polygon. This can be 0 if this polygon handle was created from a factory or if the instance was removed.

Returns:

getMeshObjectFactory

public iMeshObjectFactory getMeshObjectFactory()
Get the mesh object factory for this polygon. Or 0 if the factory is removed.

Returns:

getThingFactoryState

public iThingFactoryState getThingFactoryState()
Get the factory state for this polygon. Or 0 if the factory is removed.

Returns:

getThingState

public iThingState getThingState()
Get the instance of this polygon. This can be 0 if this polygon handle was created from a factory or if the instance was removed.

Returns: