|
|||||||||||
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.sector.csSector
Field Summary |
Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
Constructor Summary | |
csSector(iPointer nPointer)
|
Method Summary | |
void |
calculateSectorBBox(csBox3 bbox,
boolean do_meshes)
Calculate the bounding box of all objects in this sector. |
void |
checkFrustum(iFrustumView lview)
Used for portal traversal. |
void |
decRecLevel()
Remove one draw recursion level. |
void |
disableFog()
Disable fog in this sector. |
void |
draw(iRenderView rview)
Draw the sector with the given render view. |
iSector |
followSegment(csReversibleTransform t,
csVector3 new_position,
boolean mirror)
Follow a segment starting at this sector. |
iSector |
followSegment(csReversibleTransform t,
csVector3 new_position,
boolean mirror,
boolean only_portals)
Follow a segment starting at this sector. |
csColor |
getDynamicAmbientLight()
Get the last set dynamic ambient light for this sector. |
csFog |
getFog()
Return the fog structure (even if fog is disabled);. |
static java.lang.Class |
getInterfaceClass()
|
static java.lang.String |
getInterfaceName()
|
static int |
getInterfaceVersion()
|
iLightList |
getLights()
Get the list of static and pseudo-dynamic lights in this sector. |
iMeshList |
getMeshes()
Get the list of meshes in this sector. |
java.lang.String |
getName()
Return the name of the interface |
csSet_iMeshWrapper |
getPortalMeshes()
Get the set of meshes containing portals that leave from this sector. |
int |
getRecLevel()
Get the current draw recursion level. |
iSectorCallback |
getSectorCallback(int idx)
Get the specified sector callback. |
int |
getSectorCallbackCount()
Get the number of sector callbacks. |
int |
getVersion()
Return the version of the interface |
iVisibilityCuller |
getVisibilityCuller()
Get the visibility culler that is used for this sector. |
csRenderMeshList |
getVisibleMeshes(iRenderView rview)
Get a set of visible meshes for given camera. |
boolean |
hasFog()
Has this sector fog? |
iMeshWrapper |
hitBeam(csVector3 start,
csVector3 end,
csVector3 intersect,
int polygon_idx)
Follow a beam from start to end and return the first object that is hit. |
iMeshWrapper |
hitBeam(csVector3 start,
csVector3 end,
csVector3 intersect,
int polygon_idx,
boolean accurate)
Follow a beam from start to end and return the first object that is hit. |
iMeshWrapper |
hitBeamPortals(csVector3 start,
csVector3 end,
csVector3 isect,
int polygon_idx)
Follow a beam from start to end and return the first polygon that is hit. |
void |
incRecLevel()
Add one draw recursion level. |
static void |
initSCF()
|
protected boolean |
isNativePointerValidSafe()
|
void |
prepareDraw(iRenderView rview)
Prepare the sector to draw. |
iObject |
queryObject()
Get the iObject for this sector. |
void |
registerPortalMesh(iMeshWrapper mesh)
Register a mesh with a portal. |
void |
removeSectorCallback(iSectorCallback cb)
Remove a sector callback. |
void |
setDynamicAmbientLight(csColor color)
Sets dynamic ambient light for all things in the sector. |
void |
setFog(float density,
csColor color)
Fill the fog structure with the given values. |
void |
setSectorCallback(iSectorCallback cb)
Set the sector callback. |
boolean |
setVisibilityCullerPlugin(java.lang.String Name)
Use the specified plugin as the visibility culler for this sector. |
void |
shineLights()
Calculate lighting for all objects in this sector. |
void |
shineLights(iMeshWrapper mesh)
Version of ShineLights(); which only affects one mesh object. |
void |
unregisterPortalMesh(iMeshWrapper mesh)
Unregister a mesh with a portal. |
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 csSector(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 iLightList getLights()
iSector
getLights
in interface iSector
public static int getInterfaceVersion()
public static java.lang.String getInterfaceName()
public static java.lang.Class getInterfaceClass()
protected boolean isNativePointerValidSafe()
public void calculateSectorBBox(csBox3 bbox, boolean do_meshes)
iSector
calculateSectorBBox
in interface iSector
bbox
- do_meshes
- iSector.calculateSectorBBox(crystalspace.jbind.impl.csgeom.box.csBox3, boolean)
public void checkFrustum(iFrustumView lview)
iSector
checkFrustum
in interface iSector
lview
- iSector.checkFrustum(crystalspace.jbind.interfaces.iengine.fview.iFrustumView)
public void decRecLevel()
iSector
decRecLevel
in interface iSector
iSector.decRecLevel()
public void disableFog()
iSector
disableFog
in interface iSector
iSector.disableFog()
public void draw(iRenderView rview)
iSector
draw
in interface iSector
rview
- iSector.draw(crystalspace.jbind.interfaces.iengine.rview.iRenderView)
public iSector followSegment(csReversibleTransform t, csVector3 new_position, boolean mirror, boolean only_portals)
iSector
followSegment
in interface iSector
t
- new_position
- mirror
- only_portals
-
iSector.followSegment(crystalspace.jbind.impl.csgeom.transfrm.csReversibleTransform, crystalspace.jbind.impl.csgeom.vector3.csVector3, boolean, boolean)
public iSector followSegment(csReversibleTransform t, csVector3 new_position, boolean mirror)
iSector
followSegment
in interface iSector
t
- new_position
- mirror
-
iSector.followSegment(crystalspace.jbind.impl.csgeom.transfrm.csReversibleTransform, crystalspace.jbind.impl.csgeom.vector3.csVector3, boolean)
public csColor getDynamicAmbientLight()
iSector
getDynamicAmbientLight
in interface iSector
iSector.getDynamicAmbientLight()
public csFog getFog()
iSector
getFog
in interface iSector
iSector.getFog()
public iMeshList getMeshes()
iSector
getMeshes
in interface iSector
iSector.getMeshes()
public csSet_iMeshWrapper getPortalMeshes()
iSector
getPortalMeshes
in interface iSector
iSector.getPortalMeshes()
public int getRecLevel()
iSector
getRecLevel
in interface iSector
iSector.getRecLevel()
public iSectorCallback getSectorCallback(int idx)
iSector
getSectorCallback
in interface iSector
idx
-
iSector.getSectorCallback(int)
public int getSectorCallbackCount()
iSector
getSectorCallbackCount
in interface iSector
iSector.getSectorCallbackCount()
public iVisibilityCuller getVisibilityCuller()
iSector
getVisibilityCuller
in interface iSector
iSector.getVisibilityCuller()
public csRenderMeshList getVisibleMeshes(iRenderView rview)
iSector
getVisibleMeshes
in interface iSector
rview
-
iSector.getVisibleMeshes(crystalspace.jbind.interfaces.iengine.rview.iRenderView)
public boolean hasFog()
iSector
hasFog
in interface iSector
iSector.hasFog()
public iMeshWrapper hitBeam(csVector3 start, csVector3 end, csVector3 intersect, int polygon_idx, boolean accurate)
iSector
hitBeam
in interface iSector
start
- end
- intersect
- polygon_idx
- accurate
-
iSector.hitBeam(crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, int, boolean)
public iMeshWrapper hitBeam(csVector3 start, csVector3 end, csVector3 intersect, int polygon_idx)
iSector
hitBeam
in interface iSector
start
- end
- intersect
- polygon_idx
-
iSector.hitBeam(crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, int)
public iMeshWrapper hitBeamPortals(csVector3 start, csVector3 end, csVector3 isect, int polygon_idx)
iSector
hitBeamPortals
in interface iSector
start
- end
- isect
- polygon_idx
-
iSector.hitBeamPortals(crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, int)
public void incRecLevel()
iSector
incRecLevel
in interface iSector
iSector.incRecLevel()
public void prepareDraw(iRenderView rview)
iSector
prepareDraw
in interface iSector
rview
- iSector.prepareDraw(crystalspace.jbind.interfaces.iengine.rview.iRenderView)
public iObject queryObject()
iSector
queryObject
in interface iSector
iSector.queryObject()
public void registerPortalMesh(iMeshWrapper mesh)
iSector
registerPortalMesh
in interface iSector
mesh
- iSector.registerPortalMesh(crystalspace.jbind.interfaces.iengine.mesh.iMeshWrapper)
public void removeSectorCallback(iSectorCallback cb)
iSector
removeSectorCallback
in interface iSector
cb
- iSector.removeSectorCallback(crystalspace.jbind.interfaces.iengine.sector.iSectorCallback)
public void setDynamicAmbientLight(csColor color)
iSector
setDynamicAmbientLight
in interface iSector
color
- iSector.setDynamicAmbientLight(crystalspace.jbind.impl.csutil.cscolor.csColor)
public void setFog(float density, csColor color)
iSector
setFog
in interface iSector
density
- color
- iSector.setFog(float, crystalspace.jbind.impl.csutil.cscolor.csColor)
public void setSectorCallback(iSectorCallback cb)
iSector
setSectorCallback
in interface iSector
cb
- iSector.setSectorCallback(crystalspace.jbind.interfaces.iengine.sector.iSectorCallback)
public boolean setVisibilityCullerPlugin(java.lang.String Name)
iSector
setVisibilityCullerPlugin
in interface iSector
Name
-
iSector.setVisibilityCullerPlugin(java.lang.String)
public void shineLights()
iSector
shineLights
in interface iSector
iSector.shineLights()
public void shineLights(iMeshWrapper mesh)
iSector
shineLights
in interface iSector
mesh
- iSector.shineLights(crystalspace.jbind.interfaces.iengine.mesh.iMeshWrapper)
public void unregisterPortalMesh(iMeshWrapper mesh)
iSector
unregisterPortalMesh
in interface iSector
mesh
- iSector.unregisterPortalMesh(crystalspace.jbind.interfaces.iengine.mesh.iMeshWrapper)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |