org.ogre4j
Class DefaultSceneManager

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.DefaultSceneManager
All Implemented Interfaces:
IAllocatedObject<ISceneCtlAllocPolicy>, IDefaultSceneManager, ISceneCtlAllocatedObject, ISceneManager, INativeObject

public class DefaultSceneManager
extends NativeObject
implements IDefaultSceneManager


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ogre4j.ISceneManager
ISceneManager.IAnimationIterator, ISceneManager.IAnimationList, ISceneManager.IAutoTrackingSceneNodes, ISceneManager.ICameraIterator, ISceneManager.ICameraList, ISceneManager.ICamVisibleObjectsMap, ISceneManager.IInstancedGeometryList, ISceneManager.ILightClippingInfo, ISceneManager.ILightClippingInfoMap, ISceneManager.ILightInfo, ISceneManager.ILightInfoList, ISceneManager.IlightLess, ISceneManager.IlightsForShadowTextureLess, ISceneManager.IListener, ISceneManager.IListenerList, ISceneManager.ImaterialLess, ISceneManager.IMovableObjectCollection, ISceneManager.IMovableObjectCollectionMap, ISceneManager.IMovableObjectIterator, ISceneManager.IMovableObjectMap, ISceneManager.IRenderQueueListenerList, ISceneManager.ISceneMgrQueuedRenderableVisitor, ISceneManager.ISceneNodeList, ISceneManager.IShadowCamLightMapping, ISceneManager.IShadowCasterList, ISceneManager.IShadowCasterSceneQueryListener, ISceneManager.IShadowTextureCameraList, ISceneManager.ISkyBoxGenParameters, ISceneManager.ISkyDomeGenParameters, ISceneManager.ISkyPlaneGenParameters, ISceneManager.ISpecialCaseRenderQueueList, ISceneManager.IStaticGeometryList
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  DefaultSceneManager(InstancePointer p)
          This constructor is public for internal useage only!
protected DefaultSceneManager(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  DefaultSceneManager(java.lang.String name)
           
  DefaultSceneManager(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void _applySceneAnimations()
          Internal method for applying animations to scene nodes.
 boolean _areRenderStateChangesSuppressed()
          Are render state changes suppressed?
 boolean _areShadowsSuppressed()
          Are shadows suppressed?
 void _findVisibleObjects(ICamera cam, IVisibleObjectsBoundsInfo visibleBounds, boolean onlyShadowCasters)
          Internal method which parses the scene to find visible objects to render.
 long _getCombinedVisibilityMask()
          Internal method for getting the combination between the global visibility mask and the per-viewport visibility mask.
 ILightList _getLightsAffectingFrustum()
          Get the list of lights which could be affecting the frustum.
 long _getLightsDirtyCounter()
          Advance method to gets the lights dirty counter.
 void _injectRenderWithPass(IPass pass, IRenderable rend, boolean shadowDerivation)
          Render something as if it came from the current queue.
 void _notifyAutotrackingSceneNode(ISceneNode node, boolean autoTrack)
          Internal method for notifying the manager that a is autotracking.
 void _notifyLightsDirty()
          Advance method to increase the lights dirty counter due lights changed.
 void _populateLightList(IVector3 position, float radius, ILightList destList)
          Populate a light list with an ordered set of the lights which are closest to the position specified.
 void _queueSkiesForRendering(ICamera cam)
          Internal method for queueing the sky objects with the params as previously set through setSkyBox, setSkyPlane and setSkyDome.
 void _renderQueueGroupObjects(IRenderQueueGroup group, QueuedRenderableCollection.OrganisationMode om)
          Render the objects in a given queue group
 void _renderScene(ICamera camera, IViewport vp, boolean includeOverlays)
          Prompts the class to send its contents to the renderer.
 void _renderVisibleObjects()
          Sends visible objects found in _findVisibleObjects to the rendering engine.
 void _setDestinationRenderSystem(IRenderSystem sys)
          Notifies the scene manager of its destination render system
 IPass _setPass(IPass pass, boolean evenIfSuppressed, boolean shadowDerivation)
          Internal method for setting up the renderstate for a rendering pass.
 void _setSkyBox(boolean enable, java.lang.String materialName, float distance, short renderQueue, IQuaternion orientation, java.lang.String groupName)
          Enables / disables a 'sky box' i.e. a 6-sided box at constant distance from the camera representing the sky.
 void _setSkyDome(boolean enable, java.lang.String materialName, float curvature, float tiling, float distance, short renderQueue, IQuaternion orientation, int xsegments, int ysegments, int ysegments_keep, java.lang.String groupName)
          Enables / disables a 'sky dome' i.e. an illusion of a curved sky.
 void _setSkyPlane(boolean enable, IPlane plane, java.lang.String materialName, float scale, float tiling, short renderQueue, float bow, int xsegments, int ysegments, java.lang.String groupName)
          Enables / disables a 'sky plane' i.e. a plane at constant distance from the camera representing the sky.
 void _suppressRenderStateChanges(boolean suppress)
          Indicates to the whether it should suppress changing the states when rendering objects.
 void _suppressShadows(boolean suppress)
          Indicates to the whether it should suppress the active shadow rendering technique until told otherwise.
 void _updateSceneGraph(ICamera cam)
          Internal method for updating the scene graph ie the tree of instances managed by this class.
 void addListener(ISceneManager.IListener s)
          Add a listener which will get called back on scene manager events.
 void addRenderQueueListener(IRenderQueueListener newListener)
          Registers a new which will be notified when render queues are processed.
 void addSpecialCaseRenderQueue(short qid)
          Adds an item to the 'special case' render queue list.
 void clearScene()
          Empties the entire scene, inluding all SceneNodes, Entities, Lights, BillboardSets etc.
 void clearSpecialCaseRenderQueues()
          Clears the 'special case' render queue list.
 IAxisAlignedBoxSceneQuery createAABBQuery(IAxisAlignedBox box, long mask)
          Creates an for this scene manager.
 IAnimation createAnimation(java.lang.String name, float length)
          Creates an animation which can be used to animate scene nodes.
 IAnimationState createAnimationState(java.lang.String animName)
          Create an object for managing application of animations.
 IBillboardChain createBillboardChain(java.lang.String name)
          Create a , an object which you can use to render a linked chain of billboards.
 IBillboardSet createBillboardSet(java.lang.String name, long poolSize)
          Creates a new for use with this scene manager.
 ICamera createCamera(java.lang.String name)
          Creates a camera to be managed by this scene manager.
 IEntity createEntity(java.lang.String entityName, SceneManager.PrefabType ptype)
          Create an (instance of a discrete mesh) from a range of prefab shapes.
 IEntity createEntity(java.lang.String entityName, java.lang.String meshName)
          Create an (instance of a discrete mesh).
 IInstancedGeometry createInstancedGeometry(java.lang.String name)
          Creates a instance suitable for use with this .
 IIntersectionSceneQuery createIntersectionQuery(long mask)
          Creates an for this scene manager.
 ILight createLight(java.lang.String name)
          Creates a light for use in the scene.
 IManualObject createManualObject(java.lang.String name)
          Create a , an object which you populate with geometry manually through a GL immediate-mode style interface.
 IMovableObject createMovableObject(java.lang.String name, java.lang.String typeName, INameValuePairList params)
          Create a movable object of the type specified.
 IParticleSystem createParticleSystem(java.lang.String name, int quota, java.lang.String resourceGroup)
          Create a blank particle system.
 IParticleSystem createParticleSystem(java.lang.String name, java.lang.String templateName)
          Creates a particle system based on a template.
 IPlaneBoundedVolumeListSceneQuery createPlaneBoundedVolumeQuery(IPlaneBoundedVolumeList volumes, long mask)
          Creates a for this scene manager.
 IRaySceneQuery createRayQuery(IRay ray, long mask)
          Creates a for this scene manager.
 IRibbonTrail createRibbonTrail(java.lang.String name)
          Create a , an object which you can use to render a linked chain of billboards which follows one or more nodes.
 ISceneNode createSceneNode()
          Creates an instance of a .
 ISceneNode createSceneNode(java.lang.String name)
          Creates an instance of a with a given name.
 ISphereSceneQuery createSphereQuery(ISphere sphere, long mask)
          Creates a for this scene manager.
 IStaticGeometry createStaticGeometry(java.lang.String name)
          Creates a instance suitable for use with this .
 void delete()
          Deletes the corresponding C++ object.
 void destroyAllAnimations()
          Removes all animations created using this .
 void destroyAllAnimationStates()
          Removes all animation states created using this .
 void destroyAllBillboardChains()
          Removes & destroys all BillboardChains from the .
 void destroyAllBillboardSets()
          Removes & destroys all BillboardSets.
 void destroyAllCameras()
          Removes (and destroys) all cameras from the scene.
 void destroyAllEntities()
          Removes & destroys all Entities.
 void destroyAllInstancedGeometry()
          Remove & destroy all instances.
 void destroyAllLights()
          Removes and destroys all lights in the scene.
 void destroyAllManualObjects()
          Removes & destroys all ManualObjects from the .
 void destroyAllMovableObjects()
          Destroy all MovableObjects.
 void destroyAllMovableObjectsByType(java.lang.String typeName)
          Destroy all MovableObjects of a given type.
 void destroyAllParticleSystems()
          Removes & destroys all ParticleSystems from the .
 void destroyAllRibbonTrails()
          Removes & destroys all RibbonTrails from the .
 void destroyAllStaticGeometry()
          Remove & destroy all instances.
 void destroyAnimation(java.lang.String name)
          Destroys an .
 void destroyAnimationState(java.lang.String name)
          Destroys an .
 void destroyBillboardChain(IBillboardChain obj)
          Removes & destroys a from the .
 void destroyBillboardChain(java.lang.String name)
          Removes & destroys a from the .
 void destroyBillboardSet(IBillboardSet set)
          Removes & destroys an from the .
 void destroyBillboardSet(java.lang.String name)
          Removes & destroys an from the by name.
 void destroyCamera(ICamera cam)
          Removes a camera from the scene.
 void destroyCamera(java.lang.String name)
          Removes a camera from the scene.
 void destroyEntity(IEntity ent)
          Removes & destroys an from the .
 void destroyEntity(java.lang.String name)
          Removes & destroys an from the by name.
 void destroyInstancedGeometry(IInstancedGeometry geom)
          Remove & destroy a instance.
 void destroyInstancedGeometry(java.lang.String name)
          Remove & destroy a instance.
 void destroyLight(ILight light)
          Removes the light from the scene and destroys it based on a pointer.
 void destroyLight(java.lang.String name)
          Removes the named light from the scene and destroys it.
 void destroyManualObject(IManualObject obj)
          Removes & destroys a from the .
 void destroyManualObject(java.lang.String name)
          Removes & destroys a from the .
 void destroyMovableObject(IMovableObject m)
          Destroys a .
 void destroyMovableObject(java.lang.String name, java.lang.String typeName)
          Destroys a with the name specified, of the type specified.
 void destroyParticleSystem(IParticleSystem obj)
          Removes & destroys a from the .
 void destroyParticleSystem(java.lang.String name)
          Removes & destroys a from the .
 void destroyQuery(ISceneQuery query)
          Destroys a scene query of any type.
 void destroyRibbonTrail(IRibbonTrail obj)
          Removes & destroys a from the .
 void destroyRibbonTrail(java.lang.String name)
          Removes & destroys a from the .
 void destroySceneNode(ISceneNode sn)
          Destroys a .
 void destroySceneNode(java.lang.String name)
          Destroys a with a given name.
 void destroyStaticGeometry(IStaticGeometry geom)
          Remove & destroy a instance.
 void destroyStaticGeometry(java.lang.String name)
          Remove & destroy a instance.
 int estimateWorldGeometry(IDataStreamPtr stream, java.lang.String typeName)
          Estimate the number of loading stages required to load the named world geometry.
 int estimateWorldGeometry(java.lang.String filename)
          Estimate the number of loading stages required to load the named world geometry.
 void extractAllMovableObjectsByType(java.lang.String typeName)
          Extract all injected MovableObjects of a given type.
 void extractMovableObject(IMovableObject m)
          Extract a previously injected .
 void extractMovableObject(java.lang.String name, java.lang.String typeName)
          Extract a previously injected .
 void finalize()
           
 IColourValue getAmbientLight()
          Returns the ambient light level to be used for the scene.
 IAnimation getAnimation(java.lang.String name)
          Looks up an object previously created with createAnimation.
 void getAnimationIterator(ISceneManager.IAnimationIterator returnValue)
          Returns a specialised over all animations in the scene.
 IAnimationState getAnimationState(java.lang.String animName)
          Retrieves animation state as previously created using createAnimationState.
 void getAnimationStateIterator(IAnimationStateIterator returnValue)
          Returns a specialised over all animation states in the scene.
 IBillboardChain getBillboardChain(java.lang.String name)
          Retrieves a pointer to the named .
 IBillboardSet getBillboardSet(java.lang.String name)
          Retrieves a pointer to the named .
 ICamera getCamera(java.lang.String name)
          Retrieves a pointer to the named camera.
 void getCameraIterator(ISceneManager.ICameraIterator returnValue)
          Returns a specialised over all cameras in the scene.
 boolean getCameraRelativeRendering()
          Get whether to use camera-relative co-ordinates when rendering, ie to always place the camera at the origin and move the world around it.
 IViewport getCurrentViewport()
          Gets the current viewport being rendered (advanced use only, only valid during viewport update.
 IRenderSystem getDestinationRenderSystem()
          Get the rendersystem subclass to which the output of this Scene Manager gets sent
 boolean getDisplaySceneNodes()
          Returns true if all scene nodes axis are to be displayed
static long getENTITY_TYPE_MASK()
           
 IEntity getEntity(java.lang.String name)
          Retrieves a pointer to the named .
 boolean getFindVisibleObjects()
          Gets whether the should search for visible objects, or whether they are being manually handled.
 boolean getFlipCullingOnNegativeScale()
          Get whether to automatically flip the culling mode on objects whenever they are negatively scaled.
 IColourValue getFogColour()
          Returns the fog colour for the scene.
 float getFogDensity()
          Returns the fog density for the scene.
 float getFogEnd()
          Returns the fog end distance for the scene.
 FogMode getFogMode()
          Returns the fog mode for the scene.
 float getFogStart()
          Returns the fog start distance for the scene.
static long getFRUSTUM_TYPE_MASK()
           
static long getFX_TYPE_MASK()
           
 IInstancedGeometry getInstancedGeometry(java.lang.String name)
          Retrieve a previously created instance.
static long getLIGHT_TYPE_MASK()
           
 ILight getLight(java.lang.String name)
          Returns a pointer to the named which has previously been added to the scene.
 IPlaneList getLightClippingPlanes(ILight l)
          Retrieve a set of clipping planes for a given light.
 IRealRect getLightScissorRect(ILight l, ICamera cam)
          Retrieve a scissor rectangle for a given light and camera.
 IManualObject getManualObject(java.lang.String name)
          Retrieves a pointer to the named .
 IMovableObject getMovableObject(java.lang.String name, java.lang.String typeName)
          Get a reference to a previously created .
 void getMovableObjectIterator(ISceneManager.IMovableObjectIterator returnValue, java.lang.String typeName)
          Get an iterator over all MovableObect instances of a given type.
 java.lang.String getName()
          Return the instance name of this .
 boolean getNormaliseNormalsOnScale()
          Get whether to automatically normalise normals on objects whenever they are scaled.
 boolean getOption(java.lang.String strKey, VoidPointer pDestValue)
          Method for getting the value of an implementation-specific Scene Manager option.
 boolean getOptionKeys(IStringVector refKeys)
          Method for getting all the implementation-specific options of the scene manager.
 boolean getOptionValues(java.lang.String strKey, IStringVector refValueList)
          Method for getting all possible values for a specific option.
 IParticleSystem getParticleSystem(java.lang.String name)
          Retrieves a pointer to the named .
 ISceneManager.ISceneMgrQueuedRenderableVisitor getQueuedRenderableVisitor()
          Gets the current visitor object which processes queued renderables.
 IRenderQueue getRenderQueue()
          Retrieves the internal render queue, for advanced users only.
 IRibbonTrail getRibbonTrail(java.lang.String name)
          Retrieves a pointer to the named .
 ISceneNode getRootSceneNode()
          Gets the at the root of the scene hierarchy.
 ISceneNode getSceneNode(java.lang.String name)
          Retrieves a named from the scene graph.
 IShadowCameraSetupPtr getShadowCameraSetup()
          Get the shadow camera setup in use for all lights which don't have their own shadow camera setup.
 IVisibleObjectsBoundsInfo getShadowCasterBoundsInfo(ILight light, int iteration)
          Returns the shadow caster AAB for a specific light-camera combination
 boolean getShadowCasterRenderBackFaces()
          Gets whether or not shadow casters should be rendered into shadow textures using their back faces rather than their front faces.
 IColourValue getShadowColour()
          Get the colour used to modulate areas in shadow.
 float getShadowDirectionalLightExtrusionDistance()
          Gets the distance a shadow volume is extruded for a directional light.
 float getShadowDirLightTextureOffset()
          Gets the proportional distance which a texture shadow which is generated from a directional light will be offset into the camera view to make best use of texture space.
 float getShadowFarDistance()
          Gets the default maximum distance away from the camera that shadows will be visible.
 float getShadowFarDistanceSquared()
           
 int getShadowIndexBufferSize()
           
 ShadowTechnique getShadowTechnique()
          Gets the current shadow technique.
 ITexturePtr getShadowTexture(int shadowIndex)
          Get a reference to the shadow texture currently in use at the given index.
 void getShadowTextureConfigIterator(IConstShadowTextureConfigIterator returnValue)
          Get an iterator over the current shadow texture settings.
 int getShadowTextureCount()
           
 int getShadowTextureCountPerLightType(Light.LightTypes type)
           
 boolean getShadowTextureSelfShadow()
           
 boolean getShadowUseLightClipPlanes()
          Gets whether when using a built-in additive shadow mode, user clip planes should be used to restrict light rendering.
 boolean getShowBoundingBoxes()
          Returns if all bounding boxes of scene nodes are to be displayed
 boolean getShowDebugShadows()
          Are debug shadows shown?
 ISceneManager.ISkyBoxGenParameters getSkyBoxGenParameters()
          Get the parameters used to generate the current SkyBox, if any
 ISceneNode getSkyBoxNode()
          Get the skybox node, if enabled.
 ISceneManager.ISkyDomeGenParameters getSkyDomeGenParameters()
          Get the parameters used to generate the current SkyDome, if any
 ISceneNode getSkyDomeNode()
          Get the sky dome node, if enabled.
 ISceneManager.ISkyPlaneGenParameters getSkyPlaneGenParameters()
          Get the parameters used to construct the SkyPlane, if any
 ISceneNode getSkyPlaneNode()
          Get the sky plane node, if enabled.
 SceneManager.SpecialCaseRenderQueueMode getSpecialCaseRenderQueueMode()
          Gets the way the special case render queue list is processed.
static long getSTATICGEOMETRY_TYPE_MASK()
           
 IStaticGeometry getStaticGeometry(java.lang.String name)
          Retrieve a previously created instance.
 void getSuggestedViewpoint(IViewPoint returnValue, boolean random)
          Asks the to provide a suggested viewpoint from which the scene should be viewed.
 java.lang.String getTypeName()
          Retrieve the type name of this scene manager.
static long getUSER_TYPE_MASK_LIMIT()
           
 long getVisibilityMask()
          Gets a mask which is bitwise 'and'ed with objects own visibility masks to determine if the object is visible.
 IVisibleObjectsBoundsInfo getVisibleObjectsBoundsInfo(ICamera cam)
          Returns a visibility boundary box for a specific camera.
static long getWORLD_GEOMETRY_TYPE_MASK()
           
 short getWorldGeometryRenderQueue()
          Gets the render queue that the world geometry (if any) this renders will be associated with.
 boolean hasAnimation(java.lang.String name)
          Returns whether an animation with the given name exists.
 boolean hasAnimationState(java.lang.String name)
          Returns whether an animation state with the given name exists.
 boolean hasBillboardChain(java.lang.String name)
          Returns whether a billboard chain with the given name exists.
 boolean hasBillboardSet(java.lang.String name)
          Returns whether a billboardset with the given name exists.
 boolean hasCamera(java.lang.String name)
          Returns whether a camera with the given name exists.
 boolean hasEntity(java.lang.String name)
          Returns whether an entity with the given name exists.
 boolean hasLight(java.lang.String name)
          Returns whether a light with the given name exists.
 boolean hasManualObject(java.lang.String name)
          Returns whether a manual object with the given name exists.
 boolean hasMovableObject(java.lang.String name, java.lang.String typeName)
          Returns whether a movable object instance with the given name exists.
 boolean hasOption(java.lang.String strKey)
          Method for verifying wether the scene manager has an implementation-specific option.
 boolean hasParticleSystem(java.lang.String name)
          Returns whether a particle system with the given name exists.
 boolean hasRibbonTrail(java.lang.String name)
          Returns whether a ribbon trail with the given name exists.
 boolean hasSceneNode(java.lang.String name)
          Returns whether a scene node with the given name exists.
 boolean hasStaticGeometry(java.lang.String name)
          Returns whether a static geometry instance with the given name exists.
 void injectMovableObject(IMovableObject m)
          Inject a instance created externally.
 boolean isRenderQueueToBeProcessed(short qid)
          Returns whether or not the named queue will be rendered based on the current 'special case' render queue list and mode.
 boolean isShadowTechniqueAdditive()
          Is there an additive shadowing technique in use?
 boolean isShadowTechniqueIntegrated()
          Is the shadow technique integrated into primary materials?
 boolean isShadowTechniqueInUse()
          Is there any shadowing technique in use?
 boolean isShadowTechniqueModulative()
          Is there a modulative shadowing technique in use?
 boolean isShadowTechniqueStencilBased()
          Is there a stencil shadow based shadowing technique in use?
 boolean isShadowTechniqueTextureBased()
          Is there a texture shadow based shadowing technique in use?
 boolean isSkyBoxEnabled()
          Return whether a skybox is enabled
 boolean isSkyDomeEnabled()
          Return whether a skydome is enabled
 boolean isSkyPlaneEnabled()
          Return whether a key plane is enabled
 void manualRender(IRenderOperation rend, IPass pass, IViewport vp, IMatrix4 worldMatrix, IMatrix4 viewMatrix, IMatrix4 projMatrix, boolean doBeginEndFrame)
          Manual rendering method, for advanced users only.
 void prepareWorldGeometry(IDataStreamPtr stream, java.lang.String typeName)
          Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc.
 void prepareWorldGeometry(java.lang.String filename)
          Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc.
 void removeListener(ISceneManager.IListener s)
          Remove a listener
 void removeRenderQueueListener(IRenderQueueListener delListener)
          Removes a listener previously added with addRenderQueueListener.
 void removeSpecialCaseRenderQueue(short qid)
          Removes an item to the 'special case' render queue list.
 void setAmbientLight(IColourValue colour)
          Sets the ambient light level to be used for the scene.
 void setCameraRelativeRendering(boolean rel)
          Set whether to use camera-relative co-ordinates when rendering, ie to always place the camera at the origin and move the world around it.
 void setDisplaySceneNodes(boolean display)
          Tells the whether it should render the SceneNodes which make up the scene as well as the objects in the scene.
static void setENTITY_TYPE_MASK(long _jni_value_)
           
 void setFindVisibleObjects(boolean find)
          Sets whether the should search for visible objects, or whether they are being manually handled.
 void setFlipCullingOnNegativeScale(boolean n)
          Set whether to automatically flip the culling mode on objects whenever they are negatively scaled.
 void setFog(FogMode mode, IColourValue colour, float expDensity, float linearStart, float linearEnd)
          Sets the fogging mode applied to the scene.
static void setFRUSTUM_TYPE_MASK(long _jni_value_)
           
static void setFX_TYPE_MASK(long _jni_value_)
           
static void setLIGHT_TYPE_MASK(long _jni_value_)
           
 void setNormaliseNormalsOnScale(boolean n)
          Set whether to automatically normalise normals on objects whenever they are scaled.
 boolean setOption(java.lang.String strKey, VoidPointer pValue)
          Method for setting a specific option of the Scene Manager.
 void setQueuedRenderableVisitor(ISceneManager.ISceneMgrQueuedRenderableVisitor visitor)
          Advanced method for supplying an alternative visitor, used for parsing the render queues and sending the results to the renderer.
 void setShadowCameraSetup(IShadowCameraSetupPtr shadowSetup)
          Set the shadow camera setup to use for all lights which don't have their own shadow camera setup.
 void setShadowCasterRenderBackFaces(boolean bf)
          Sets whether or not shadow casters should be rendered into shadow textures using their back faces rather than their front faces.
 void setShadowColour(IColourValue colour)
          Set the colour used to modulate areas in shadow.
 void setShadowDirectionalLightExtrusionDistance(float dist)
          Sets the distance a shadow volume is extruded for a directional light.
 void setShadowDirLightTextureOffset(float offset)
          Sets the proportional distance which a texture shadow which is generated from a directional light will be offset into the camera view to make best use of texture space.
 void setShadowFarDistance(float distance)
          Sets the default maximum distance away from the camera that shadows will be visible.
 void setShadowIndexBufferSize(int size)
          Sets the maximum size of the index buffer used to render shadow primitives.
 void setShadowTechnique(ShadowTechnique technique)
          Sets the general shadow technique to be used in this scene.
 void setShadowTextureCasterMaterial(java.lang.String name)
          Sets the default material to use for rendering shadow casters.
 void setShadowTextureConfig(int shadowIndex, int width, int height, PixelFormat format)
          Set the detailed configuration for a shadow texture.
 void setShadowTextureConfig(int shadowIndex, IShadowTextureConfig config)
          Set the detailed configuration for a shadow texture.
 void setShadowTextureCount(int count)
          Set the number of textures allocated for texture-based shadows.
 void setShadowTextureCountPerLightType(Light.LightTypes type, int count)
          Set the number of shadow textures a light type uses.
 void setShadowTextureFadeEnd(float fadeEnd)
          Sets the proportional distance at which texture shadows finish to fading out.
 void setShadowTextureFadeStart(float fadeStart)
          Sets the proportional distance at which texture shadows begin to fade out.
 void setShadowTexturePixelFormat(PixelFormat fmt)
          Set the pixel format of the textures used for texture-based shadows.
 void setShadowTextureReceiverMaterial(java.lang.String name)
          Sets the default material to use for rendering shadow receivers.
 void setShadowTextureSelfShadow(boolean selfShadow)
          Sets whether or not texture shadows should attempt to self-shadow.
 void setShadowTextureSettings(int size, int count, PixelFormat fmt)
          Sets the size and count of textures used in texture-based shadows.
 void setShadowTextureSize(int size)
          Set the size of the texture used for all texture-based shadows.
 void setShadowUseInfiniteFarPlane(boolean enable)
          Sets whether we should use an inifinite camera far plane when rendering stencil shadows.
 void setShadowUseLightClipPlanes(boolean enabled)
          Sets whether when using a built-in additive shadow mode, user clip planes should be used to restrict light rendering.
 void setShowDebugShadows(boolean debug)
          Enables / disables the rendering of debug information for shadows.
 void setSkyBox(boolean enable, java.lang.String materialName, float distance, boolean drawFirst, IQuaternion orientation, java.lang.String groupName)
          Enables / disables a 'sky box' i.e. a 6-sided box at constant distance from the camera representing the sky.
 void setSkyDome(boolean enable, java.lang.String materialName, float curvature, float tiling, float distance, boolean drawFirst, IQuaternion orientation, int xsegments, int ysegments, int ysegments_keep, java.lang.String groupName)
          Enables / disables a 'sky dome' i.e. an illusion of a curved sky.
 void setSkyPlane(boolean enable, IPlane plane, java.lang.String materialName, float scale, float tiling, boolean drawFirst, float bow, int xsegments, int ysegments, java.lang.String groupName)
          Enables / disables a 'sky plane' i.e. a plane at constant distance from the camera representing the sky.
 void setSpecialCaseRenderQueueMode(SceneManager.SpecialCaseRenderQueueMode mode)
          Sets the way the special case render queue list is processed.
static void setSTATICGEOMETRY_TYPE_MASK(long _jni_value_)
           
static void setUSER_TYPE_MASK_LIMIT(long _jni_value_)
           
 void setVisibilityMask(long vmask)
          Sets a mask which is bitwise 'and'ed with objects own visibility masks to determine if the object is visible.
static void setWORLD_GEOMETRY_TYPE_MASK(long _jni_value_)
           
 void setWorldGeometry(IDataStreamPtr stream, java.lang.String typeName)
          Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc.
 void setWorldGeometry(java.lang.String filename)
          Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc.
 void setWorldGeometryRenderQueue(short qid)
          Sets the render queue that the world geometry (if any) this renders will be associated with.
 void showBoundingBoxes(boolean bShow)
          Allows all bounding boxes of scene nodes to be displayed.
 
Methods inherited from class org.xbig.base.NativeObject
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xbig.base.INativeObject
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Constructor Detail

DefaultSceneManager

public DefaultSceneManager(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


DefaultSceneManager

protected DefaultSceneManager(InstancePointer p,
                              boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


DefaultSceneManager

public DefaultSceneManager(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

DefaultSceneManager

public DefaultSceneManager(java.lang.String name)
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

getTypeName

public java.lang.String getTypeName()
Description copied from interface: ISceneManager
Retrieve the type name of this scene manager.

Specified by:
getTypeName in interface ISceneManager

getName

public java.lang.String getName()
Return the instance name of this .

Specified by:
getName in interface ISceneManager

createCamera

public ICamera createCamera(java.lang.String name)
Creates a camera to be managed by this scene manager.

Specified by:
createCamera in interface ISceneManager

getCamera

public ICamera getCamera(java.lang.String name)
Retrieves a pointer to the named camera.

Specified by:
getCamera in interface ISceneManager

hasCamera

public boolean hasCamera(java.lang.String name)
Returns whether a camera with the given name exists.

Specified by:
hasCamera in interface ISceneManager

destroyCamera

public void destroyCamera(ICamera cam)
Removes a camera from the scene.

Specified by:
destroyCamera in interface ISceneManager

destroyCamera

public void destroyCamera(java.lang.String name)
Removes a camera from the scene.

Specified by:
destroyCamera in interface ISceneManager

destroyAllCameras

public void destroyAllCameras()
Removes (and destroys) all cameras from the scene.

Specified by:
destroyAllCameras in interface ISceneManager

createLight

public ILight createLight(java.lang.String name)
Creates a light for use in the scene.

Specified by:
createLight in interface ISceneManager

getLight

public ILight getLight(java.lang.String name)
Returns a pointer to the named which has previously been added to the scene.

Specified by:
getLight in interface ISceneManager

hasLight

public boolean hasLight(java.lang.String name)
Returns whether a light with the given name exists.

Specified by:
hasLight in interface ISceneManager

getLightClippingPlanes

public IPlaneList getLightClippingPlanes(ILight l)
Retrieve a set of clipping planes for a given light.

Specified by:
getLightClippingPlanes in interface ISceneManager

getLightScissorRect

public IRealRect getLightScissorRect(ILight l,
                                     ICamera cam)
Retrieve a scissor rectangle for a given light and camera.

Specified by:
getLightScissorRect in interface ISceneManager

destroyLight

public void destroyLight(java.lang.String name)
Removes the named light from the scene and destroys it.

Specified by:
destroyLight in interface ISceneManager

destroyLight

public void destroyLight(ILight light)
Removes the light from the scene and destroys it based on a pointer.

Specified by:
destroyLight in interface ISceneManager

destroyAllLights

public void destroyAllLights()
Removes and destroys all lights in the scene.

Specified by:
destroyAllLights in interface ISceneManager

_notifyLightsDirty

public void _notifyLightsDirty()
Advance method to increase the lights dirty counter due lights changed.

Specified by:
_notifyLightsDirty in interface ISceneManager

_getLightsDirtyCounter

public long _getLightsDirtyCounter()
Advance method to gets the lights dirty counter.

Specified by:
_getLightsDirtyCounter in interface ISceneManager

_getLightsAffectingFrustum

public ILightList _getLightsAffectingFrustum()
Get the list of lights which could be affecting the frustum.

Specified by:
_getLightsAffectingFrustum in interface ISceneManager

_populateLightList

public void _populateLightList(IVector3 position,
                               float radius,
                               ILightList destList)
Populate a light list with an ordered set of the lights which are closest to the position specified.

Specified by:
_populateLightList in interface ISceneManager

createSceneNode

public ISceneNode createSceneNode()
Creates an instance of a .

Specified by:
createSceneNode in interface ISceneManager

createSceneNode

public ISceneNode createSceneNode(java.lang.String name)
Creates an instance of a with a given name.

Specified by:
createSceneNode in interface ISceneManager

destroySceneNode

public void destroySceneNode(java.lang.String name)
Destroys a with a given name.

Specified by:
destroySceneNode in interface ISceneManager

destroySceneNode

public void destroySceneNode(ISceneNode sn)
Destroys a .

Specified by:
destroySceneNode in interface ISceneManager

getRootSceneNode

public ISceneNode getRootSceneNode()
Gets the at the root of the scene hierarchy.

Specified by:
getRootSceneNode in interface ISceneManager

getSceneNode

public ISceneNode getSceneNode(java.lang.String name)
Retrieves a named from the scene graph.

Specified by:
getSceneNode in interface ISceneManager

hasSceneNode

public boolean hasSceneNode(java.lang.String name)
Returns whether a scene node with the given name exists.

Specified by:
hasSceneNode in interface ISceneManager

createEntity

public IEntity createEntity(java.lang.String entityName,
                            java.lang.String meshName)
Create an (instance of a discrete mesh).

Specified by:
createEntity in interface ISceneManager

createEntity

public IEntity createEntity(java.lang.String entityName,
                            SceneManager.PrefabType ptype)
Create an (instance of a discrete mesh) from a range of prefab shapes.

Specified by:
createEntity in interface ISceneManager

getEntity

public IEntity getEntity(java.lang.String name)
Retrieves a pointer to the named .

Specified by:
getEntity in interface ISceneManager

hasEntity

public boolean hasEntity(java.lang.String name)
Returns whether an entity with the given name exists.

Specified by:
hasEntity in interface ISceneManager

destroyEntity

public void destroyEntity(IEntity ent)
Removes & destroys an from the .

Specified by:
destroyEntity in interface ISceneManager

destroyEntity

public void destroyEntity(java.lang.String name)
Removes & destroys an from the by name.

Specified by:
destroyEntity in interface ISceneManager

destroyAllEntities

public void destroyAllEntities()
Removes & destroys all Entities.

Specified by:
destroyAllEntities in interface ISceneManager

createManualObject

public IManualObject createManualObject(java.lang.String name)
Create a , an object which you populate with geometry manually through a GL immediate-mode style interface.

Specified by:
createManualObject in interface ISceneManager

getManualObject

public IManualObject getManualObject(java.lang.String name)
Retrieves a pointer to the named .

Specified by:
getManualObject in interface ISceneManager

hasManualObject

public boolean hasManualObject(java.lang.String name)
Returns whether a manual object with the given name exists.

Specified by:
hasManualObject in interface ISceneManager

destroyManualObject

public void destroyManualObject(IManualObject obj)
Removes & destroys a from the .

Specified by:
destroyManualObject in interface ISceneManager

destroyManualObject

public void destroyManualObject(java.lang.String name)
Removes & destroys a from the .

Specified by:
destroyManualObject in interface ISceneManager

destroyAllManualObjects

public void destroyAllManualObjects()
Removes & destroys all ManualObjects from the .

Specified by:
destroyAllManualObjects in interface ISceneManager

createBillboardChain

public IBillboardChain createBillboardChain(java.lang.String name)
Create a , an object which you can use to render a linked chain of billboards.

Specified by:
createBillboardChain in interface ISceneManager

getBillboardChain

public IBillboardChain getBillboardChain(java.lang.String name)
Retrieves a pointer to the named .

Specified by:
getBillboardChain in interface ISceneManager

hasBillboardChain

public boolean hasBillboardChain(java.lang.String name)
Returns whether a billboard chain with the given name exists.

Specified by:
hasBillboardChain in interface ISceneManager

destroyBillboardChain

public void destroyBillboardChain(IBillboardChain obj)
Removes & destroys a from the .

Specified by:
destroyBillboardChain in interface ISceneManager

destroyBillboardChain

public void destroyBillboardChain(java.lang.String name)
Removes & destroys a from the .

Specified by:
destroyBillboardChain in interface ISceneManager

destroyAllBillboardChains

public void destroyAllBillboardChains()
Removes & destroys all BillboardChains from the .

Specified by:
destroyAllBillboardChains in interface ISceneManager

createRibbonTrail

public IRibbonTrail createRibbonTrail(java.lang.String name)
Create a , an object which you can use to render a linked chain of billboards which follows one or more nodes.

Specified by:
createRibbonTrail in interface ISceneManager

getRibbonTrail

public IRibbonTrail getRibbonTrail(java.lang.String name)
Retrieves a pointer to the named .

Specified by:
getRibbonTrail in interface ISceneManager

hasRibbonTrail

public boolean hasRibbonTrail(java.lang.String name)
Returns whether a ribbon trail with the given name exists.

Specified by:
hasRibbonTrail in interface ISceneManager

destroyRibbonTrail

public void destroyRibbonTrail(IRibbonTrail obj)
Removes & destroys a from the .

Specified by:
destroyRibbonTrail in interface ISceneManager

destroyRibbonTrail

public void destroyRibbonTrail(java.lang.String name)
Removes & destroys a from the .

Specified by:
destroyRibbonTrail in interface ISceneManager

destroyAllRibbonTrails

public void destroyAllRibbonTrails()
Removes & destroys all RibbonTrails from the .

Specified by:
destroyAllRibbonTrails in interface ISceneManager

createParticleSystem

public IParticleSystem createParticleSystem(java.lang.String name,
                                            java.lang.String templateName)
Creates a particle system based on a template.

Specified by:
createParticleSystem in interface ISceneManager

createParticleSystem

public IParticleSystem createParticleSystem(java.lang.String name,
                                            int quota,
                                            java.lang.String resourceGroup)
Create a blank particle system.

Specified by:
createParticleSystem in interface ISceneManager

getParticleSystem

public IParticleSystem getParticleSystem(java.lang.String name)
Retrieves a pointer to the named .

Specified by:
getParticleSystem in interface ISceneManager

hasParticleSystem

public boolean hasParticleSystem(java.lang.String name)
Returns whether a particle system with the given name exists.

Specified by:
hasParticleSystem in interface ISceneManager

destroyParticleSystem

public void destroyParticleSystem(IParticleSystem obj)
Removes & destroys a from the .

Specified by:
destroyParticleSystem in interface ISceneManager

destroyParticleSystem

public void destroyParticleSystem(java.lang.String name)
Removes & destroys a from the .

Specified by:
destroyParticleSystem in interface ISceneManager

destroyAllParticleSystems

public void destroyAllParticleSystems()
Removes & destroys all ParticleSystems from the .

Specified by:
destroyAllParticleSystems in interface ISceneManager

clearScene

public void clearScene()
Empties the entire scene, inluding all SceneNodes, Entities, Lights, BillboardSets etc. Cameras are not deleted at this stage since they are still referenced by viewports, which are not destroyed during this process.

Specified by:
clearScene in interface ISceneManager

setAmbientLight

public void setAmbientLight(IColourValue colour)
Sets the ambient light level to be used for the scene.

Specified by:
setAmbientLight in interface ISceneManager

getAmbientLight

public IColourValue getAmbientLight()
Returns the ambient light level to be used for the scene.

Specified by:
getAmbientLight in interface ISceneManager

prepareWorldGeometry

public void prepareWorldGeometry(java.lang.String filename)
Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc. This function can be called before setWorldGeometry in a background thread, do to some slow tasks (e.g. IO) that do not involve the backend render system.

Specified by:
prepareWorldGeometry in interface ISceneManager

prepareWorldGeometry

public void prepareWorldGeometry(IDataStreamPtr stream,
                                 java.lang.String typeName)
Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc. This function can be called before setWorldGeometry in a background thread, do to some slow tasks (e.g. IO) that do not involve the backend render system.

Specified by:
prepareWorldGeometry in interface ISceneManager

setWorldGeometry

public void setWorldGeometry(java.lang.String filename)
Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc.

Specified by:
setWorldGeometry in interface ISceneManager

setWorldGeometry

public void setWorldGeometry(IDataStreamPtr stream,
                             java.lang.String typeName)
Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc.

Specified by:
setWorldGeometry in interface ISceneManager

estimateWorldGeometry

public int estimateWorldGeometry(java.lang.String filename)
Estimate the number of loading stages required to load the named world geometry.

Specified by:
estimateWorldGeometry in interface ISceneManager

estimateWorldGeometry

public int estimateWorldGeometry(IDataStreamPtr stream,
                                 java.lang.String typeName)
Estimate the number of loading stages required to load the named world geometry.

Specified by:
estimateWorldGeometry in interface ISceneManager

getSuggestedViewpoint

public void getSuggestedViewpoint(IViewPoint returnValue,
                                  boolean random)
Asks the to provide a suggested viewpoint from which the scene should be viewed.

Specified by:
getSuggestedViewpoint in interface ISceneManager

setOption

public boolean setOption(java.lang.String strKey,
                         VoidPointer pValue)
Method for setting a specific option of the Scene Manager. These options are usually specific for a certain implemntation of the Scene Manager class, and may (and probably will) not exist across different implementations.

Specified by:
setOption in interface ISceneManager

getOption

public boolean getOption(java.lang.String strKey,
                         VoidPointer pDestValue)
Method for getting the value of an implementation-specific Scene Manager option.

Specified by:
getOption in interface ISceneManager

hasOption

public boolean hasOption(java.lang.String strKey)
Method for verifying wether the scene manager has an implementation-specific option.

Specified by:
hasOption in interface ISceneManager

getOptionValues

public boolean getOptionValues(java.lang.String strKey,
                               IStringVector refValueList)
Method for getting all possible values for a specific option. When this list is too large (i.e. the option expects, for example, a float), the return value will be true, but the list will contain just one element whose size will be set to 0. Otherwise, the list will be filled with all the possible values the option can accept.

Specified by:
getOptionValues in interface ISceneManager

getOptionKeys

public boolean getOptionKeys(IStringVector refKeys)
Method for getting all the implementation-specific options of the scene manager.

Specified by:
getOptionKeys in interface ISceneManager

_updateSceneGraph

public void _updateSceneGraph(ICamera cam)
Internal method for updating the scene graph ie the tree of instances managed by this class.

Specified by:
_updateSceneGraph in interface ISceneManager

_findVisibleObjects

public void _findVisibleObjects(ICamera cam,
                                IVisibleObjectsBoundsInfo visibleBounds,
                                boolean onlyShadowCasters)
Internal method which parses the scene to find visible objects to render.

Specified by:
_findVisibleObjects in interface ISceneManager

_applySceneAnimations

public void _applySceneAnimations()
Internal method for applying animations to scene nodes.

Specified by:
_applySceneAnimations in interface ISceneManager

_renderVisibleObjects

public void _renderVisibleObjects()
Sends visible objects found in _findVisibleObjects to the rendering engine.

Specified by:
_renderVisibleObjects in interface ISceneManager

_renderScene

public void _renderScene(ICamera camera,
                         IViewport vp,
                         boolean includeOverlays)
Prompts the class to send its contents to the renderer.

Specified by:
_renderScene in interface ISceneManager

_queueSkiesForRendering

public void _queueSkiesForRendering(ICamera cam)
Internal method for queueing the sky objects with the params as previously set through setSkyBox, setSkyPlane and setSkyDome.

Specified by:
_queueSkiesForRendering in interface ISceneManager

_setDestinationRenderSystem

public void _setDestinationRenderSystem(IRenderSystem sys)
Notifies the scene manager of its destination render system

Specified by:
_setDestinationRenderSystem in interface ISceneManager

setSkyPlane

public void setSkyPlane(boolean enable,
                        IPlane plane,
                        java.lang.String materialName,
                        float scale,
                        float tiling,
                        boolean drawFirst,
                        float bow,
                        int xsegments,
                        int ysegments,
                        java.lang.String groupName)
Enables / disables a 'sky plane' i.e. a plane at constant distance from the camera representing the sky.

Specified by:
setSkyPlane in interface ISceneManager

_setSkyPlane

public void _setSkyPlane(boolean enable,
                         IPlane plane,
                         java.lang.String materialName,
                         float scale,
                         float tiling,
                         short renderQueue,
                         float bow,
                         int xsegments,
                         int ysegments,
                         java.lang.String groupName)
Enables / disables a 'sky plane' i.e. a plane at constant distance from the camera representing the sky.

Specified by:
_setSkyPlane in interface ISceneManager

isSkyPlaneEnabled

public boolean isSkyPlaneEnabled()
Return whether a key plane is enabled

Specified by:
isSkyPlaneEnabled in interface ISceneManager

getSkyPlaneNode

public ISceneNode getSkyPlaneNode()
Get the sky plane node, if enabled.

Specified by:
getSkyPlaneNode in interface ISceneManager

getSkyPlaneGenParameters

public ISceneManager.ISkyPlaneGenParameters getSkyPlaneGenParameters()
Get the parameters used to construct the SkyPlane, if any

Specified by:
getSkyPlaneGenParameters in interface ISceneManager

setSkyBox

public void setSkyBox(boolean enable,
                      java.lang.String materialName,
                      float distance,
                      boolean drawFirst,
                      IQuaternion orientation,
                      java.lang.String groupName)
Enables / disables a 'sky box' i.e. a 6-sided box at constant distance from the camera representing the sky.

Specified by:
setSkyBox in interface ISceneManager

_setSkyBox

public void _setSkyBox(boolean enable,
                       java.lang.String materialName,
                       float distance,
                       short renderQueue,
                       IQuaternion orientation,
                       java.lang.String groupName)
Enables / disables a 'sky box' i.e. a 6-sided box at constant distance from the camera representing the sky.

Specified by:
_setSkyBox in interface ISceneManager

isSkyBoxEnabled

public boolean isSkyBoxEnabled()
Return whether a skybox is enabled

Specified by:
isSkyBoxEnabled in interface ISceneManager

getSkyBoxNode

public ISceneNode getSkyBoxNode()
Get the skybox node, if enabled.

Specified by:
getSkyBoxNode in interface ISceneManager

getSkyBoxGenParameters

public ISceneManager.ISkyBoxGenParameters getSkyBoxGenParameters()
Get the parameters used to generate the current SkyBox, if any

Specified by:
getSkyBoxGenParameters in interface ISceneManager

setSkyDome

public void setSkyDome(boolean enable,
                       java.lang.String materialName,
                       float curvature,
                       float tiling,
                       float distance,
                       boolean drawFirst,
                       IQuaternion orientation,
                       int xsegments,
                       int ysegments,
                       int ysegments_keep,
                       java.lang.String groupName)
Enables / disables a 'sky dome' i.e. an illusion of a curved sky.

Specified by:
setSkyDome in interface ISceneManager

_setSkyDome

public void _setSkyDome(boolean enable,
                        java.lang.String materialName,
                        float curvature,
                        float tiling,
                        float distance,
                        short renderQueue,
                        IQuaternion orientation,
                        int xsegments,
                        int ysegments,
                        int ysegments_keep,
                        java.lang.String groupName)
Enables / disables a 'sky dome' i.e. an illusion of a curved sky.

Specified by:
_setSkyDome in interface ISceneManager

isSkyDomeEnabled

public boolean isSkyDomeEnabled()
Return whether a skydome is enabled

Specified by:
isSkyDomeEnabled in interface ISceneManager

getSkyDomeNode

public ISceneNode getSkyDomeNode()
Get the sky dome node, if enabled.

Specified by:
getSkyDomeNode in interface ISceneManager

getSkyDomeGenParameters

public ISceneManager.ISkyDomeGenParameters getSkyDomeGenParameters()
Get the parameters used to generate the current SkyDome, if any

Specified by:
getSkyDomeGenParameters in interface ISceneManager

setFog

public void setFog(FogMode mode,
                   IColourValue colour,
                   float expDensity,
                   float linearStart,
                   float linearEnd)
Sets the fogging mode applied to the scene.

Specified by:
setFog in interface ISceneManager

getFogMode

public FogMode getFogMode()
Returns the fog mode for the scene.

Specified by:
getFogMode in interface ISceneManager

getFogColour

public IColourValue getFogColour()
Returns the fog colour for the scene.

Specified by:
getFogColour in interface ISceneManager

getFogStart

public float getFogStart()
Returns the fog start distance for the scene.

Specified by:
getFogStart in interface ISceneManager

getFogEnd

public float getFogEnd()
Returns the fog end distance for the scene.

Specified by:
getFogEnd in interface ISceneManager

getFogDensity

public float getFogDensity()
Returns the fog density for the scene.

Specified by:
getFogDensity in interface ISceneManager

createBillboardSet

public IBillboardSet createBillboardSet(java.lang.String name,
                                        long poolSize)
Creates a new for use with this scene manager.

Specified by:
createBillboardSet in interface ISceneManager

getBillboardSet

public IBillboardSet getBillboardSet(java.lang.String name)
Retrieves a pointer to the named .

Specified by:
getBillboardSet in interface ISceneManager

hasBillboardSet

public boolean hasBillboardSet(java.lang.String name)
Returns whether a billboardset with the given name exists.

Specified by:
hasBillboardSet in interface ISceneManager

destroyBillboardSet

public void destroyBillboardSet(IBillboardSet set)
Removes & destroys an from the .

Specified by:
destroyBillboardSet in interface ISceneManager

destroyBillboardSet

public void destroyBillboardSet(java.lang.String name)
Removes & destroys an from the by name.

Specified by:
destroyBillboardSet in interface ISceneManager

destroyAllBillboardSets

public void destroyAllBillboardSets()
Removes & destroys all BillboardSets.

Specified by:
destroyAllBillboardSets in interface ISceneManager

setDisplaySceneNodes

public void setDisplaySceneNodes(boolean display)
Tells the whether it should render the SceneNodes which make up the scene as well as the objects in the scene.

Specified by:
setDisplaySceneNodes in interface ISceneManager

getDisplaySceneNodes

public boolean getDisplaySceneNodes()
Returns true if all scene nodes axis are to be displayed

Specified by:
getDisplaySceneNodes in interface ISceneManager

createAnimation

public IAnimation createAnimation(java.lang.String name,
                                  float length)
Creates an animation which can be used to animate scene nodes.

Specified by:
createAnimation in interface ISceneManager

getAnimation

public IAnimation getAnimation(java.lang.String name)
Looks up an object previously created with createAnimation.

Specified by:
getAnimation in interface ISceneManager

hasAnimation

public boolean hasAnimation(java.lang.String name)
Returns whether an animation with the given name exists.

Specified by:
hasAnimation in interface ISceneManager

destroyAnimation

public void destroyAnimation(java.lang.String name)
Destroys an .

Specified by:
destroyAnimation in interface ISceneManager

destroyAllAnimations

public void destroyAllAnimations()
Removes all animations created using this .

Specified by:
destroyAllAnimations in interface ISceneManager

createAnimationState

public IAnimationState createAnimationState(java.lang.String animName)
Create an object for managing application of animations.

Specified by:
createAnimationState in interface ISceneManager

getAnimationState

public IAnimationState getAnimationState(java.lang.String animName)
Retrieves animation state as previously created using createAnimationState.

Specified by:
getAnimationState in interface ISceneManager

hasAnimationState

public boolean hasAnimationState(java.lang.String name)
Returns whether an animation state with the given name exists.

Specified by:
hasAnimationState in interface ISceneManager

destroyAnimationState

public void destroyAnimationState(java.lang.String name)
Destroys an .

Specified by:
destroyAnimationState in interface ISceneManager

destroyAllAnimationStates

public void destroyAllAnimationStates()
Removes all animation states created using this .

Specified by:
destroyAllAnimationStates in interface ISceneManager

manualRender

public void manualRender(IRenderOperation rend,
                         IPass pass,
                         IViewport vp,
                         IMatrix4 worldMatrix,
                         IMatrix4 viewMatrix,
                         IMatrix4 projMatrix,
                         boolean doBeginEndFrame)
Manual rendering method, for advanced users only.

Specified by:
manualRender in interface ISceneManager

getRenderQueue

public IRenderQueue getRenderQueue()
Retrieves the internal render queue, for advanced users only.

Specified by:
getRenderQueue in interface ISceneManager

addRenderQueueListener

public void addRenderQueueListener(IRenderQueueListener newListener)
Registers a new which will be notified when render queues are processed.

Specified by:
addRenderQueueListener in interface ISceneManager

removeRenderQueueListener

public void removeRenderQueueListener(IRenderQueueListener delListener)
Removes a listener previously added with addRenderQueueListener.

Specified by:
removeRenderQueueListener in interface ISceneManager

addSpecialCaseRenderQueue

public void addSpecialCaseRenderQueue(short qid)
Adds an item to the 'special case' render queue list.

Specified by:
addSpecialCaseRenderQueue in interface ISceneManager

removeSpecialCaseRenderQueue

public void removeSpecialCaseRenderQueue(short qid)
Removes an item to the 'special case' render queue list.

Specified by:
removeSpecialCaseRenderQueue in interface ISceneManager

clearSpecialCaseRenderQueues

public void clearSpecialCaseRenderQueues()
Clears the 'special case' render queue list.

Specified by:
clearSpecialCaseRenderQueues in interface ISceneManager

setSpecialCaseRenderQueueMode

public void setSpecialCaseRenderQueueMode(SceneManager.SpecialCaseRenderQueueMode mode)
Sets the way the special case render queue list is processed.

Specified by:
setSpecialCaseRenderQueueMode in interface ISceneManager

getSpecialCaseRenderQueueMode

public SceneManager.SpecialCaseRenderQueueMode getSpecialCaseRenderQueueMode()
Gets the way the special case render queue list is processed.

Specified by:
getSpecialCaseRenderQueueMode in interface ISceneManager

isRenderQueueToBeProcessed

public boolean isRenderQueueToBeProcessed(short qid)
Returns whether or not the named queue will be rendered based on the current 'special case' render queue list and mode.

Specified by:
isRenderQueueToBeProcessed in interface ISceneManager

setWorldGeometryRenderQueue

public void setWorldGeometryRenderQueue(short qid)
Sets the render queue that the world geometry (if any) this renders will be associated with.

Specified by:
setWorldGeometryRenderQueue in interface ISceneManager

getWorldGeometryRenderQueue

public short getWorldGeometryRenderQueue()
Gets the render queue that the world geometry (if any) this renders will be associated with.

Specified by:
getWorldGeometryRenderQueue in interface ISceneManager

showBoundingBoxes

public void showBoundingBoxes(boolean bShow)
Allows all bounding boxes of scene nodes to be displayed.

Specified by:
showBoundingBoxes in interface ISceneManager

getShowBoundingBoxes

public boolean getShowBoundingBoxes()
Returns if all bounding boxes of scene nodes are to be displayed

Specified by:
getShowBoundingBoxes in interface ISceneManager

_notifyAutotrackingSceneNode

public void _notifyAutotrackingSceneNode(ISceneNode node,
                                         boolean autoTrack)
Internal method for notifying the manager that a is autotracking.

Specified by:
_notifyAutotrackingSceneNode in interface ISceneManager

createAABBQuery

public IAxisAlignedBoxSceneQuery createAABBQuery(IAxisAlignedBox box,
                                                 long mask)
Creates an for this scene manager.

Specified by:
createAABBQuery in interface ISceneManager

createSphereQuery

public ISphereSceneQuery createSphereQuery(ISphere sphere,
                                           long mask)
Creates a for this scene manager.

Specified by:
createSphereQuery in interface ISceneManager

createPlaneBoundedVolumeQuery

public IPlaneBoundedVolumeListSceneQuery createPlaneBoundedVolumeQuery(IPlaneBoundedVolumeList volumes,
                                                                       long mask)
Creates a for this scene manager.

Specified by:
createPlaneBoundedVolumeQuery in interface ISceneManager

createRayQuery

public IRaySceneQuery createRayQuery(IRay ray,
                                     long mask)
Creates a for this scene manager.

Specified by:
createRayQuery in interface ISceneManager

createIntersectionQuery

public IIntersectionSceneQuery createIntersectionQuery(long mask)
Creates an for this scene manager.

Specified by:
createIntersectionQuery in interface ISceneManager

destroyQuery

public void destroyQuery(ISceneQuery query)
Destroys a scene query of any type.

Specified by:
destroyQuery in interface ISceneManager

getCameraIterator

public void getCameraIterator(ISceneManager.ICameraIterator returnValue)
Returns a specialised over all cameras in the scene.

Specified by:
getCameraIterator in interface ISceneManager

getAnimationIterator

public void getAnimationIterator(ISceneManager.IAnimationIterator returnValue)
Returns a specialised over all animations in the scene.

Specified by:
getAnimationIterator in interface ISceneManager

getAnimationStateIterator

public void getAnimationStateIterator(IAnimationStateIterator returnValue)
Returns a specialised over all animation states in the scene.

Specified by:
getAnimationStateIterator in interface ISceneManager

setShadowTechnique

public void setShadowTechnique(ShadowTechnique technique)
Sets the general shadow technique to be used in this scene.

Specified by:
setShadowTechnique in interface ISceneManager

getShadowTechnique

public ShadowTechnique getShadowTechnique()
Gets the current shadow technique.

Specified by:
getShadowTechnique in interface ISceneManager

setShowDebugShadows

public void setShowDebugShadows(boolean debug)
Enables / disables the rendering of debug information for shadows.

Specified by:
setShowDebugShadows in interface ISceneManager

getShowDebugShadows

public boolean getShowDebugShadows()
Are debug shadows shown?

Specified by:
getShowDebugShadows in interface ISceneManager

setShadowColour

public void setShadowColour(IColourValue colour)
Set the colour used to modulate areas in shadow.

Specified by:
setShadowColour in interface ISceneManager

getShadowColour

public IColourValue getShadowColour()
Get the colour used to modulate areas in shadow.

Specified by:
getShadowColour in interface ISceneManager

setShadowDirectionalLightExtrusionDistance

public void setShadowDirectionalLightExtrusionDistance(float dist)
Sets the distance a shadow volume is extruded for a directional light.

Specified by:
setShadowDirectionalLightExtrusionDistance in interface ISceneManager

getShadowDirectionalLightExtrusionDistance

public float getShadowDirectionalLightExtrusionDistance()
Gets the distance a shadow volume is extruded for a directional light.

Specified by:
getShadowDirectionalLightExtrusionDistance in interface ISceneManager

setShadowFarDistance

public void setShadowFarDistance(float distance)
Sets the default maximum distance away from the camera that shadows will be visible. You have to call this function before you create lights or the default distance of zero will be used.

Specified by:
setShadowFarDistance in interface ISceneManager

getShadowFarDistance

public float getShadowFarDistance()
Gets the default maximum distance away from the camera that shadows will be visible.

Specified by:
getShadowFarDistance in interface ISceneManager

getShadowFarDistanceSquared

public float getShadowFarDistanceSquared()
Specified by:
getShadowFarDistanceSquared in interface ISceneManager

setShadowIndexBufferSize

public void setShadowIndexBufferSize(int size)
Sets the maximum size of the index buffer used to render shadow primitives.

Specified by:
setShadowIndexBufferSize in interface ISceneManager

getShadowIndexBufferSize

public int getShadowIndexBufferSize()
Specified by:
getShadowIndexBufferSize in interface ISceneManager

setShadowTextureSize

public void setShadowTextureSize(int size)
Set the size of the texture used for all texture-based shadows.

Specified by:
setShadowTextureSize in interface ISceneManager

setShadowTextureConfig

public void setShadowTextureConfig(int shadowIndex,
                                   int width,
                                   int height,
                                   PixelFormat format)
Set the detailed configuration for a shadow texture.

Specified by:
setShadowTextureConfig in interface ISceneManager

setShadowTextureConfig

public void setShadowTextureConfig(int shadowIndex,
                                   IShadowTextureConfig config)
Set the detailed configuration for a shadow texture.

Specified by:
setShadowTextureConfig in interface ISceneManager

getShadowTextureConfigIterator

public void getShadowTextureConfigIterator(IConstShadowTextureConfigIterator returnValue)
Get an iterator over the current shadow texture settings.

Specified by:
getShadowTextureConfigIterator in interface ISceneManager

setShadowTexturePixelFormat

public void setShadowTexturePixelFormat(PixelFormat fmt)
Set the pixel format of the textures used for texture-based shadows.

Specified by:
setShadowTexturePixelFormat in interface ISceneManager

setShadowTextureCount

public void setShadowTextureCount(int count)
Set the number of textures allocated for texture-based shadows.

Specified by:
setShadowTextureCount in interface ISceneManager

getShadowTextureCount

public int getShadowTextureCount()
Specified by:
getShadowTextureCount in interface ISceneManager

setShadowTextureCountPerLightType

public void setShadowTextureCountPerLightType(Light.LightTypes type,
                                              int count)
Set the number of shadow textures a light type uses.

Specified by:
setShadowTextureCountPerLightType in interface ISceneManager

getShadowTextureCountPerLightType

public int getShadowTextureCountPerLightType(Light.LightTypes type)
Specified by:
getShadowTextureCountPerLightType in interface ISceneManager

setShadowTextureSettings

public void setShadowTextureSettings(int size,
                                     int count,
                                     PixelFormat fmt)
Sets the size and count of textures used in texture-based shadows.

Specified by:
setShadowTextureSettings in interface ISceneManager

getShadowTexture

public ITexturePtr getShadowTexture(int shadowIndex)
Get a reference to the shadow texture currently in use at the given index.

Specified by:
getShadowTexture in interface ISceneManager

setShadowDirLightTextureOffset

public void setShadowDirLightTextureOffset(float offset)
Sets the proportional distance which a texture shadow which is generated from a directional light will be offset into the camera view to make best use of texture space.

Specified by:
setShadowDirLightTextureOffset in interface ISceneManager

getShadowDirLightTextureOffset

public float getShadowDirLightTextureOffset()
Gets the proportional distance which a texture shadow which is generated from a directional light will be offset into the camera view to make best use of texture space.

Specified by:
getShadowDirLightTextureOffset in interface ISceneManager

setShadowTextureFadeStart

public void setShadowTextureFadeStart(float fadeStart)
Sets the proportional distance at which texture shadows begin to fade out.

Specified by:
setShadowTextureFadeStart in interface ISceneManager

setShadowTextureFadeEnd

public void setShadowTextureFadeEnd(float fadeEnd)
Sets the proportional distance at which texture shadows finish to fading out.

Specified by:
setShadowTextureFadeEnd in interface ISceneManager

setShadowTextureSelfShadow

public void setShadowTextureSelfShadow(boolean selfShadow)
Sets whether or not texture shadows should attempt to self-shadow.

Specified by:
setShadowTextureSelfShadow in interface ISceneManager

getShadowTextureSelfShadow

public boolean getShadowTextureSelfShadow()
Specified by:
getShadowTextureSelfShadow in interface ISceneManager

setShadowTextureCasterMaterial

public void setShadowTextureCasterMaterial(java.lang.String name)
Sets the default material to use for rendering shadow casters.

Specified by:
setShadowTextureCasterMaterial in interface ISceneManager

setShadowTextureReceiverMaterial

public void setShadowTextureReceiverMaterial(java.lang.String name)
Sets the default material to use for rendering shadow receivers.

Specified by:
setShadowTextureReceiverMaterial in interface ISceneManager

setShadowCasterRenderBackFaces

public void setShadowCasterRenderBackFaces(boolean bf)
Sets whether or not shadow casters should be rendered into shadow textures using their back faces rather than their front faces.

Specified by:
setShadowCasterRenderBackFaces in interface ISceneManager

getShadowCasterRenderBackFaces

public boolean getShadowCasterRenderBackFaces()
Gets whether or not shadow casters should be rendered into shadow textures using their back faces rather than their front faces.

Specified by:
getShadowCasterRenderBackFaces in interface ISceneManager

setShadowCameraSetup

public void setShadowCameraSetup(IShadowCameraSetupPtr shadowSetup)
Set the shadow camera setup to use for all lights which don't have their own shadow camera setup.

Specified by:
setShadowCameraSetup in interface ISceneManager

getShadowCameraSetup

public IShadowCameraSetupPtr getShadowCameraSetup()
Get the shadow camera setup in use for all lights which don't have their own shadow camera setup.

Specified by:
getShadowCameraSetup in interface ISceneManager

setShadowUseInfiniteFarPlane

public void setShadowUseInfiniteFarPlane(boolean enable)
Sets whether we should use an inifinite camera far plane when rendering stencil shadows.

Specified by:
setShadowUseInfiniteFarPlane in interface ISceneManager

isShadowTechniqueStencilBased

public boolean isShadowTechniqueStencilBased()
Is there a stencil shadow based shadowing technique in use?

Specified by:
isShadowTechniqueStencilBased in interface ISceneManager

isShadowTechniqueTextureBased

public boolean isShadowTechniqueTextureBased()
Is there a texture shadow based shadowing technique in use?

Specified by:
isShadowTechniqueTextureBased in interface ISceneManager

isShadowTechniqueModulative

public boolean isShadowTechniqueModulative()
Is there a modulative shadowing technique in use?

Specified by:
isShadowTechniqueModulative in interface ISceneManager

isShadowTechniqueAdditive

public boolean isShadowTechniqueAdditive()
Is there an additive shadowing technique in use?

Specified by:
isShadowTechniqueAdditive in interface ISceneManager

isShadowTechniqueIntegrated

public boolean isShadowTechniqueIntegrated()
Is the shadow technique integrated into primary materials?

Specified by:
isShadowTechniqueIntegrated in interface ISceneManager

isShadowTechniqueInUse

public boolean isShadowTechniqueInUse()
Is there any shadowing technique in use?

Specified by:
isShadowTechniqueInUse in interface ISceneManager

setShadowUseLightClipPlanes

public void setShadowUseLightClipPlanes(boolean enabled)
Sets whether when using a built-in additive shadow mode, user clip planes should be used to restrict light rendering.

Specified by:
setShadowUseLightClipPlanes in interface ISceneManager

getShadowUseLightClipPlanes

public boolean getShadowUseLightClipPlanes()
Gets whether when using a built-in additive shadow mode, user clip planes should be used to restrict light rendering.

Specified by:
getShadowUseLightClipPlanes in interface ISceneManager

addListener

public void addListener(ISceneManager.IListener s)
Add a listener which will get called back on scene manager events.

Specified by:
addListener in interface ISceneManager

removeListener

public void removeListener(ISceneManager.IListener s)
Remove a listener

Specified by:
removeListener in interface ISceneManager

createStaticGeometry

public IStaticGeometry createStaticGeometry(java.lang.String name)
Creates a instance suitable for use with this .

Specified by:
createStaticGeometry in interface ISceneManager

getStaticGeometry

public IStaticGeometry getStaticGeometry(java.lang.String name)
Retrieve a previously created instance.

Specified by:
getStaticGeometry in interface ISceneManager

hasStaticGeometry

public boolean hasStaticGeometry(java.lang.String name)
Returns whether a static geometry instance with the given name exists.

Specified by:
hasStaticGeometry in interface ISceneManager

destroyStaticGeometry

public void destroyStaticGeometry(IStaticGeometry geom)
Remove & destroy a instance.

Specified by:
destroyStaticGeometry in interface ISceneManager

destroyStaticGeometry

public void destroyStaticGeometry(java.lang.String name)
Remove & destroy a instance.

Specified by:
destroyStaticGeometry in interface ISceneManager

destroyAllStaticGeometry

public void destroyAllStaticGeometry()
Remove & destroy all instances.

Specified by:
destroyAllStaticGeometry in interface ISceneManager

createInstancedGeometry

public IInstancedGeometry createInstancedGeometry(java.lang.String name)
Creates a instance suitable for use with this .

Specified by:
createInstancedGeometry in interface ISceneManager

getInstancedGeometry

public IInstancedGeometry getInstancedGeometry(java.lang.String name)
Retrieve a previously created instance.

Specified by:
getInstancedGeometry in interface ISceneManager

destroyInstancedGeometry

public void destroyInstancedGeometry(IInstancedGeometry geom)
Remove & destroy a instance.

Specified by:
destroyInstancedGeometry in interface ISceneManager

destroyInstancedGeometry

public void destroyInstancedGeometry(java.lang.String name)
Remove & destroy a instance.

Specified by:
destroyInstancedGeometry in interface ISceneManager

destroyAllInstancedGeometry

public void destroyAllInstancedGeometry()
Remove & destroy all instances.

Specified by:
destroyAllInstancedGeometry in interface ISceneManager

createMovableObject

public IMovableObject createMovableObject(java.lang.String name,
                                          java.lang.String typeName,
                                          INameValuePairList params)
Create a movable object of the type specified.

Specified by:
createMovableObject in interface ISceneManager

destroyMovableObject

public void destroyMovableObject(java.lang.String name,
                                 java.lang.String typeName)
Destroys a with the name specified, of the type specified.

Specified by:
destroyMovableObject in interface ISceneManager

destroyMovableObject

public void destroyMovableObject(IMovableObject m)
Destroys a .

Specified by:
destroyMovableObject in interface ISceneManager

destroyAllMovableObjectsByType

public void destroyAllMovableObjectsByType(java.lang.String typeName)
Destroy all MovableObjects of a given type.

Specified by:
destroyAllMovableObjectsByType in interface ISceneManager

destroyAllMovableObjects

public void destroyAllMovableObjects()
Destroy all MovableObjects.

Specified by:
destroyAllMovableObjects in interface ISceneManager

getMovableObject

public IMovableObject getMovableObject(java.lang.String name,
                                       java.lang.String typeName)
Get a reference to a previously created .

Specified by:
getMovableObject in interface ISceneManager

hasMovableObject

public boolean hasMovableObject(java.lang.String name,
                                java.lang.String typeName)
Returns whether a movable object instance with the given name exists.

Specified by:
hasMovableObject in interface ISceneManager

getMovableObjectIterator

public void getMovableObjectIterator(ISceneManager.IMovableObjectIterator returnValue,
                                     java.lang.String typeName)
Get an iterator over all MovableObect instances of a given type.

Specified by:
getMovableObjectIterator in interface ISceneManager

injectMovableObject

public void injectMovableObject(IMovableObject m)
Inject a instance created externally.

Specified by:
injectMovableObject in interface ISceneManager

extractMovableObject

public void extractMovableObject(java.lang.String name,
                                 java.lang.String typeName)
Extract a previously injected .

Specified by:
extractMovableObject in interface ISceneManager

extractMovableObject

public void extractMovableObject(IMovableObject m)
Extract a previously injected .

Specified by:
extractMovableObject in interface ISceneManager

extractAllMovableObjectsByType

public void extractAllMovableObjectsByType(java.lang.String typeName)
Extract all injected MovableObjects of a given type.

Specified by:
extractAllMovableObjectsByType in interface ISceneManager

setVisibilityMask

public void setVisibilityMask(long vmask)
Sets a mask which is bitwise 'and'ed with objects own visibility masks to determine if the object is visible.

Specified by:
setVisibilityMask in interface ISceneManager

getVisibilityMask

public long getVisibilityMask()
Gets a mask which is bitwise 'and'ed with objects own visibility masks to determine if the object is visible.

Specified by:
getVisibilityMask in interface ISceneManager

_getCombinedVisibilityMask

public long _getCombinedVisibilityMask()
Internal method for getting the combination between the global visibility mask and the per-viewport visibility mask.

Specified by:
_getCombinedVisibilityMask in interface ISceneManager

setFindVisibleObjects

public void setFindVisibleObjects(boolean find)
Sets whether the should search for visible objects, or whether they are being manually handled.

Specified by:
setFindVisibleObjects in interface ISceneManager

getFindVisibleObjects

public boolean getFindVisibleObjects()
Gets whether the should search for visible objects, or whether they are being manually handled.

Specified by:
getFindVisibleObjects in interface ISceneManager

setNormaliseNormalsOnScale

public void setNormaliseNormalsOnScale(boolean n)
Set whether to automatically normalise normals on objects whenever they are scaled.

Specified by:
setNormaliseNormalsOnScale in interface ISceneManager

getNormaliseNormalsOnScale

public boolean getNormaliseNormalsOnScale()
Get whether to automatically normalise normals on objects whenever they are scaled.

Specified by:
getNormaliseNormalsOnScale in interface ISceneManager

setFlipCullingOnNegativeScale

public void setFlipCullingOnNegativeScale(boolean n)
Set whether to automatically flip the culling mode on objects whenever they are negatively scaled.

Specified by:
setFlipCullingOnNegativeScale in interface ISceneManager

getFlipCullingOnNegativeScale

public boolean getFlipCullingOnNegativeScale()
Get whether to automatically flip the culling mode on objects whenever they are negatively scaled.

Specified by:
getFlipCullingOnNegativeScale in interface ISceneManager

_injectRenderWithPass

public void _injectRenderWithPass(IPass pass,
                                  IRenderable rend,
                                  boolean shadowDerivation)
Render something as if it came from the current queue.

Specified by:
_injectRenderWithPass in interface ISceneManager

_suppressRenderStateChanges

public void _suppressRenderStateChanges(boolean suppress)
Indicates to the whether it should suppress changing the states when rendering objects.

Specified by:
_suppressRenderStateChanges in interface ISceneManager

_areRenderStateChangesSuppressed

public boolean _areRenderStateChangesSuppressed()
Are render state changes suppressed?

Specified by:
_areRenderStateChangesSuppressed in interface ISceneManager

_setPass

public IPass _setPass(IPass pass,
                      boolean evenIfSuppressed,
                      boolean shadowDerivation)
Internal method for setting up the renderstate for a rendering pass.

Specified by:
_setPass in interface ISceneManager

_suppressShadows

public void _suppressShadows(boolean suppress)
Indicates to the whether it should suppress the active shadow rendering technique until told otherwise.

Specified by:
_suppressShadows in interface ISceneManager

_areShadowsSuppressed

public boolean _areShadowsSuppressed()
Are shadows suppressed?

Specified by:
_areShadowsSuppressed in interface ISceneManager

_renderQueueGroupObjects

public void _renderQueueGroupObjects(IRenderQueueGroup group,
                                     QueuedRenderableCollection.OrganisationMode om)
Render the objects in a given queue group

Specified by:
_renderQueueGroupObjects in interface ISceneManager

setQueuedRenderableVisitor

public void setQueuedRenderableVisitor(ISceneManager.ISceneMgrQueuedRenderableVisitor visitor)
Advanced method for supplying an alternative visitor, used for parsing the render queues and sending the results to the renderer.

Specified by:
setQueuedRenderableVisitor in interface ISceneManager

getQueuedRenderableVisitor

public ISceneManager.ISceneMgrQueuedRenderableVisitor getQueuedRenderableVisitor()
Gets the current visitor object which processes queued renderables.

Specified by:
getQueuedRenderableVisitor in interface ISceneManager

getDestinationRenderSystem

public IRenderSystem getDestinationRenderSystem()
Get the rendersystem subclass to which the output of this Scene Manager gets sent

Specified by:
getDestinationRenderSystem in interface ISceneManager

getCurrentViewport

public IViewport getCurrentViewport()
Gets the current viewport being rendered (advanced use only, only valid during viewport update.

Specified by:
getCurrentViewport in interface ISceneManager

getVisibleObjectsBoundsInfo

public IVisibleObjectsBoundsInfo getVisibleObjectsBoundsInfo(ICamera cam)
Returns a visibility boundary box for a specific camera.

Specified by:
getVisibleObjectsBoundsInfo in interface ISceneManager

getShadowCasterBoundsInfo

public IVisibleObjectsBoundsInfo getShadowCasterBoundsInfo(ILight light,
                                                           int iteration)
Returns the shadow caster AAB for a specific light-camera combination

Specified by:
getShadowCasterBoundsInfo in interface ISceneManager

setCameraRelativeRendering

public void setCameraRelativeRendering(boolean rel)
Set whether to use camera-relative co-ordinates when rendering, ie to always place the camera at the origin and move the world around it.

Specified by:
setCameraRelativeRendering in interface ISceneManager

getCameraRelativeRendering

public boolean getCameraRelativeRendering()
Get whether to use camera-relative co-ordinates when rendering, ie to always place the camera at the origin and move the world around it.

Specified by:
getCameraRelativeRendering in interface ISceneManager

getWORLD_GEOMETRY_TYPE_MASK

public static long getWORLD_GEOMETRY_TYPE_MASK()

setWORLD_GEOMETRY_TYPE_MASK

public static void setWORLD_GEOMETRY_TYPE_MASK(long _jni_value_)

getENTITY_TYPE_MASK

public static long getENTITY_TYPE_MASK()

setENTITY_TYPE_MASK

public static void setENTITY_TYPE_MASK(long _jni_value_)

getFX_TYPE_MASK

public static long getFX_TYPE_MASK()

setFX_TYPE_MASK

public static void setFX_TYPE_MASK(long _jni_value_)

getSTATICGEOMETRY_TYPE_MASK

public static long getSTATICGEOMETRY_TYPE_MASK()

setSTATICGEOMETRY_TYPE_MASK

public static void setSTATICGEOMETRY_TYPE_MASK(long _jni_value_)

getLIGHT_TYPE_MASK

public static long getLIGHT_TYPE_MASK()

setLIGHT_TYPE_MASK

public static void setLIGHT_TYPE_MASK(long _jni_value_)

getFRUSTUM_TYPE_MASK

public static long getFRUSTUM_TYPE_MASK()

setFRUSTUM_TYPE_MASK

public static void setFRUSTUM_TYPE_MASK(long _jni_value_)

getUSER_TYPE_MASK_LIMIT

public static long getUSER_TYPE_MASK_LIMIT()

setUSER_TYPE_MASK_LIMIT

public static void setUSER_TYPE_MASK_LIMIT(long _jni_value_)


Copyright © 2007 netAllied GmbH. All Rights Reserved.