|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object crystalspace.jbind.impl.csNativeObject crystalspace.jbind.impl.csutil.scf.csBase crystalspace.jbind.impl.mesh.thing.csThingFactoryState
Field Summary |
Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
Constructor Summary | |
csThingFactoryState(iPointer nPointer)
|
Method Summary | |
int |
addEmptyPolygon()
Add an empty polygon. |
int |
addInsideBox(csVector3 bmin,
csVector3 bmax)
Add a box that can be seen from the inside. |
int |
addOutsideBox(csVector3 bmin,
csVector3 bmax)
Add a box that can be seen from the outside. |
int |
addPolygon(csVector3[] vertices,
int num)
Add a general polygon. |
void |
addPolygonVertex(csPolygonRange range,
csVector3 vt)
Add a vertex to all polygons in the given range. |
void |
addPolygonVertex(csPolygonRange range,
int vt)
Add a vertex index to all polygons in the given range. |
int |
addQuad(csVector3 v1,
csVector3 v2,
csVector3 v3,
csVector3 v4)
Add a quad. |
int |
addTriangle(csVector3 v1,
csVector3 v2,
csVector3 v3)
Add a triangle. |
void |
compressVertices()
Compress the vertex table so that all nearly identical vertices are compressed. |
iPolygonHandle |
createPolygonHandle(int polygon_idx)
Create a polygon handle that can be used to refer to some polygon. |
int |
createVertex(csVector3 vt)
Create a vertex given his object-space coords and return his index. |
void |
deleteVertex(int idx)
Delete a vertex. |
void |
deleteVertices(int from,
int to)
Delete a range of vertices (inclusive);. |
int |
findPolygonByName(java.lang.String name)
Find a polygon index with a name. |
float |
getCosinusFactor()
Get cosinus factor. |
csFlags |
getFlags()
Set thing flags (see CS_THING_... values above);. |
static java.lang.Class |
getInterfaceClass()
|
static java.lang.String |
getInterfaceName()
|
static int |
getInterfaceVersion()
|
java.lang.String |
getName()
Return the name of the interface |
csVector3[] |
getNormals()
Gets the normals. |
int |
getPolygonCount()
Query number of polygons in this thing. |
csFlags |
getPolygonFlags(int polygon_idx)
Get the flags of the specified polygon. |
iMaterialWrapper |
getPolygonMaterial(int polygon_idx)
Get the material for the specified polygon. |
java.lang.String |
getPolygonName(int polygon_idx)
Get the name of the specified polygon. |
csPlane3 |
getPolygonObjectPlane(int polygon_idx)
Get object space plane of the specified polygon. |
void |
getPolygonTextureMapping(int polygon_idx,
csMatrix3 m,
csVector3 v)
Get the texture space information for the specified polygon. |
csVector3 |
getPolygonVertex(int polygon_idx,
int vertex_idx)
Get a vertex from a polygon. |
int |
getPolygonVertexCount(int polygon_idx)
Get number of vertices for polygon. |
int[] |
getPolygonVertexIndices(int polygon_idx)
Get table with vertex indices from polygon. |
boolean |
getSmoothingFlag()
Gets the smoothing flag. |
int |
getVersion()
Return the version of the interface |
csVector3 |
getVertex(int idx)
Get the given vertex coordinates in object space. |
int |
getVertexCount()
Query number of vertices in set. |
csVector3[] |
getVertices()
Get the vertex coordinates in object space. |
static void |
initSCF()
|
protected boolean |
isNativePointerValidSafe()
|
boolean |
isPolygonTextureMappingEnabled(int polygon_idx)
Check if texture mapping is enabled for the specified polygon. |
boolean |
isPolygonTransparent(int polygon_idx)
Return true if this polygon or the texture it uses is transparent. |
boolean |
pointOnPolygon(int polygon_idx,
csVector3 v)
Return true if an object space point is on (or very nearly on); the given polygon. |
void |
removePolygon(int idx)
Delete a polygon given an index. |
void |
removePolygons()
Delete all polygons. |
void |
resetPolygonFlags(csPolygonRange range,
int flags)
Reset the given flags to all polygons in the range. |
void |
setCosinusFactor(float cosfact)
Set cosinus factor. |
void |
setPolygonFlags(csPolygonRange range,
int flags)
Set the given flags to all polygons in the range. |
void |
setPolygonFlags(csPolygonRange range,
int mask,
int flags)
Set the given flags to all polygons in the range. |
void |
setPolygonMaterial(csPolygonRange range,
iMaterialWrapper material)
Set the material of all polygons in the given range. |
void |
setPolygonName(csPolygonRange range,
java.lang.String name)
Set the name of all polygons in the given range. |
void |
setPolygonTextureMapping(csPolygonRange range,
csMatrix3 m,
csVector3 v)
Set texture mapping of all polygons in the given range to use the transform. |
void |
setPolygonTextureMapping(csPolygonRange range,
csVector2 uv1,
csVector2 uv2,
csVector2 uv3)
Set texture mapping of all polygons in the given range to use the given uv coordinates for the first three vertices of every polygon. |
void |
setPolygonTextureMapping(csPolygonRange range,
csVector3 p1,
csVector2 uv1,
csVector3 p2,
csVector2 uv2,
csVector3 p3,
csVector2 uv3)
Set texture mapping of all polygons in the given range to use the given uv coordinates for the specified three vertices of every polygon. |
void |
setPolygonTextureMapping(csPolygonRange range,
csVector3 v_orig,
csVector3 v1,
float len1)
Set texture mapping of all polygons in the given range to use the texture mapping as specified by two vertices on the polygon. |
void |
setPolygonTextureMapping(csPolygonRange range,
csVector3 v_orig,
csVector3 v1,
float len1,
csVector3 v2,
float len2)
Set texture mapping of all polygons in the given range to use the texture mapping as specified by two vertices on the polygon. |
void |
setPolygonTextureMapping(csPolygonRange range,
float len1)
Set texture mapping of all polygons in the given range to use the texture mapping as specified by the two first vertices on the polygon. |
void |
setPolygonTextureMappingEnabled(csPolygonRange range,
boolean enabled)
Disable or enable texture mapping for the range of polygons. |
void |
setPolygonVertexIndices(csPolygonRange range,
int num,
int[] indices)
Set the given polygon index table for all polygons in the given range. |
void |
setSmoothingFlag(boolean smoothing)
Sets the smoothing flag. |
void |
setVertex(int idx,
csVector3 vt)
Set the object space vertices for a given vertex. |
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 csThingFactoryState(iPointer nPointer)
nPointer
- Method Detail |
public int getVersion()
iBase
getVersion
in interface iBase
getVersion
in class csBase
public java.lang.String getName()
iBase
getName
in interface iBase
getName
in class csBase
public static void initSCF()
public int addInsideBox(csVector3 bmin, csVector3 bmax)
iThingFactoryState
addInsideBox
in interface iThingFactoryState
bmin
- bmax
-
public void setPolygonMaterial(csPolygonRange range, iMaterialWrapper material)
iThingFactoryState
setPolygonMaterial
in interface iThingFactoryState
range
- material
- public void setPolygonTextureMapping(csPolygonRange range, float len1)
iThingFactoryState
setPolygonTextureMapping
in interface iThingFactoryState
range
- len1
- public static int getInterfaceVersion()
public static java.lang.String getInterfaceName()
public static java.lang.Class getInterfaceClass()
protected boolean isNativePointerValidSafe()
public int addEmptyPolygon()
iThingFactoryState
addEmptyPolygon
in interface iThingFactoryState
iThingFactoryState.addEmptyPolygon()
public int addOutsideBox(csVector3 bmin, csVector3 bmax)
iThingFactoryState
addOutsideBox
in interface iThingFactoryState
bmin
- bmax
-
iThingFactoryState.addOutsideBox(crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3)
public int addPolygon(csVector3[] vertices, int num)
iThingFactoryState
addPolygon
in interface iThingFactoryState
vertices
- num
-
iThingFactoryState.addPolygon(crystalspace.jbind.impl.csgeom.vector3.csVector3[], int)
public void addPolygonVertex(csPolygonRange range, csVector3 vt)
iThingFactoryState
addPolygonVertex
in interface iThingFactoryState
range
- vt
- crystalspace.jbind.interfaces.imesh.thing.iThingFactoryState#addPolygonVertex(crystalspace.jbind.impl.engine.mesh.thing.csPolygonRange, crystalspace.jbind.impl.csgeom.vector3.csVector3)
public void addPolygonVertex(csPolygonRange range, int vt)
iThingFactoryState
addPolygonVertex
in interface iThingFactoryState
range
- vt
- crystalspace.jbind.interfaces.imesh.thing.iThingFactoryState#addPolygonVertex(crystalspace.jbind.impl.engine.mesh.thing.csPolygonRange, int)
public int addQuad(csVector3 v1, csVector3 v2, csVector3 v3, csVector3 v4)
iThingFactoryState
addQuad
in interface iThingFactoryState
v1
- v2
- v3
- v4
-
iThingFactoryState.addQuad(crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3)
public int addTriangle(csVector3 v1, csVector3 v2, csVector3 v3)
iThingFactoryState
addTriangle
in interface iThingFactoryState
v1
- v2
- v3
-
iThingFactoryState.addTriangle(crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3)
public void compressVertices()
iThingFactoryState
compressVertices
in interface iThingFactoryState
iThingFactoryState.compressVertices()
public iPolygonHandle createPolygonHandle(int polygon_idx)
iThingFactoryState
createPolygonHandle
in interface iThingFactoryState
polygon_idx
-
iThingFactoryState.createPolygonHandle(int)
public int createVertex(csVector3 vt)
iThingFactoryState
createVertex
in interface iThingFactoryState
vt
-
iThingFactoryState.createVertex(crystalspace.jbind.impl.csgeom.vector3.csVector3)
public void deleteVertex(int idx)
iThingFactoryState
deleteVertex
in interface iThingFactoryState
idx
- iThingFactoryState.deleteVertex(int)
public void deleteVertices(int from, int to)
iThingFactoryState
deleteVertices
in interface iThingFactoryState
from
- to
- iThingFactoryState.deleteVertices(int, int)
public int findPolygonByName(java.lang.String name)
iThingFactoryState
findPolygonByName
in interface iThingFactoryState
name
-
iThingFactoryState.findPolygonByName(java.lang.String)
public float getCosinusFactor()
iThingFactoryState
getCosinusFactor
in interface iThingFactoryState
iThingFactoryState.getCosinusFactor()
public csFlags getFlags()
iThingFactoryState
getFlags
in interface iThingFactoryState
iThingFactoryState.getFlags()
public csVector3[] getNormals()
iThingFactoryState
getNormals
in interface iThingFactoryState
iThingFactoryState.getNormals()
public int getPolygonCount()
iThingFactoryState
getPolygonCount
in interface iThingFactoryState
iThingFactoryState.getPolygonCount()
public csFlags getPolygonFlags(int polygon_idx)
iThingFactoryState
getPolygonFlags
in interface iThingFactoryState
polygon_idx
-
iThingFactoryState.getPolygonFlags(int)
public iMaterialWrapper getPolygonMaterial(int polygon_idx)
iThingFactoryState
getPolygonMaterial
in interface iThingFactoryState
polygon_idx
-
iThingFactoryState.getPolygonMaterial(int)
public java.lang.String getPolygonName(int polygon_idx)
iThingFactoryState
getPolygonName
in interface iThingFactoryState
polygon_idx
-
iThingFactoryState.getPolygonName(int)
public csPlane3 getPolygonObjectPlane(int polygon_idx)
iThingFactoryState
getPolygonObjectPlane
in interface iThingFactoryState
polygon_idx
-
iThingFactoryState.getPolygonObjectPlane(int)
public void getPolygonTextureMapping(int polygon_idx, csMatrix3 m, csVector3 v)
iThingFactoryState
getPolygonTextureMapping
in interface iThingFactoryState
polygon_idx
- m
- v
- iThingFactoryState.getPolygonTextureMapping(int, crystalspace.jbind.impl.csgeom.matrix3.csMatrix3, crystalspace.jbind.impl.csgeom.vector3.csVector3)
public csVector3 getPolygonVertex(int polygon_idx, int vertex_idx)
iThingFactoryState
getPolygonVertex
in interface iThingFactoryState
polygon_idx
- vertex_idx
-
iThingFactoryState.getPolygonVertex(int, int)
public int getPolygonVertexCount(int polygon_idx)
iThingFactoryState
getPolygonVertexCount
in interface iThingFactoryState
polygon_idx
-
iThingFactoryState.getPolygonVertexCount(int)
public int[] getPolygonVertexIndices(int polygon_idx)
iThingFactoryState
getPolygonVertexIndices
in interface iThingFactoryState
polygon_idx
-
iThingFactoryState.getPolygonVertexIndices(int)
public boolean getSmoothingFlag()
iThingFactoryState
getSmoothingFlag
in interface iThingFactoryState
iThingFactoryState.getSmoothingFlag()
public csVector3 getVertex(int idx)
iThingFactoryState
getVertex
in interface iThingFactoryState
idx
-
iThingFactoryState.getVertex(int)
public int getVertexCount()
iThingFactoryState
getVertexCount
in interface iThingFactoryState
iThingFactoryState.getVertexCount()
public csVector3[] getVertices()
iThingFactoryState
getVertices
in interface iThingFactoryState
iThingFactoryState.getVertices()
public boolean isPolygonTextureMappingEnabled(int polygon_idx)
iThingFactoryState
isPolygonTextureMappingEnabled
in interface iThingFactoryState
polygon_idx
-
iThingFactoryState.isPolygonTextureMappingEnabled(int)
public boolean isPolygonTransparent(int polygon_idx)
iThingFactoryState
isPolygonTransparent
in interface iThingFactoryState
polygon_idx
-
iThingFactoryState.isPolygonTransparent(int)
public boolean pointOnPolygon(int polygon_idx, csVector3 v)
iThingFactoryState
pointOnPolygon
in interface iThingFactoryState
polygon_idx
- v
-
iThingFactoryState.pointOnPolygon(int, crystalspace.jbind.impl.csgeom.vector3.csVector3)
public void removePolygon(int idx)
iThingFactoryState
removePolygon
in interface iThingFactoryState
idx
- iThingFactoryState.removePolygon(int)
public void removePolygons()
iThingFactoryState
removePolygons
in interface iThingFactoryState
iThingFactoryState.removePolygons()
public void resetPolygonFlags(csPolygonRange range, int flags)
iThingFactoryState
resetPolygonFlags
in interface iThingFactoryState
range
- flags
- crystalspace.jbind.interfaces.imesh.thing.iThingFactoryState#resetPolygonFlags(crystalspace.jbind.impl.engine.mesh.thing.csPolygonRange, int)
public void setCosinusFactor(float cosfact)
iThingFactoryState
setCosinusFactor
in interface iThingFactoryState
cosfact
- iThingFactoryState.setCosinusFactor(float)
public void setPolygonFlags(csPolygonRange range, int mask, int flags)
iThingFactoryState
setPolygonFlags
in interface iThingFactoryState
range
- mask
- flags
- crystalspace.jbind.interfaces.imesh.thing.iThingFactoryState#setPolygonFlags(crystalspace.jbind.impl.engine.mesh.thing.csPolygonRange, int, int)
public void setPolygonFlags(csPolygonRange range, int flags)
iThingFactoryState
setPolygonFlags
in interface iThingFactoryState
range
- flags
- crystalspace.jbind.interfaces.imesh.thing.iThingFactoryState#setPolygonFlags(crystalspace.jbind.impl.engine.mesh.thing.csPolygonRange, int)
public void setPolygonName(csPolygonRange range, java.lang.String name)
iThingFactoryState
setPolygonName
in interface iThingFactoryState
range
- name
- crystalspace.jbind.interfaces.imesh.thing.iThingFactoryState#setPolygonName(crystalspace.jbind.impl.engine.mesh.thing.csPolygonRange, java.lang.String)
public void setPolygonTextureMapping(csPolygonRange range, csMatrix3 m, csVector3 v)
iThingFactoryState
setPolygonTextureMapping
in interface iThingFactoryState
range
- m
- v
- crystalspace.jbind.interfaces.imesh.thing.iThingFactoryState#setPolygonTextureMapping(crystalspace.jbind.impl.engine.mesh.thing.csPolygonRange, crystalspace.jbind.impl.csgeom.matrix3.csMatrix3, crystalspace.jbind.impl.csgeom.vector3.csVector3)
public void setPolygonTextureMapping(csPolygonRange range, csVector2 uv1, csVector2 uv2, csVector2 uv3)
iThingFactoryState
setPolygonTextureMapping
in interface iThingFactoryState
range
- uv1
- uv2
- uv3
- crystalspace.jbind.interfaces.imesh.thing.iThingFactoryState#setPolygonTextureMapping(crystalspace.jbind.impl.engine.mesh.thing.csPolygonRange, crystalspace.jbind.impl.csgeom.vector2.csVector2, crystalspace.jbind.impl.csgeom.vector2.csVector2, crystalspace.jbind.impl.csgeom.vector2.csVector2)
public void setPolygonTextureMapping(csPolygonRange range, csVector3 p1, csVector2 uv1, csVector3 p2, csVector2 uv2, csVector3 p3, csVector2 uv3)
iThingFactoryState
setPolygonTextureMapping
in interface iThingFactoryState
range
- p1
- uv1
- p2
- uv2
- p3
- uv3
- crystalspace.jbind.interfaces.imesh.thing.iThingFactoryState#setPolygonTextureMapping(crystalspace.jbind.impl.engine.mesh.thing.csPolygonRange, crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector2.csVector2, crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector2.csVector2, crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector2.csVector2)
public void setPolygonTextureMapping(csPolygonRange range, csVector3 v_orig, csVector3 v1, float len1, csVector3 v2, float len2)
iThingFactoryState
setPolygonTextureMapping
in interface iThingFactoryState
range
- v_orig
- v1
- len1
- v2
- len2
- crystalspace.jbind.interfaces.imesh.thing.iThingFactoryState#setPolygonTextureMapping(crystalspace.jbind.impl.engine.mesh.thing.csPolygonRange, crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, float, crystalspace.jbind.impl.csgeom.vector3.csVector3, float)
public void setPolygonTextureMapping(csPolygonRange range, csVector3 v_orig, csVector3 v1, float len1)
iThingFactoryState
setPolygonTextureMapping
in interface iThingFactoryState
range
- v_orig
- v1
- len1
- crystalspace.jbind.interfaces.imesh.thing.iThingFactoryState#setPolygonTextureMapping(crystalspace.jbind.impl.engine.mesh.thing.csPolygonRange, crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, float)
public void setPolygonTextureMappingEnabled(csPolygonRange range, boolean enabled)
iThingFactoryState
setPolygonTextureMappingEnabled
in interface iThingFactoryState
range
- enabled
- crystalspace.jbind.interfaces.imesh.thing.iThingFactoryState#setPolygonTextureMappingEnabled(crystalspace.jbind.impl.engine.mesh.thing.csPolygonRange, boolean)
public void setPolygonVertexIndices(csPolygonRange range, int num, int[] indices)
iThingFactoryState
setPolygonVertexIndices
in interface iThingFactoryState
range
- num
- indices
- crystalspace.jbind.interfaces.imesh.thing.iThingFactoryState#setPolygonVertexIndices(crystalspace.jbind.impl.engine.mesh.thing.csPolygonRange, int, int[])
public void setSmoothingFlag(boolean smoothing)
iThingFactoryState
setSmoothingFlag
in interface iThingFactoryState
smoothing
- iThingFactoryState.setSmoothingFlag(boolean)
public void setVertex(int idx, csVector3 vt)
iThingFactoryState
setVertex
in interface iThingFactoryState
idx
- vt
- iThingFactoryState.setVertex(int, crystalspace.jbind.impl.csgeom.vector3.csVector3)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |