|
|||||||||||
| 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 iBasegetVersion in class csBasepublic java.lang.String getName()
iBase
getName in interface iBasegetName in class csBasepublic static void initSCF()
public iMeshObject getMeshObject()
iMeshWrapper
getMeshObject in interface iMeshWrapperpublic 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 iMeshWrapperlod - mesh - iMeshWrapper.addMeshToStaticLOD(int, crystalspace.jbind.interfaces.iengine.mesh.iMeshWrapper)public void castHardwareShadow(boolean castShadow)
iMeshWrapper
castHardwareShadow in interface iMeshWrappercastShadow - iMeshWrapper.castHardwareShadow(boolean)public iLODControl createStaticLOD()
iMeshWrapper
createStaticLOD in interface iMeshWrapperiMeshWrapper.createStaticLOD()
public void deferUpdateLighting(int flags,
int num_lights)
iMeshWrapper
deferUpdateLighting in interface iMeshWrapperflags - num_lights - iMeshWrapper.deferUpdateLighting(int, int)public void destroyStaticLOD()
iMeshWrapper
destroyStaticLOD in interface iMeshWrapperiMeshWrapper.destroyStaticLOD()public void draw(iRenderView rview)
iMeshWrapper
draw in interface iMeshWrapperrview - iMeshWrapper.draw(crystalspace.jbind.interfaces.iengine.rview.iRenderView)
public void drawLight(iRenderView rview,
iLight light)
iMeshWrapper
drawLight in interface iMeshWrapperrview - 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 iMeshWrapperrview - light - iMeshWrapper.drawShadow(crystalspace.jbind.interfaces.iengine.rview.iRenderView, crystalspace.jbind.interfaces.iengine.light.iLight)public iMeshList getChildren()
iMeshWrapper
getChildren in interface iMeshWrapperiMeshWrapper.getChildren()public boolean getDrawAfterShadow()
iMeshWrapper
getDrawAfterShadow in interface iMeshWrapperiMeshWrapper.getDrawAfterShadow()public iMeshDrawCallback getDrawCallback(int idx)
iMeshWrapper
getDrawCallback in interface iMeshWrapperidx -
iMeshWrapper.getDrawCallback(int)public int getDrawCallbackCount()
iMeshWrapper
getDrawCallbackCount in interface iMeshWrapperiMeshWrapper.getDrawCallbackCount()public iMeshFactoryWrapper getFactory()
iMeshWrapper
getFactory in interface iMeshWrapperiMeshWrapper.getFactory()public csFlags getFlags()
iMeshWrapper
getFlags in interface iMeshWrapperiMeshWrapper.getFlags()public iLightingInfo getLightingInfo()
iMeshWrapper
getLightingInfo in interface iMeshWrapperiMeshWrapper.getLightingInfo()public iMovable getMovable()
iMeshWrapper
getMovable in interface iMeshWrapperiMeshWrapper.getMovable()public iMeshWrapper getParentContainer()
iMeshWrapper
getParentContainer in interface iMeshWrapperiMeshWrapper.getParentContainer()public iPortalContainer getPortalContainer()
iMeshWrapper
getPortalContainer in interface iMeshWrapperiMeshWrapper.getPortalContainer()
public void getRadius(csVector3 rad,
csVector3 cent)
iMeshWrapper
getRadius in interface iMeshWrapperrad - cent - iMeshWrapper.getRadius(crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3)public csRenderMesh[] getRenderMeshes(int n)
iMeshWrapper
getRenderMeshes in interface iMeshWrappern -
iMeshWrapper.getRenderMeshes(int)public long getRenderPriority()
iMeshWrapper
getRenderPriority in interface iMeshWrapperiMeshWrapper.getRenderPriority()
public float getScreenBoundingBox(iCamera camera,
csBox2 sbox,
csBox3 cbox)
iMeshWrapper
getScreenBoundingBox in interface iMeshWrappercamera - 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 iMeshWrapperiMeshWrapper.getShadowReceiver()public iLODControl getStaticLOD()
iMeshWrapper
getStaticLOD in interface iMeshWrapperiMeshWrapper.getStaticLOD()
public void getTransformedBoundingBox(csReversibleTransform trans,
csBox3 cbox)
iMeshWrapper
getTransformedBoundingBox in interface iMeshWrappertrans - cbox - iMeshWrapper.getTransformedBoundingBox(crystalspace.jbind.impl.csgeom.transfrm.csReversibleTransform, crystalspace.jbind.impl.csgeom.box.csBox3)public int getVisibilityNumber()
iMeshWrapper
getVisibilityNumber in interface iMeshWrapperiMeshWrapper.getVisibilityNumber()public void getWorldBoundingBox(csBox3 cbox)
iMeshWrapper
getWorldBoundingBox in interface iMeshWrappercbox - iMeshWrapper.getWorldBoundingBox(crystalspace.jbind.impl.csgeom.box.csBox3)public int getZBufMode()
iMeshWrapper
getZBufMode in interface iMeshWrapperiMeshWrapper.getZBufMode()public void hardTransform(csReversibleTransform t)
iMeshWrapper
hardTransform in interface iMeshWrappert - iMeshWrapper.hardTransform(crystalspace.jbind.impl.csgeom.transfrm.csReversibleTransform)
public boolean hitBeam(csVector3 start,
csVector3 end,
csVector3 isect,
float pr)
iMeshWrapper
hitBeam in interface iMeshWrapperstart - 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 iMeshWrapperstart - 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 iMeshWrapperstart - 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 iMeshWrapperstart - 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 iMeshWrapperstart - 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 iMeshWrapperiMeshWrapper.placeMesh()public iObject queryObject()
iMeshWrapper
queryObject in interface iMeshWrapperiMeshWrapper.queryObject()public void removeDrawCallback(iMeshDrawCallback cb)
iMeshWrapper
removeDrawCallback in interface iMeshWrappercb - iMeshWrapper.removeDrawCallback(crystalspace.jbind.interfaces.iengine.mesh.iMeshDrawCallback)public void removeMeshFromStaticLOD(iMeshWrapper mesh)
iMeshWrapper
removeMeshFromStaticLOD in interface iMeshWrappermesh - iMeshWrapper.removeMeshFromStaticLOD(crystalspace.jbind.interfaces.iengine.mesh.iMeshWrapper)public void setDrawAfterShadow(boolean drawAfter)
iMeshWrapper
setDrawAfterShadow in interface iMeshWrapperdrawAfter - iMeshWrapper.setDrawAfterShadow(boolean)public void setDrawCallback(iMeshDrawCallback cb)
iMeshWrapper
setDrawCallback in interface iMeshWrappercb - iMeshWrapper.setDrawCallback(crystalspace.jbind.interfaces.iengine.mesh.iMeshDrawCallback)public void setFactory(iMeshFactoryWrapper factory)
iMeshWrapper
setFactory in interface iMeshWrapperfactory - iMeshWrapper.setFactory(crystalspace.jbind.interfaces.iengine.mesh.iMeshFactoryWrapper)public void setMeshObject(iMeshObject obj)
iMeshWrapper
setMeshObject in interface iMeshWrapperobj - iMeshWrapper.setMeshObject(crystalspace.jbind.interfaces.imesh.object.iMeshObject)public void setParentContainer(iMeshWrapper obj)
iMeshWrapper
setParentContainer in interface iMeshWrapperobj - iMeshWrapper.setParentContainer(crystalspace.jbind.interfaces.iengine.mesh.iMeshWrapper)public void setRenderPriority(long rp)
iMeshWrapper
setRenderPriority in interface iMeshWrapperrp - iMeshWrapper.setRenderPriority(long)public void setZBufMode(int mode)
iMeshWrapper
setZBufMode in interface iMeshWrappermode - iMeshWrapper.setZBufMode(int)
public void updateLighting(iLight[] lights,
int num_lights)
iMeshWrapper
updateLighting in interface iMeshWrapperlights - 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 | ||||||||||