|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the state interface to access the internals of a thing mesh object.
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. |
int |
getMixMode()
Get mix mode. |
int |
getMovingOption()
Get the moving option. |
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. |
csVector3 |
getVertexW(int idx)
Get the given vertex coordinates in world space. |
csVector3[] |
getVerticesW()
Get the vertex coordinates in world space. |
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 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 |
public void clearReplacedMaterials()
public iPolygonHandle createPolygonHandle(int polygon_idx)
polygon_idx
-
public iThingFactoryState getFactory()
public int getMixMode()
public int getMovingOption()
public iMaterialWrapper getPolygonMaterial(int polygon_idx)
polygon_idx
-
public csPlane3 getPolygonWorldPlane(int polygon_idx)
polygon_idx
-
public csVector3 getVertexW(int idx)
idx
-
public csVector3[] getVerticesW()
public void prepare()
public void replaceMaterial(iMaterialWrapper oldmat, iMaterialWrapper newmat)
oldmat
- newmat
- public void setMixMode(int mode)
mode
- public void setMovingOption(int opt)
opt
- public void setPolygonMaterial(csPolygonRange range, iMaterialWrapper material)
range
- material
- public void unprepare()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |