OGRE 14.3
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::OctreeSceneManager Class Reference

Specialized SceneManager that divides the geometry into an octree in order to facilitate spatial queries. More...

#include <OgreOctreeSceneManager.h>

+ Inheritance diagram for Ogre::OctreeSceneManager:

Public Member Functions

 OctreeSceneManager (const String &name)
 Standard Constructor.
 
 OctreeSceneManager (const String &name, AxisAlignedBox &box, int max_depth)
 Standard Constructor.
 
 ~OctreeSceneManager ()
 Standard destructor.
 
void _addOctreeNode (OctreeNode *, Octree *octree, int depth=0)
 Adds the Octree Node, starting at the given octree, and recursing at max to the specified depth.
 
void _findVisibleObjects (Camera *cam, VisibleObjectsBoundsInfo *visibleBounds, bool onlyShadowCasters) override
 Recurses through the octree determining which nodes are visible.
 
void _removeOctreeNode (OctreeNode *)
 Removes the given octree node.
 
void _updateOctreeNode (OctreeNode *)
 Checks the given OctreeNode, and determines if it needs to be moved to a different octant.
 
void _updateSceneGraph (Camera *cam) override
 Does nothing more.
 
void clearScene (void) override
 Overridden from SceneManager.
 
AxisAlignedBoxSceneQuerycreateAABBQuery (const AxisAlignedBox &box, uint32 mask) override
 Creates an AxisAlignedBoxSceneQuery for this scene manager.
 
CameracreateCamera (const String &name) override
 Creates a specialized OctreeCamera.
 
IntersectionSceneQuerycreateIntersectionQuery (uint32 mask) override
 Creates an IntersectionSceneQuery for this scene manager.
 
PlaneBoundedVolumeListSceneQuerycreatePlaneBoundedVolumeQuery (const PlaneBoundedVolumeList &volumes, uint32 mask) override
 Creates a PlaneBoundedVolumeListSceneQuery for this scene manager.
 
RaySceneQuerycreateRayQuery (const Ray &ray, uint32 mask) override
 Creates a RaySceneQuery for this scene manager.
 
SceneNodecreateSceneNodeImpl (const String &name) override
 Creates a specialized OctreeNode.
 
SceneNodecreateSceneNodeImpl (void) override
 Creates a specialized OctreeNode.
 
SphereSceneQuerycreateSphereQuery (const Sphere &sphere, uint32 mask) override
 Creates a SphereSceneQuery for this scene manager.
 
void destroySceneNode (const String &name) override
 Deletes a scene node.
 
void findNodesIn (const AxisAlignedBox &box, std::list< SceneNode * > &list, SceneNode *exclude=0)
 Recurses the octree, adding any nodes intersecting with the box into the given list.
 
void findNodesIn (const PlaneBoundedVolume &volume, std::list< SceneNode * > &list, SceneNode *exclude=0)
 Recurses the octree, adding any nodes intersecting with the volume into the given list.
 
void findNodesIn (const Ray &ray, std::list< SceneNode * > &list, SceneNode *exclude=0)
 Recurses the octree, adding any nodes intersecting with the ray into the given list.
 
void findNodesIn (const Sphere &sphere, std::list< SceneNode * > &list, SceneNode *exclude=0)
 Recurses the octree, adding any nodes intersecting with the sphere into the given list.
 
bool getOption (const String &, void *) override
 Gets the given option for the Scene Manager.
 
bool getOptionKeys (StringVector &refKeys) override
 Method for getting all the implementation-specific options of the scene manager.
 
bool getOptionValues (const String &key, StringVector &refValueList) override
 Method for getting all possible values for a specific option.
 
const StringgetTypeName (void) const override
 Retrieve the type name of this scene manager.
 
void init (AxisAlignedBox &box, int d)
 Initializes the manager to the given box and depth.
 
void resize (const AxisAlignedBox &box)
 Resizes the octree to the given size.
 
bool setOption (const String &, const void *) override
 Sets the given option for the SceneManager.
 
void setShowBoxes (bool b)
 Sets the box visibility flag.
 
void walkOctree (OctreeCamera *, RenderQueue *, Octree *, VisibleObjectsBoundsInfo *visibleBounds, bool foundvisible, bool onlyShadowCasters)
 Walks through the octree, adding any visible objects to the render queue.
 
- Public Member Functions inherited from Ogre::SceneManager
 SceneManager (const String &instanceName)
 Constructor.
 
virtual ~SceneManager ()
 Default destructor.
 
CompositorChain_getActiveCompositorChain () const
 Gets the active compositor chain of the current scene being rendered.
 
const AutoParamDataSource_getAutoParamDataSource ()
 
uint32 _getCombinedVisibilityMask (void) const
 Internal method for getting the combination between the global visibility mask and the per-viewport visibility mask.
 
IlluminationRenderStage _getCurrentRenderStage ()
 
void _handleLodEvents ()
 Handle LOD events.
 
void _injectRenderWithPass (Pass *pass, Renderable *rend, bool shadowDerivation=true, bool doLightIteration=false, const LightList *manualLightList=0)
 Render something as if it came from the current queue.
 
void _issueRenderOp (Renderable *rend, const Pass *pass)
 Internal method for issuing the render operation.
 
void _markGpuParamsDirty (uint16 mask)
 Method to allow you to mark gpu parameters as dirty, causing them to be updated according to the mask that you set when updateGpuProgramParameters is next called.
 
void _notifyAutotrackingSceneNode (SceneNode *node, bool autoTrack)
 Internal method for notifying the manager that a SceneNode is autotracking.
 
void _notifyEntityMaterialLodChanged (EntityMaterialLodChangedEvent &evt)
 Notify that an entity material LOD change event has occurred.
 
void _notifyEntityMeshLodChanged (EntityMeshLodChangedEvent &evt)
 Notify that an entity mesh LOD change event has occurred.
 
void _notifyMovableObjectLodChanged (MovableObjectLodChangedEvent &evt)
 Notify that a movable object LOD change event has occurred.
 
RenderContext_pauseRendering ()
 Pause rendering of the frame.
 
void _releaseManualHardwareResources ()
 Notifies the scene manager that hardware resources were lost.
 
void _renderQueueGroupObjects (RenderQueueGroup *group, QueuedRenderableCollection::OrganisationMode om)
 Render the objects in a given queue group.
 
virtual void _renderScene (Camera *camera, Viewport *vp, bool includeOverlays=true)
 Prompts the class to send its contents to the renderer.
 
void _renderVisibleObjects (void)
 Sends visible objects found in _findVisibleObjects to the rendering engine.
 
void _restoreManualHardwareResources ()
 Notifies the scene manager that hardware resources should be restored.
 
void _resumeRendering (RenderContext *context)
 Resume rendering of the frame.
 
void _setActiveCompositorChain (CompositorChain *chain)
 Sets the active compositor chain of the current scene being rendered.
 
void _setDestinationRenderSystem (RenderSystem *sys)
 Notifies the scene manager of its destination render system.
 
const Pass_setPass (const Pass *pass, bool shadowDerivation=true)
 Internal method for setting up the renderstate for a rendering pass.
 
void addListener (Listener *s)
 Add a listener which will get called back on scene manager events.
 
void addLodListener (LodListener *listener)
 Add a level of detail listener.
 
void addRenderObjectListener (RenderObjectListener *newListener)
 Registers a new Render Object Listener which will be notified when rendering an object.
 
void addRenderQueueListener (RenderQueueListener *newListener)
 Registers a new RenderQueueListener which will be notified when render queues are processed.
 
void addShadowTextureListener (ShadowTextureListener *s)
 Add a listener which will get called back on shadow texture events.
 
void addSpecialCaseRenderQueue (uint8 qid)
 Adds an item to the 'special case' render queue list.
 
void clearSpecialCaseRenderQueues (void)
 Clears the 'special case' render queue list.
 
const ColourValuegetAmbientLight (void) const
 Returns the ambient light level to be used for the scene.
 
ViewportgetCurrentViewport (void) const
 Gets the current viewport being rendered (advanced use only, only valid during viewport update.
 
RenderSystemgetDestinationRenderSystem ()
 Get the rendersystem subclass to which the output of this Scene Manager gets sent.
 
bool getFindVisibleObjects (void)
 Gets whether the SceneManager should search for visible objects, or whether they are being manually handled.
 
bool getFlipCullingOnNegativeScale () const
 Get whether to automatically flip the culling mode on objects whenever they are negatively scaled.
 
const StringgetName (void) const
 Return the instance name of this SceneManager.
 
SceneMgrQueuedRenderableVisitorgetQueuedRenderableVisitor (void) const
 Gets the current visitor object which processes queued renderables.
 
RenderQueuegetRenderQueue (void)
 Retrieves the internal render queue, for advanced users only.
 
const VisibleObjectsBoundsInfogetShadowCasterBoundsInfo (const Light *light, size_t iteration=0) const
 Returns the shadow caster AAB for a specific light-camera combination.
 
SpecialCaseRenderQueueMode getSpecialCaseRenderQueueMode (void)
 Gets the way the special case render queue list is processed.
 
virtual ViewPoint getSuggestedViewpoint (bool random=false)
 Asks the SceneManager to provide a suggested viewpoint from which the scene should be viewed.
 
uint32 getVisibilityMask (void)
 Gets a mask which is bitwise 'and'ed with objects own visibility masks to determine if the object is visible.
 
const VisibleObjectsBoundsInfogetVisibleObjectsBoundsInfo (const Camera *cam) const
 Returns a visibility boundary box for a specific camera.
 
uint8 getWorldGeometryRenderQueue ()
 Gets the render queue that the world geometry (if any) this SceneManager renders will be associated with.
 
virtual bool hasOption (const String &strKey) const
 Method for verifying whether the scene manager has an implementation-specific option.
 
bool isLateMaterialResolving () const
 Gets whether using late material resolving or not.
 
bool isRenderQueueToBeProcessed (uint8 qid)
 Returns whether or not the named queue will be rendered based on the current 'special case' render queue list and mode.
 
void manualRender (Renderable *rend, const Pass *pass, Viewport *vp, const Affine3 &viewMatrix, const Matrix4 &projMatrix, bool doBeginEndFrame=false, bool lightScissoringClipping=true, bool doLightIteration=true, const LightList *manualLightList=0)
 Manual rendering method for rendering a single object.
 
void manualRender (RenderOperation *rend, Pass *pass, Viewport *vp, const Affine3 &worldMatrix, const Affine3 &viewMatrix, const Matrix4 &projMatrix, bool doBeginEndFrame=false)
 Manual rendering method, for advanced users only.
 
 OGRE_MUTEX (sceneGraphMutex)
 Mutex to protect the scene graph from simultaneous access from multiple threads.
 
void removeListener (Listener *s)
 Remove a listener.
 
void removeLodListener (LodListener *listener)
 Remove a level of detail listener.
 
void removeRenderObjectListener (RenderObjectListener *delListener)
 Removes a listener previously added with addRenderObjectListener.
 
void removeRenderQueueListener (RenderQueueListener *delListener)
 Removes a listener previously added with addRenderQueueListener.
 
void removeShadowTextureListener (ShadowTextureListener *s)
 Remove a listener.
 
void removeSpecialCaseRenderQueue (uint8 qid)
 Removes an item to the 'special case' render queue list.
 
void setAmbientLight (const ColourValue &colour)
 Sets the ambient light level to be used for the scene.
 
void setFindVisibleObjects (bool find)
 Sets whether the SceneManager should search for visible objects, or whether they are being manually handled.
 
void setFlipCullingOnNegativeScale (bool n)
 Set whether to automatically flip the culling mode on objects whenever they are negatively scaled.
 
void setLateMaterialResolving (bool isLate)
 Sets whether to use late material resolving or not.
 
void setQueuedRenderableVisitor (SceneMgrQueuedRenderableVisitor *visitor)
 Advanced method for supplying an alternative visitor, used for parsing the render queues and sending the results to the renderer.
 
void setSpecialCaseRenderQueueMode (SpecialCaseRenderQueueMode mode)
 Sets the way the special case render queue list is processed.
 
void setVisibilityMask (uint32 vmask)
 Sets a mask which is bitwise 'and'ed with objects own visibility masks to determine if the object is visible.
 
void setWorldGeometryRenderQueue (uint8 qid)
 Sets the render queue that the world geometry (if any) this SceneManager renders will be associated with.
 
CameragetCamera (const String &name) const
 Retrieves a pointer to the named camera.
 
bool hasCamera (const String &name) const
 Returns whether a camera with the given name exists.
 
void destroyCamera (Camera *cam)
 Removes a camera from the scene.
 
void destroyCamera (const String &name)
 Removes a camera from the scene.
 
void destroyAllCameras (void)
 Removes (and destroys) all cameras from the scene.
 
void setCameraRelativeRendering (bool rel)
 Set whether to use camera-relative coordinates when rendering, ie to always place the camera at the origin and move the world around it.
 
bool getCameraRelativeRendering () const
 Get whether to use camera-relative coordinates when rendering, ie to always place the camera at the origin and move the world around it.
 
CameraIterator getCameraIterator (void)
 Returns a specialised MapIterator over all cameras in the scene.
 
const CameraListgetCameras () const
 Returns a const version of the camera list.
 
virtual LightcreateLight (const String &name)
 Creates a light for use in the scene.
 
LightcreateLight (const String &name, Light::LightTypes type)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
virtual LightcreateLight ()
 Creates a light with a generated name.
 
LightcreateLight (Light::LightTypes type)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
virtual LightgetLight (const String &name) const
 Get a reference to a previously created object instance.
 
virtual bool hasLight (const String &name) const
 Returns whether a object instance with the given name exists.
 
const PlaneListgetLightClippingPlanes (Light *l)
 Retrieve a set of clipping planes for a given light.
 
const RealRectgetLightScissorRect (Light *l, const Camera *cam)
 Retrieve a scissor rectangle for a given light and camera.
 
virtual void invalidatePerFrameScissorRectCache ()
 Scissor rects are cached during frame, and this cache should be explicitly invalidated if several renders are done during one frame using different projections matrices, for example for tiled, stereo or multiview orthographic projection rendering.
 
virtual void destroyLight (const String &name)
 Removes the light from the scene and destroys it.
 
void destroyLight (Light *light)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
virtual void destroyAllLights (void)
 Removes and destroys all lights in the scene.
 
void _notifyLightsDirty (void)
 Advanced method to increase the lights dirty counter due to lights having changed.
 
ulong _getLightsDirtyCounter (void) const
 Advanced method to gets the lights dirty counter.
 
const LightList_getLightsAffectingFrustum (void) const
 Get the list of lights which could be affecting the frustum.
 
void _populateLightList (const Vector3 &position, Real radius, LightList &destList, uint32 lightMask=0xFFFFFFFF)
 Populate a light list with an ordered set of the lights which are closest to the position specified.
 
void _populateLightList (const SceneNode *sn, Real radius, LightList &destList, uint32 lightMask=0xFFFFFFFF)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
SceneNodecreateSceneNode (void)
 Creates an instance of a SceneNode.
 
SceneNodecreateSceneNode (const String &name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
virtual void destroySceneNode (SceneNode *sn)
 Destroys a SceneNode.
 
SceneNodegetRootSceneNode (void)
 Gets the SceneNode at the root of the scene hierarchy.
 
SceneNodegetSceneNode (const String &name, bool throwExceptionIfNotFound=true) const
 Retrieves a named SceneNode from the scene graph.
 
bool hasSceneNode (const String &name) const
 Returns whether a scene node with the given name exists.
 
void setDisplaySceneNodes (bool display)
 Tells the SceneManager whether it should render the SceneNodes which make up the scene as well as the objects in the scene.
 
bool getDisplaySceneNodes (void) const
 Returns true if all scene nodes axis are to be displayed.
 
void showBoundingBoxes (bool bShow)
 Allows all bounding boxes of scene nodes to be displayed.
 
bool getShowBoundingBoxes () const
 Returns if all bounding boxes of scene nodes are to be displayed.
 
DebugDrawergetDebugDrawer () const
 
EntitycreateEntity (const String &entityName, const String &meshName, const String &groupName=ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME)
 Create an Entity (instance of a discrete mesh).
 
EntitycreateEntity (const String &entityName, const MeshPtr &pMesh)
 Create an Entity (instance of a discrete mesh).
 
EntitycreateEntity (const String &meshName)
 Create an Entity (instance of a discrete mesh) with an autogenerated name.
 
EntitycreateEntity (const MeshPtr &pMesh)
 Create an Entity (instance of a discrete mesh) with an autogenerated name.
 
EntitygetEntity (const String &name) const
 Get a reference to a previously created object instance.
 
bool hasEntity (const String &name) const
 Returns whether a object instance with the given name exists.
 
void destroyEntity (MovableObject *ent)
 Removes & destroys an Entity from the SceneManager.
 
void destroyEntity (const String &name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void destroyAllEntities (void)
 Removes & destroys all Entities.
 
ManualObjectcreateManualObject (const String &name)
 Create a ManualObject, an object which you populate with geometry manually through a GL immediate-mode style interface.
 
ManualObjectcreateManualObject ()
 Create a ManualObject, an object which you populate with geometry manually through a GL immediate-mode style interface, generating the name.
 
ManualObjectgetManualObject (const String &name) const
 Get a reference to a previously created object instance.
 
bool hasManualObject (const String &name) const
 Returns whether a object instance with the given name exists.
 
void destroyManualObject (MovableObject *obj)
 Removes & destroys a ManualObject from the SceneManager.
 
void destroyManualObject (const String &name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void destroyAllManualObjects (void)
 Removes & destroys all ManualObjects from the SceneManager.
 
Rectangle2DcreateScreenSpaceRect (const String &name, bool includeTextureCoords=false)
 Creates a Rectangle2D that can be displayed for screen space effects or showing a basic GUI.
 
Rectangle2DcreateScreenSpaceRect (bool includeTextureCoords=false)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
bool hasScreenSpaceRect (const String &name) const
 Returns whether a object instance with the given name exists.
 
Rectangle2DgetScreenSpaceRect (const String &name) const
 Get a reference to a previously created object instance.
 
BillboardChaincreateBillboardChain (const String &name)
 Create a BillboardChain, an object which you can use to render a linked chain of billboards.
 
BillboardChaincreateBillboardChain ()
 Create a BillboardChain, an object which you can use to render a linked chain of billboards, with a generated name.
 
BillboardChaingetBillboardChain (const String &name) const
 Get a reference to a previously created object instance.
 
bool hasBillboardChain (const String &name) const
 Returns whether a object instance with the given name exists.
 
void destroyBillboardChain (MovableObject *obj)
 Removes & destroys a BillboardChain from the SceneManager.
 
void destroyBillboardChain (const String &name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void destroyAllBillboardChains (void)
 Removes & destroys all BillboardChains from the SceneManager.
 
RibbonTrailcreateRibbonTrail (const String &name)
 Create a RibbonTrail, an object which you can use to render a linked chain of billboards which follows one or more nodes.
 
RibbonTrailcreateRibbonTrail ()
 Create a RibbonTrail, an object which you can use to render a linked chain of billboards which follows one or more nodes, generating the name.
 
RibbonTrailgetRibbonTrail (const String &name) const
 Get a reference to a previously created object instance.
 
bool hasRibbonTrail (const String &name) const
 Returns whether a object instance with the given name exists.
 
void destroyRibbonTrail (MovableObject *obj)
 Removes & destroys a RibbonTrail from the SceneManager.
 
void destroyRibbonTrail (const String &name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void destroyAllRibbonTrails (void)
 Removes & destroys all RibbonTrails from the SceneManager.
 
ParticleSystemcreateParticleSystem (const String &name, const String &templateName)
 Creates a particle system based on a template.
 
ParticleSystemcreateParticleSystem (const String &name, size_t quota=500, const String &resourceGroup=ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME)
 Create a blank particle system.
 
ParticleSystemcreateParticleSystem (size_t quota=500, const String &resourceGroup=ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
ParticleSystemgetParticleSystem (const String &name) const
 Get a reference to a previously created object instance.
 
bool hasParticleSystem (const String &name) const
 Returns whether a object instance with the given name exists.
 
void destroyParticleSystem (MovableObject *obj)
 Removes & destroys a ParticleSystem from the SceneManager.
 
void destroyParticleSystem (const String &name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void destroyAllParticleSystems (void)
 Removes & destroys all ParticleSystems from the SceneManager.
 
virtual void setWorldGeometry (const String &filename)
 Sets the source of the 'world' geometry, i.e.
 
virtual void setWorldGeometry (DataStreamPtr &stream, const String &typeName=BLANKSTRING)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
virtual size_t estimateWorldGeometry (const String &filename)
 Estimate the number of loading stages required to load the named world geometry.
 
virtual size_t estimateWorldGeometry (DataStreamPtr &stream, const String &typeName=BLANKSTRING)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void setSkyRenderingEnabled (bool enable)
 Enables / disables a 'sky'.
 
bool isSkyRenderingEnabled (void) const
 Return whether a sky is enabled.
 
SceneNodegetSkyNode (void) const
 Get the sky node, if enabled.
 
void setSkyPlane (bool enable, const Plane &plane, const String &materialName, Real scale=1000, Real tiling=10, bool drawFirst=true, Real bow=0, int xsegments=1, int ysegments=1, const String &groupName=ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME)
 Enables / disables a 'sky plane' i.e.
 
void _setSkyPlane (bool enable, const Plane &plane, const String &materialName, Real scale=1000, Real tiling=10, uint8 renderQueue=RENDER_QUEUE_SKIES_EARLY, Real bow=0, int xsegments=1, int ysegments=1, const String &groupName=ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void setSkyPlaneEnabled (bool enable)
 
bool isSkyPlaneEnabled (void) const
 
SceneNodegetSkyPlaneNode (void) const
 
SkyPlaneGenParameters getSkyPlaneGenParameters (void) const
 
void setSkyBox (bool enable, const String &materialName, Real distance=5000, bool drawFirst=true, const Quaternion &orientation=Quaternion::IDENTITY, const String &groupName=ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME)
 Enables / disables a 'sky box' i.e.
 
void _setSkyBox (bool enable, const String &materialName, Real distance=5000, uint8 renderQueue=RENDER_QUEUE_SKIES_EARLY, const Quaternion &orientation=Quaternion::IDENTITY, const String &groupName=ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void setSkyBoxEnabled (bool enable)
 
bool isSkyBoxEnabled (void) const
 
SceneNodegetSkyBoxNode (void) const
 
SkyBoxGenParameters getSkyBoxGenParameters (void) const
 
void setSkyDome (bool enable, const String &materialName, Real curvature=10, Real tiling=8, Real distance=4000, bool drawFirst=true, const Quaternion &orientation=Quaternion::IDENTITY, int xsegments=16, int ysegments=16, int ysegments_keep=-1, const String &groupName=ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME)
 Enables / disables a 'sky dome' i.e.
 
void _setSkyDome (bool enable, const String &materialName, Real curvature=10, Real tiling=8, Real distance=4000, uint8 renderQueue=RENDER_QUEUE_SKIES_EARLY, const Quaternion &orientation=Quaternion::IDENTITY, int xsegments=16, int ysegments=16, int ysegments_keep=-1, const String &groupName=ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void setSkyDomeEnabled (bool enable)
 
bool isSkyDomeEnabled (void) const
 
SceneNodegetSkyDomeNode (void) const
 
SkyDomeGenParameters getSkyDomeGenParameters (void) const
 
void setFog (FogMode mode=FOG_NONE, const ColourValue &colour=ColourValue::White, Real expDensity=0.001f, Real linearStart=0.0f, Real linearEnd=1.0f)
 Sets the fogging mode applied to the scene.
 
FogMode getFogMode (void) const
 Returns the fog mode for the scene.
 
const ColourValuegetFogColour (void) const
 Returns the fog colour for the scene.
 
Real getFogStart (void) const
 Returns the fog start distance for the scene.
 
Real getFogEnd (void) const
 Returns the fog end distance for the scene.
 
Real getFogDensity (void) const
 Returns the fog density for the scene.
 
BillboardSetcreateBillboardSet (unsigned int poolSize=20)
 Creates a new BillboardSet for use with this scene manager.
 
BillboardSetcreateBillboardSet (const String &name, unsigned int poolSize=20)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
BillboardSetgetBillboardSet (const String &name) const
 Retrieves a pointer to the named BillboardSet.
 
bool hasBillboardSet (const String &name) const
 Returns whether a billboardset with the given name exists.
 
void destroyBillboardSet (MovableObject *set)
 Removes & destroys an BillboardSet from the SceneManager.
 
void destroyBillboardSet (const String &name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void destroyAllBillboardSets (void)
 Removes & destroys all BillboardSets.
 
void _applySceneAnimations (void)
 Internal method for applying animations to scene nodes.
 
AnimationcreateAnimation (const String &name, Real length) override
 Creates an animation which can be used to animate scene nodes.
 
AnimationgetAnimation (const String &name) const override
 Looks up an Animation object previously created with createAnimation.
 
bool hasAnimation (const String &name) const override
 Returns whether this object contains the named animation.
 
uint16 getNumAnimations (void) const override
 Gets the number of animations in this container.
 
AnimationgetAnimation (unsigned short index) const override
 Retrieve an animation by index.
 
void removeAnimation (const String &name) override
 Remove & destroy an Animation from this container.
 
void destroyAnimation (const String &name)
 
void destroyAllAnimations (void)
 Removes all animations created using this SceneManager.
 
AnimationStatecreateAnimationState (const String &animName)
 Create an AnimationState object for managing application of animations.
 
AnimationStategetAnimationState (const String &animName) const
 Retrieves animation state as previously created using createAnimationState.
 
bool hasAnimationState (const String &name) const
 Returns whether an animation state with the given name exists.
 
void destroyAnimationState (const String &name)
 Destroys an AnimationState.
 
void destroyAllAnimationStates (void)
 Removes all animation states created using this SceneManager.
 
AnimationIterator getAnimationIterator (void)
 Returns a specialised MapIterator over all animations in the scene.
 
const AnimationListgetAnimations () const
 Returns a const version of the animation list.
 
AnimationStateIterator getAnimationStateIterator (void)
 Returns a specialised MapIterator over all animation states in the scene.
 
const AnimationStateMapgetAnimationStates ()
 Returns a specialised Map over all animation states in the scene.
 
void destroyQuery (SceneQuery *query)
 Destroys a scene query of any type.
 
void setShadowTechnique (ShadowTechnique technique)
 Sets the general shadow technique to be used in this scene.
 
ShadowTechnique getShadowTechnique (void) const
 Gets the current shadow technique.
 
void setShowDebugShadows (bool debug)
 Enables / disables the rendering of debug information for shadows.
 
bool getShowDebugShadows (void) const
 Are debug shadows shown?
 
void setShadowColour (const ColourValue &colour)
 Set the colour used to modulate areas in shadow.
 
const ColourValuegetShadowColour (void) const
 Get the colour used to modulate areas in shadow.
 
void setShadowDirectionalLightExtrusionDistance (Real dist)
 Sets the distance a shadow volume is extruded for a directional light.
 
Real getShadowDirectionalLightExtrusionDistance (void) const
 Gets the distance a shadow volume is extruded for a directional light.
 
void setShadowFarDistance (Real distance)
 Sets the default maximum distance away from the camera that shadows will be visible.
 
Real getShadowFarDistance (void) const
 Gets the default maximum distance away from the camera that shadows will be visible.
 
Real getShadowFarDistanceSquared (void) const
 
void setShadowIndexBufferSize (size_t size)
 Sets the maximum size of the index buffer used to render shadow primitives.
 
size_t getShadowIndexBufferSize (void) const
 Get the size of the shadow index buffer.
 
const ShadowCameraSetupPtrgetShadowCameraSetup () const
 Get the shadow camera setup in use for all lights which don't have their own shadow camera setup.
 
void setShadowUseInfiniteFarPlane (bool enable)
 Sets whether we should use an infinite camera far plane when rendering stencil shadows.
 
bool isShadowTechniqueStencilBased (void) const
 Is there a stencil shadow based shadowing technique in use?
 
bool isShadowTechniqueTextureBased (void) const
 Is there a texture shadow based shadowing technique in use?
 
bool isShadowTechniqueModulative (void) const
 Is there a modulative shadowing technique in use?
 
bool isShadowTechniqueAdditive (void) const
 Is there an additive shadowing technique in use?
 
bool isShadowTechniqueIntegrated (void) const
 Is the shadow technique integrated into primary materials?
 
bool isShadowTechniqueInUse (void) const
 Is there any shadowing technique in use?
 
void setShadowUseLightClipPlanes (bool enabled)
 Sets whether when using a built-in additive shadow mode, user clip planes should be used to restrict light rendering.
 
bool getShadowUseLightClipPlanes () const
 Gets whether when using a built-in additive shadow mode, user clip planes should be used to restrict light rendering.
 
virtual void prepareShadowTextures (Camera *cam, Viewport *vp, const LightList *lightList=0)
 Method for preparing shadow textures ready for use in a regular render Do not call manually unless before frame start or rendering is paused If lightList is not supplied, will render all lights in frustum.
 
void setShadowTextureSize (unsigned short size)
 Set the size of the texture used for all texture-based shadows.
 
void setShadowTextureConfig (size_t shadowIndex, uint16 width, uint16 height, PixelFormat format, uint16 fsaa=0, uint16 depthBufferPoolId=1)
 Set the detailed configuration for a shadow texture.
 
void setShadowTextureConfig (size_t shadowIndex, const ShadowTextureConfig &config)
 Set the detailed configuration for a shadow texture.
 
const ShadowTextureConfigListgetShadowTextureConfigList () const
 Get the current shadow texture settings.
 
ConstShadowTextureConfigIterator getShadowTextureConfigIterator () const
 
void setShadowTexturePixelFormat (PixelFormat fmt)
 Set the pixel format of the textures used for texture-based shadows.
 
void setShadowTextureFSAA (unsigned short fsaa)
 Set the level of multisample AA of the textures used for texture-based shadows.
 
void setShadowTextureCount (size_t count)
 Set the number of textures allocated for texture-based shadows.
 
size_t getShadowTextureCount (void) const
 
void setShadowTextureCountPerLightType (Light::LightTypes type, size_t count)
 Set the number of shadow textures a light type uses.
 
size_t getShadowTextureCountPerLightType (Light::LightTypes type) const
 Get the number of shadow textures is assigned for the given light type.
 
void setShadowTextureSettings (uint16 size, uint16 count, PixelFormat fmt=PF_BYTE_RGBA, uint16 fsaa=0, uint16 depthBufferPoolId=1)
 Sets the size and count of textures used in texture-based shadows.
 
const TexturePtrgetShadowTexture (size_t shadowIndex)
 Get a reference to the shadow texture currently in use at the given index.
 
void setShadowDirLightTextureOffset (Real 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.
 
Real getShadowDirLightTextureOffset (void) const
 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.
 
void setShadowTextureFadeStart (Real fadeStart)
 Sets the proportional distance at which texture shadows begin to fade out.
 
void setShadowTextureFadeEnd (Real fadeEnd)
 Sets the proportional distance at which texture shadows finish to fading out.
 
void setShadowTextureSelfShadow (bool selfShadow)
 Sets whether or not texture shadows should attempt to self-shadow.
 
bool getShadowTextureSelfShadow (void) const
 Gets whether or not texture shadows attempt to self-shadow.
 
void setShadowTextureCasterMaterial (const MaterialPtr &mat)
 Sets the default material to use for rendering shadow casters.
 
void setShadowTextureReceiverMaterial (const MaterialPtr &mat)
 Sets the default material to use for rendering shadow receivers.
 
void setShadowCasterRenderBackFaces (bool bf)
 Sets whether or not shadow casters should be rendered into shadow textures using their back faces rather than their front faces.
 
bool getShadowCasterRenderBackFaces () const
 Gets whether or not shadow casters should be rendered into shadow textures using their back faces rather than their front faces.
 
void setShadowCameraSetup (const ShadowCameraSetupPtr &shadowSetup)
 Set the shadow camera setup to use for all lights which don't have their own shadow camera setup.
 
StaticGeometrycreateStaticGeometry (const String &name)
 Creates a StaticGeometry instance suitable for use with this SceneManager.
 
StaticGeometrygetStaticGeometry (const String &name) const
 Retrieve a previously created StaticGeometry instance.
 
bool hasStaticGeometry (const String &name) const
 Returns whether a static geometry instance with the given name exists.
 
const StaticGeometryMapgetStaticGeometryCollection () const
 Returns all static geometry instances with names.
 
void destroyStaticGeometry (StaticGeometry *geom)
 Remove & destroy a StaticGeometry instance.
 
void destroyStaticGeometry (const String &name)
 Remove & destroy a StaticGeometry instance.
 
void destroyAllStaticGeometry (void)
 Remove & destroy all StaticGeometry instances.
 
InstanceManagercreateInstanceManager (const String &customName, const String &meshName, const String &groupName, InstanceManager::InstancingTechnique technique, size_t numInstancesPerBatch, uint16 flags=0, unsigned short subMeshIdx=0)
 Creates an InstanceManager interface to create & manipulate instanced entities You need to call this function at least once before start calling createInstancedEntity to build up an instance based on the given mesh.
 
InstanceManagergetInstanceManager (const String &managerName) const
 Retrieves an existing InstanceManager by it's name.
 
bool hasInstanceManager (const String &managerName) const
 Returns whether an InstanceManager with the given name exists.
 
void destroyInstanceManager (const String &name)
 Destroys an InstanceManager if it was created with createInstanceManager()
 
void destroyInstanceManager (InstanceManager *instanceManager)
 
void destroyAllInstanceManagers (void)
 
size_t getNumInstancesPerBatch (const String &meshName, const String &groupName, const String &materialName, InstanceManager::InstancingTechnique technique, size_t numInstancesPerBatch, uint16 flags=0, unsigned short subMeshIdx=0)
 
InstancedEntitycreateInstancedEntity (const String &materialName, const String &managerName)
 Creates an InstancedEntity based on an existing InstanceManager.
 
void destroyInstancedEntity (InstancedEntity *instancedEntity)
 Removes an InstancedEntity,.
 
void _addDirtyInstanceManager (InstanceManager *dirtyManager)
 Called by an InstanceManager when it has at least one InstanceBatch that needs their bounds to be updated for proper culling.
 
MovableObjectcreateMovableObject (const String &name, const String &typeName, const NameValuePairList *params=0)
 Create a movable object of the type specified.
 
MovableObjectcreateMovableObject (const String &typeName, const NameValuePairList *params=0)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void destroyMovableObject (const String &name, const String &typeName)
 Destroys a MovableObject with the name specified, of the type specified.
 
void destroyMovableObject (MovableObject *m)
 Destroys a MovableObject.
 
void destroyAllMovableObjectsByType (const String &typeName)
 Destroy all MovableObjects of a given type.
 
void destroyAllMovableObjects (void)
 Destroy all MovableObjects.
 
MovableObjectgetMovableObject (const String &name, const String &typeName) const
 Get a reference to a previously created object instance.
 
bool hasMovableObject (const String &name, const String &typeName) const
 Returns whether a object instance with the given name exists.
 
const MovableObjectMapgetMovableObjects (const String &typeName)
 Get all MovableObect instances of a given type.
 
MovableObjectIterator getMovableObjectIterator (const String &typeName)
 
void injectMovableObject (MovableObject *m)
 Inject a MovableObject instance created externally.
 
void extractMovableObject (const String &name, const String &typeName)
 Extract a previously injected MovableObject.
 
void extractMovableObject (MovableObject *m)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void extractAllMovableObjectsByType (const String &typeName)
 Extract all injected MovableObjects of a given type.
 
- Public Member Functions inherited from Ogre::AnimationContainer
virtual ~AnimationContainer ()
 

Static Public Attributes

static int intersect_call
 
- Static Public Attributes inherited from Ogre::SceneManager
static constexpr const charPT_CUBE = "Prefab_Cube"
 100x100x100 cube centred at origin with normals and UVs
 
static constexpr const charPT_PLANE = "Prefab_Plane"
 XY plane with -100..100 extent, +Z normal and UVs.
 
static constexpr const charPT_SPHERE = "Prefab_Sphere"
 Sphere with radius 50, around origin with normals UVs
 

Additional Inherited Members

- Public Types inherited from Ogre::SceneManager
typedef MapIterator< AnimationListAnimationIterator
 
typedef MapIterator< CameraListCameraIterator
 
typedef std::map< String, Camera * > CameraList
 
enum  IlluminationRenderStage { IRS_NONE , IRS_RENDER_TO_TEXTURE , IRS_RENDER_RECEIVER_PASS }
 Describes the stage of rendering when performing complex illumination. More...
 
typedef MapIterator< MovableObjectMapMovableObjectIterator
 
typedef std::map< String, MovableObject * > MovableObjectMap
 
enum  QueryTypeMask : uint32 {
  WORLD_GEOMETRY_TYPE_MASK = 0x80000000 , ENTITY_TYPE_MASK = 0x40000000 , FX_TYPE_MASK = 0x20000000 , STATICGEOMETRY_TYPE_MASK = 0x10000000 ,
  LIGHT_TYPE_MASK = 0x08000000 , FRUSTUM_TYPE_MASK = 0x04000000 , USER_TYPE_MASK_LIMIT = FRUSTUM_TYPE_MASK
}
 
enum  SpecialCaseRenderQueueMode { SCRQM_INCLUDE , SCRQM_EXCLUDE }
 Enumeration of the possible modes allowed for processing the special case render queue list. More...
 
typedef std::map< String, StaticGeometry * > StaticGeometryMap
 
- Public Types inherited from Ogre::AnimationContainer
typedef std::map< String, Animation * > AnimationList
 
- Static Public Member Functions inherited from Ogre::SceneManager
static bool hasPerRenderableLights ()
 
static void usePerRenderableLights (bool enabled)
 Toggle sorting of lights for each renderable.
 

Detailed Description

Specialized SceneManager that divides the geometry into an octree in order to facilitate spatial queries.

Constructor & Destructor Documentation

◆ OctreeSceneManager() [1/2]

Ogre::OctreeSceneManager::OctreeSceneManager ( const String name)

Standard Constructor.

Initializes the octree to -10000,-10000,-10000 to 10000,10000,10000 with a depth of 8.

◆ OctreeSceneManager() [2/2]

Ogre::OctreeSceneManager::OctreeSceneManager ( const String name,
AxisAlignedBox box,
int  max_depth 
)

Standard Constructor.

◆ ~OctreeSceneManager()

Ogre::OctreeSceneManager::~OctreeSceneManager ( )

Standard destructor.

Member Function Documentation

◆ getTypeName()

const String & Ogre::OctreeSceneManager::getTypeName ( void  ) const
overridevirtual

Retrieve the type name of this scene manager.

This method has to be implemented by subclasses. It should return the type name of this SceneManager which agrees with the type name of the SceneManagerFactory which created it.

Implements Ogre::SceneManager.

◆ init()

void Ogre::OctreeSceneManager::init ( AxisAlignedBox box,
int  d 
)

Initializes the manager to the given box and depth.

◆ createSceneNodeImpl() [1/2]

SceneNode * Ogre::OctreeSceneManager::createSceneNodeImpl ( void  )
overridevirtual

Creates a specialized OctreeNode.

Reimplemented from Ogre::SceneManager.

◆ createSceneNodeImpl() [2/2]

SceneNode * Ogre::OctreeSceneManager::createSceneNodeImpl ( const String name)
overridevirtual

Creates a specialized OctreeNode.

Reimplemented from Ogre::SceneManager.

◆ createCamera()

Camera * Ogre::OctreeSceneManager::createCamera ( const String name)
overridevirtual

Creates a specialized OctreeCamera.

Reimplemented from Ogre::SceneManager.

◆ destroySceneNode()

void Ogre::OctreeSceneManager::destroySceneNode ( const String name)
overridevirtual

Deletes a scene node.

Reimplemented from Ogre::SceneManager.

◆ _updateSceneGraph()

void Ogre::OctreeSceneManager::_updateSceneGraph ( Camera cam)
overridevirtual

Does nothing more.

Reimplemented from Ogre::SceneManager.

◆ _findVisibleObjects()

void Ogre::OctreeSceneManager::_findVisibleObjects ( Camera cam,
VisibleObjectsBoundsInfo visibleBounds,
bool  onlyShadowCasters 
)
overridevirtual

Recurses through the octree determining which nodes are visible.

Reimplemented from Ogre::SceneManager.

◆ walkOctree()

void Ogre::OctreeSceneManager::walkOctree ( OctreeCamera ,
RenderQueue ,
Octree ,
VisibleObjectsBoundsInfo visibleBounds,
bool  foundvisible,
bool  onlyShadowCasters 
)

Walks through the octree, adding any visible objects to the render queue.

If any octant in the octree if completely within the view frustum, all subchildren are automatically added with no visibility tests.

◆ _updateOctreeNode()

void Ogre::OctreeSceneManager::_updateOctreeNode ( OctreeNode )

Checks the given OctreeNode, and determines if it needs to be moved to a different octant.

◆ _removeOctreeNode()

void Ogre::OctreeSceneManager::_removeOctreeNode ( OctreeNode )

Removes the given octree node.

◆ _addOctreeNode()

void Ogre::OctreeSceneManager::_addOctreeNode ( OctreeNode ,
Octree octree,
int  depth = 0 
)

Adds the Octree Node, starting at the given octree, and recursing at max to the specified depth.

◆ findNodesIn() [1/4]

void Ogre::OctreeSceneManager::findNodesIn ( const AxisAlignedBox box,
std::list< SceneNode * > &  list,
SceneNode exclude = 0 
)

Recurses the octree, adding any nodes intersecting with the box into the given list.

It ignores the exclude scene node.

◆ findNodesIn() [2/4]

void Ogre::OctreeSceneManager::findNodesIn ( const Sphere sphere,
std::list< SceneNode * > &  list,
SceneNode exclude = 0 
)

Recurses the octree, adding any nodes intersecting with the sphere into the given list.

It ignores the exclude scene node.

◆ findNodesIn() [3/4]

void Ogre::OctreeSceneManager::findNodesIn ( const PlaneBoundedVolume volume,
std::list< SceneNode * > &  list,
SceneNode exclude = 0 
)

Recurses the octree, adding any nodes intersecting with the volume into the given list.

It ignores the exclude scene node.

◆ findNodesIn() [4/4]

void Ogre::OctreeSceneManager::findNodesIn ( const Ray ray,
std::list< SceneNode * > &  list,
SceneNode exclude = 0 
)

Recurses the octree, adding any nodes intersecting with the ray into the given list.

It ignores the exclude scene node.

◆ setShowBoxes()

void Ogre::OctreeSceneManager::setShowBoxes ( bool  b)
inline

Sets the box visibility flag.

◆ resize()

void Ogre::OctreeSceneManager::resize ( const AxisAlignedBox box)

Resizes the octree to the given size.

◆ setOption()

bool Ogre::OctreeSceneManager::setOption ( const String ,
const void  
)
overridevirtual

Sets the given option for the SceneManager.

Options are: "Size", AxisAlignedBox *; "Depth", int *; "ShowOctree", bool *;

Reimplemented from Ogre::SceneManager.

◆ getOption()

bool Ogre::OctreeSceneManager::getOption ( const String ,
void  
)
overridevirtual

Gets the given option for the Scene Manager.

See setOption

Reimplemented from Ogre::SceneManager.

◆ getOptionValues()

bool Ogre::OctreeSceneManager::getOptionValues ( const String strKey,
StringVector refValueList 
)
overridevirtual

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.

Parameters
strKeyThe name of the option to get the values for.
refValueListA reference to a list that will be filled with the available values.
Returns
On success (the option exists), true is returned.
On failure, false is returned.

Reimplemented from Ogre::SceneManager.

◆ getOptionKeys()

bool Ogre::OctreeSceneManager::getOptionKeys ( StringVector refKeys)
overridevirtual

Method for getting all the implementation-specific options of the scene manager.

Parameters
refKeysA reference to a list that will be filled with all the available options.
Returns
On success, true is returned. On failure, false is returned.

Reimplemented from Ogre::SceneManager.

◆ clearScene()

void Ogre::OctreeSceneManager::clearScene ( void  )
overridevirtual

Overridden from SceneManager.

Reimplemented from Ogre::SceneManager.

◆ createAABBQuery()

AxisAlignedBoxSceneQuery * Ogre::OctreeSceneManager::createAABBQuery ( const AxisAlignedBox box,
uint32  mask 
)
overridevirtual

Creates an AxisAlignedBoxSceneQuery for this scene manager.

This method creates a new instance of a query object for this scene manager, for an axis aligned box region. See SceneQuery and AxisAlignedBoxSceneQuery for full details.

The instance returned from this method must be destroyed by calling SceneManager::destroyQuery when it is no longer required.
Parameters
boxDetails of the box which describes the region for this query.
maskThe query mask to apply to this query; can be used to filter out certain objects; see SceneQuery for details.

Reimplemented from Ogre::SceneManager.

◆ createSphereQuery()

SphereSceneQuery * Ogre::OctreeSceneManager::createSphereQuery ( const Sphere sphere,
uint32  mask 
)
overridevirtual

Creates a SphereSceneQuery for this scene manager.

This method creates a new instance of a query object for this scene manager, for a spherical region. See SceneQuery and SphereSceneQuery for full details.

The instance returned from this method must be destroyed by calling SceneManager::destroyQuery when it is no longer required.
Parameters
sphereDetails of the sphere which describes the region for this query.
maskThe query mask to apply to this query; can be used to filter out certain objects; see SceneQuery for details.

Reimplemented from Ogre::SceneManager.

◆ createPlaneBoundedVolumeQuery()

PlaneBoundedVolumeListSceneQuery * Ogre::OctreeSceneManager::createPlaneBoundedVolumeQuery ( const PlaneBoundedVolumeList volumes,
uint32  mask 
)
overridevirtual

Creates a PlaneBoundedVolumeListSceneQuery for this scene manager.

This method creates a new instance of a query object for this scene manager, for a region enclosed by a set of planes (normals pointing inwards). See SceneQuery and PlaneBoundedVolumeListSceneQuery for full details.

The instance returned from this method must be destroyed by calling SceneManager::destroyQuery when it is no longer required.
Parameters
volumesDetails of the volumes which describe the region for this query.
maskThe query mask to apply to this query; can be used to filter out certain objects; see SceneQuery for details.

Reimplemented from Ogre::SceneManager.

◆ createRayQuery()

RaySceneQuery * Ogre::OctreeSceneManager::createRayQuery ( const Ray ray,
uint32  mask 
)
overridevirtual

Creates a RaySceneQuery for this scene manager.

This method creates a new instance of a query object for this scene manager, looking for objects which fall along a ray. See SceneQuery and RaySceneQuery for full details.

The instance returned from this method must be destroyed by calling SceneManager::destroyQuery when it is no longer required.
Parameters
rayDetails of the ray which describes the region for this query.
maskThe query mask to apply to this query; can be used to filter out certain objects; see SceneQuery for details.

Reimplemented from Ogre::SceneManager.

◆ createIntersectionQuery()

IntersectionSceneQuery * Ogre::OctreeSceneManager::createIntersectionQuery ( uint32  mask)
overridevirtual

Creates an IntersectionSceneQuery for this scene manager.

This method creates a new instance of a query object for locating intersecting objects. See SceneQuery and IntersectionSceneQuery for full details.

The instance returned from this method must be destroyed by calling SceneManager::destroyQuery when it is no longer required.
Parameters
maskThe query mask to apply to this query; can be used to filter out certain objects; see SceneQuery for details.

Reimplemented from Ogre::SceneManager.

Member Data Documentation

◆ intersect_call

int Ogre::OctreeSceneManager::intersect_call
static

The documentation for this class was generated from the following file: