|
|||||||||||
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.engine.mesh.csMeshWrapper
Field Summary |
Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
Constructor Summary | |
csMeshWrapper(iPointer nPointer)
|
Method Summary | |
void |
addMeshToStaticLOD(int lod,
iMeshWrapper mesh)
Set a given child mesh at a specific lod level. |
void |
castHardwareShadow(boolean castShadow)
Enable/disable hardware based shadows alltogheter. |
iLODControl |
createStaticLOD()
Create a LOD control for this mesh wrapper. |
void |
deferUpdateLighting(int flags,
int num_lights)
Update lighting as soon as the object becomes visible. |
void |
destroyStaticLOD()
Destroy the LOD control for this mesh. |
void |
draw(iRenderView rview)
Draw this mesh. |
void |
drawLight(iRenderView rview,
iLight light)
Draws the diffuse light mesh object. |
void |
drawShadow(iRenderView rview,
iLight light)
Draws the shadow buffer pass. |
iMeshList |
getChildren()
Get all the children of this mesh object. |
boolean |
getDrawAfterShadow()
Get if the meshobject is rendered after all fancy HW-shadow-stuff. |
iMeshDrawCallback |
getDrawCallback(int idx)
Get the specified draw callback. |
int |
getDrawCallbackCount()
Get the number of draw callbacks. |
iMeshFactoryWrapper |
getFactory()
Get the parent factory. |
csFlags |
getFlags()
Get flags for this meshwrapper. |
static java.lang.Class |
getInterfaceClass()
|
static java.lang.String |
getInterfaceName()
|
static int |
getInterfaceVersion()
|
iLightingInfo |
getLightingInfo()
Get the optional lighting information that is implemented by this mesh object. |
iMeshObject |
getMeshObject()
Get the iMeshObject. |
iMovable |
getMovable()
Get the movable instance for this object. |
java.lang.String |
getName()
Return the name of the interface |
iMeshWrapper |
getParentContainer()
Get the parent of this mesh. |
iPortalContainer |
getPortalContainer()
If this mesh is a portal container you can use GetPortalContainer() to get the portal container interface. |
void |
getRadius(csVector3 rad,
csVector3 cent)
Get the radius of this mesh and all its children. |
csRenderMesh[] |
getRenderMeshes(int n)
Returns the render mesh. |
long |
getRenderPriority()
Get the render priority. |
float |
getScreenBoundingBox(iCamera camera,
csBox2 sbox,
csBox3 cbox)
Get a very inaccurate bounding box of the object in screen space. |
iShadowReceiver |
getShadowReceiver()
Get the optional shadow receiver that is implemented by this mesh object. |
iLODControl |
getStaticLOD()
Get the LOD control for this mesh. |
void |
getTransformedBoundingBox(csReversibleTransform trans,
csBox3 cbox)
Get the bounding box of this object after applying a transformation to it. |
int |
getVersion()
Return the version of the interface |
int |
getVisibilityNumber()
Optimization to avoid having to do SCF_QUERY_INTERFACE for iVisibilityObject. |
void |
getWorldBoundingBox(csBox3 cbox)
Get the bounding box of this object in world space. |
int |
getZBufMode()
Get the Z-buf drawing mode. |
void |
hardTransform(csReversibleTransform t)
Do a hard transform of this object. |
boolean |
hitBeam(csVector3 start,
csVector3 end,
csVector3 isect,
float pr)
Check if this object is hit by this world space vector. |
boolean |
hitBeamBBox(csVector3 start,
csVector3 end,
csVector3 isect,
float pr)
Check if this mesh is hit by this object space vector. |
boolean |
hitBeamObject(csVector3 start,
csVector3 end,
csVector3 isect,
float pr)
Check if this object is hit by this object space vector. |
boolean |
hitBeamObject(csVector3 start,
csVector3 end,
csVector3 isect,
float pr,
int polygon_idx)
Check if this object is hit by this object space vector. |
boolean |
hitBeamOutline(csVector3 start,
csVector3 end,
csVector3 isect,
float pr)
Check if this object is hit by this object space vector. |
static void |
initSCF()
|
protected boolean |
isNativePointerValidSafe()
|
void |
placeMesh()
This routine will find out in which sectors a mesh object is positioned. |
iObject |
queryObject()
Get the iObject for this mesh object. |
void |
removeDrawCallback(iMeshDrawCallback cb)
Remove a draw callback. |
void |
removeMeshFromStaticLOD(iMeshWrapper mesh)
Remove a child mesh from all lod levels. |
void |
setDrawAfterShadow(boolean drawAfter)
Sets so that the meshobject is rendered after all fancy HW-shadow-stuff. |
void |
setDrawCallback(iMeshDrawCallback cb)
Set a callback which is called just before the object is drawn. |
void |
setFactory(iMeshFactoryWrapper factory)
Set the parent factory (this only sets a pointer). |
void |
setMeshObject(iMeshObject obj)
Set the iMeshObject. |
void |
setParentContainer(iMeshWrapper obj)
Set the parent of this mesh. |
void |
setRenderPriority(long rp)
The renderer will render all objects in a sector based on this number. |
void |
setZBufMode(int mode)
Set the Z-buf drawing mode to use for this object. |
void |
updateLighting(iLight[] lights,
int num_lights)
Light object according to the given array of lights (i.e. |
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 csMeshWrapper(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 iMeshObject getMeshObject()
iMeshWrapper
getMeshObject
in interface iMeshWrapper
public static int getInterfaceVersion()
public static java.lang.String getInterfaceName()
public static java.lang.Class getInterfaceClass()
protected boolean isNativePointerValidSafe()
public void addMeshToStaticLOD(int lod, iMeshWrapper mesh)
iMeshWrapper
addMeshToStaticLOD
in interface iMeshWrapper
lod
- mesh
- iMeshWrapper.addMeshToStaticLOD(int, crystalspace.jbind.interfaces.iengine.mesh.iMeshWrapper)
public void castHardwareShadow(boolean castShadow)
iMeshWrapper
castHardwareShadow
in interface iMeshWrapper
castShadow
- iMeshWrapper.castHardwareShadow(boolean)
public iLODControl createStaticLOD()
iMeshWrapper
createStaticLOD
in interface iMeshWrapper
iMeshWrapper.createStaticLOD()
public void deferUpdateLighting(int flags, int num_lights)
iMeshWrapper
deferUpdateLighting
in interface iMeshWrapper
flags
- num_lights
- iMeshWrapper.deferUpdateLighting(int, int)
public void destroyStaticLOD()
iMeshWrapper
destroyStaticLOD
in interface iMeshWrapper
iMeshWrapper.destroyStaticLOD()
public void draw(iRenderView rview)
iMeshWrapper
draw
in interface iMeshWrapper
rview
- iMeshWrapper.draw(crystalspace.jbind.interfaces.iengine.rview.iRenderView)
public void drawLight(iRenderView rview, iLight light)
iMeshWrapper
drawLight
in interface iMeshWrapper
rview
- light
- iMeshWrapper.drawLight(crystalspace.jbind.interfaces.iengine.rview.iRenderView, crystalspace.jbind.interfaces.iengine.light.iLight)
public void drawShadow(iRenderView rview, iLight light)
iMeshWrapper
drawShadow
in interface iMeshWrapper
rview
- light
- iMeshWrapper.drawShadow(crystalspace.jbind.interfaces.iengine.rview.iRenderView, crystalspace.jbind.interfaces.iengine.light.iLight)
public iMeshList getChildren()
iMeshWrapper
getChildren
in interface iMeshWrapper
iMeshWrapper.getChildren()
public boolean getDrawAfterShadow()
iMeshWrapper
getDrawAfterShadow
in interface iMeshWrapper
iMeshWrapper.getDrawAfterShadow()
public iMeshDrawCallback getDrawCallback(int idx)
iMeshWrapper
getDrawCallback
in interface iMeshWrapper
idx
-
iMeshWrapper.getDrawCallback(int)
public int getDrawCallbackCount()
iMeshWrapper
getDrawCallbackCount
in interface iMeshWrapper
iMeshWrapper.getDrawCallbackCount()
public iMeshFactoryWrapper getFactory()
iMeshWrapper
getFactory
in interface iMeshWrapper
iMeshWrapper.getFactory()
public csFlags getFlags()
iMeshWrapper
getFlags
in interface iMeshWrapper
iMeshWrapper.getFlags()
public iLightingInfo getLightingInfo()
iMeshWrapper
getLightingInfo
in interface iMeshWrapper
iMeshWrapper.getLightingInfo()
public iMovable getMovable()
iMeshWrapper
getMovable
in interface iMeshWrapper
iMeshWrapper.getMovable()
public iMeshWrapper getParentContainer()
iMeshWrapper
getParentContainer
in interface iMeshWrapper
iMeshWrapper.getParentContainer()
public iPortalContainer getPortalContainer()
iMeshWrapper
getPortalContainer
in interface iMeshWrapper
iMeshWrapper.getPortalContainer()
public void getRadius(csVector3 rad, csVector3 cent)
iMeshWrapper
getRadius
in interface iMeshWrapper
rad
- cent
- iMeshWrapper.getRadius(crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3)
public csRenderMesh[] getRenderMeshes(int n)
iMeshWrapper
getRenderMeshes
in interface iMeshWrapper
n
-
iMeshWrapper.getRenderMeshes(int)
public long getRenderPriority()
iMeshWrapper
getRenderPriority
in interface iMeshWrapper
iMeshWrapper.getRenderPriority()
public float getScreenBoundingBox(iCamera camera, csBox2 sbox, csBox3 cbox)
iMeshWrapper
getScreenBoundingBox
in interface iMeshWrapper
camera
- sbox
- cbox
-
iMeshWrapper.getScreenBoundingBox(crystalspace.jbind.interfaces.iengine.camera.iCamera, crystalspace.jbind.impl.csgeom.box.csBox2, crystalspace.jbind.impl.csgeom.box.csBox3)
public iShadowReceiver getShadowReceiver()
iMeshWrapper
getShadowReceiver
in interface iMeshWrapper
iMeshWrapper.getShadowReceiver()
public iLODControl getStaticLOD()
iMeshWrapper
getStaticLOD
in interface iMeshWrapper
iMeshWrapper.getStaticLOD()
public void getTransformedBoundingBox(csReversibleTransform trans, csBox3 cbox)
iMeshWrapper
getTransformedBoundingBox
in interface iMeshWrapper
trans
- cbox
- iMeshWrapper.getTransformedBoundingBox(crystalspace.jbind.impl.csgeom.transfrm.csReversibleTransform, crystalspace.jbind.impl.csgeom.box.csBox3)
public int getVisibilityNumber()
iMeshWrapper
getVisibilityNumber
in interface iMeshWrapper
iMeshWrapper.getVisibilityNumber()
public void getWorldBoundingBox(csBox3 cbox)
iMeshWrapper
getWorldBoundingBox
in interface iMeshWrapper
cbox
- iMeshWrapper.getWorldBoundingBox(crystalspace.jbind.impl.csgeom.box.csBox3)
public int getZBufMode()
iMeshWrapper
getZBufMode
in interface iMeshWrapper
iMeshWrapper.getZBufMode()
public void hardTransform(csReversibleTransform t)
iMeshWrapper
hardTransform
in interface iMeshWrapper
t
- iMeshWrapper.hardTransform(crystalspace.jbind.impl.csgeom.transfrm.csReversibleTransform)
public boolean hitBeam(csVector3 start, csVector3 end, csVector3 isect, float pr)
iMeshWrapper
hitBeam
in interface iMeshWrapper
start
- end
- isect
- pr
-
iMeshWrapper.hitBeam(crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, float)
public boolean hitBeamBBox(csVector3 start, csVector3 end, csVector3 isect, float pr)
iMeshWrapper
hitBeamBBox
in interface iMeshWrapper
start
- end
- isect
- pr
-
iMeshWrapper.hitBeamBBox(crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, float)
public boolean hitBeamObject(csVector3 start, csVector3 end, csVector3 isect, float pr, int polygon_idx)
iMeshWrapper
hitBeamObject
in interface iMeshWrapper
start
- end
- isect
- pr
- polygon_idx
-
iMeshWrapper.hitBeamObject(crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, float, int)
public boolean hitBeamObject(csVector3 start, csVector3 end, csVector3 isect, float pr)
iMeshWrapper
hitBeamObject
in interface iMeshWrapper
start
- end
- isect
- pr
-
iMeshWrapper.hitBeamObject(crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, float)
public boolean hitBeamOutline(csVector3 start, csVector3 end, csVector3 isect, float pr)
iMeshWrapper
hitBeamOutline
in interface iMeshWrapper
start
- end
- isect
- pr
-
iMeshWrapper.hitBeamOutline(crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, float)
public void placeMesh()
iMeshWrapper
placeMesh
in interface iMeshWrapper
iMeshWrapper.placeMesh()
public iObject queryObject()
iMeshWrapper
queryObject
in interface iMeshWrapper
iMeshWrapper.queryObject()
public void removeDrawCallback(iMeshDrawCallback cb)
iMeshWrapper
removeDrawCallback
in interface iMeshWrapper
cb
- iMeshWrapper.removeDrawCallback(crystalspace.jbind.interfaces.iengine.mesh.iMeshDrawCallback)
public void removeMeshFromStaticLOD(iMeshWrapper mesh)
iMeshWrapper
removeMeshFromStaticLOD
in interface iMeshWrapper
mesh
- iMeshWrapper.removeMeshFromStaticLOD(crystalspace.jbind.interfaces.iengine.mesh.iMeshWrapper)
public void setDrawAfterShadow(boolean drawAfter)
iMeshWrapper
setDrawAfterShadow
in interface iMeshWrapper
drawAfter
- iMeshWrapper.setDrawAfterShadow(boolean)
public void setDrawCallback(iMeshDrawCallback cb)
iMeshWrapper
setDrawCallback
in interface iMeshWrapper
cb
- iMeshWrapper.setDrawCallback(crystalspace.jbind.interfaces.iengine.mesh.iMeshDrawCallback)
public void setFactory(iMeshFactoryWrapper factory)
iMeshWrapper
setFactory
in interface iMeshWrapper
factory
- iMeshWrapper.setFactory(crystalspace.jbind.interfaces.iengine.mesh.iMeshFactoryWrapper)
public void setMeshObject(iMeshObject obj)
iMeshWrapper
setMeshObject
in interface iMeshWrapper
obj
- iMeshWrapper.setMeshObject(crystalspace.jbind.interfaces.imesh.object.iMeshObject)
public void setParentContainer(iMeshWrapper obj)
iMeshWrapper
setParentContainer
in interface iMeshWrapper
obj
- iMeshWrapper.setParentContainer(crystalspace.jbind.interfaces.iengine.mesh.iMeshWrapper)
public void setRenderPriority(long rp)
iMeshWrapper
setRenderPriority
in interface iMeshWrapper
rp
- iMeshWrapper.setRenderPriority(long)
public void setZBufMode(int mode)
iMeshWrapper
setZBufMode
in interface iMeshWrapper
mode
- iMeshWrapper.setZBufMode(int)
public void updateLighting(iLight[] lights, int num_lights)
iMeshWrapper
updateLighting
in interface iMeshWrapper
lights
- num_lights
- iMeshWrapper.updateLighting(crystalspace.jbind.interfaces.iengine.light.iLight[], int)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |