|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcrystalspace.jbind.impl.csNativeObject
crystalspace.jbind.impl.csutil.scf.csBase
crystalspace.jbind.impl.mesh.thing.csThingState
| Field Summary |
| Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
| Constructor Summary | |
csThingState(iPointer nPointer)
|
|
| Method Summary | |
void |
clearReplacedMaterials()
Clear all replaced materials (i.e. reset to default materials from factory). |
iPolygonHandle |
createPolygonHandle(int polygon_idx)
Create a polygon handle that can be used to refer to some polygon. |
iThingFactoryState |
getFactory()
Get the factory. |
static java.lang.Class |
getInterfaceClass()
|
static java.lang.String |
getInterfaceName()
|
static int |
getInterfaceVersion()
|
int |
getMixMode()
Get mix mode. |
int |
getMovingOption()
Get the moving option. |
java.lang.String |
getName()
Return the name of the interface |
iMaterialWrapper |
getPolygonMaterial(int polygon_idx)
Get the material for the specified polygon. |
csPlane3 |
getPolygonWorldPlane(int polygon_idx)
Get world space plane of the specified polygon. |
int |
getVersion()
Return the version of the interface |
csVector3 |
getVertexW(int idx)
Get the given vertex coordinates in world space. |
csVector3[] |
getVerticesW()
Get the vertex coordinates in world space. |
static void |
initSCF()
|
protected boolean |
isNativePointerValidSafe()
|
void |
prepare()
Prepare the thing to be ready for use. |
void |
replaceMaterial(iMaterialWrapper oldmat,
iMaterialWrapper newmat)
Scan all polygons and replace the given material with a new material. |
void |
setMixMode(int mode)
Set mix mode. |
void |
setMovingOption(int opt)
Control how this thing will be moved. |
void |
setPolygonMaterial(csPolygonRange range,
iMaterialWrapper material)
Set the material of all polygons in the given range. |
void |
unprepare()
Reset the prepare flag so that this Thing can be re-prepared. |
| 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, isNativePointerValidSafe, 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 |
public csThingState(iPointer nPointer)
nPointer - | Method Detail |
public int getVersion()
iBase
getVersion in interface iBasegetVersion in class csBasepublic java.lang.String getName()
iBase
getName in interface iBasegetName in class csBasepublic static void initSCF()
public iThingFactoryState getFactory()
iThingState
getFactory in interface iThingStatepublic static int getInterfaceVersion()
public static java.lang.String getInterfaceName()
public static java.lang.Class getInterfaceClass()
protected boolean isNativePointerValidSafe()
public void clearReplacedMaterials()
iThingState
clearReplacedMaterials in interface iThingStateiThingState.clearReplacedMaterials()public iPolygonHandle createPolygonHandle(int polygon_idx)
iThingState
createPolygonHandle in interface iThingStatepolygon_idx -
iThingState.createPolygonHandle(int)public int getMixMode()
iThingState
getMixMode in interface iThingStateiThingState.getMixMode()public int getMovingOption()
iThingState
getMovingOption in interface iThingStateiThingState.getMovingOption()public iMaterialWrapper getPolygonMaterial(int polygon_idx)
iThingState
getPolygonMaterial in interface iThingStatepolygon_idx -
iThingState.getPolygonMaterial(int)public csPlane3 getPolygonWorldPlane(int polygon_idx)
iThingState
getPolygonWorldPlane in interface iThingStatepolygon_idx -
iThingState.getPolygonWorldPlane(int)public csVector3 getVertexW(int idx)
iThingState
getVertexW in interface iThingStateidx -
iThingState.getVertexW(int)public csVector3[] getVerticesW()
iThingState
getVerticesW in interface iThingStateiThingState.getVerticesW()public void prepare()
iThingState
prepare in interface iThingStateiThingState.prepare()
public void replaceMaterial(iMaterialWrapper oldmat,
iMaterialWrapper newmat)
iThingState
replaceMaterial in interface iThingStateoldmat - newmat - iThingState.replaceMaterial(crystalspace.jbind.interfaces.iengine.material.iMaterialWrapper, crystalspace.jbind.interfaces.iengine.material.iMaterialWrapper)public void setMixMode(int mode)
iThingState
setMixMode in interface iThingStatemode - iThingState.setMixMode(int)public void setMovingOption(int opt)
iThingState
setMovingOption in interface iThingStateopt - iThingState.setMovingOption(int)
public void setPolygonMaterial(csPolygonRange range,
iMaterialWrapper material)
iThingState
setPolygonMaterial in interface iThingStaterange - material - crystalspace.jbind.interfaces.imesh.thing.iThingState#setPolygonMaterial(crystalspace.jbind.impl.engine.mesh.thing.csPolygonRange, crystalspace.jbind.interfaces.iengine.material.iMaterialWrapper)public void unprepare()
iThingState
unprepare in interface iThingStateiThingState.unprepare()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||