Ogre::SceneQuery::WorldFragment Struct Reference

Represents part of the world geometry that is a result of a SceneQuery. More...

#include <OgreSceneQuery.h>

List of all members.

Public Attributes

WorldFragmentType fragmentType
 The type of this world fragment.
Vector3 singleIntersection
 Single intersection point, only applicable for WFT_SINGLE_INTERSECTION.
list< Plane >::type * planes
 Planes bounding a convex region, only applicable for WFT_PLANE_BOUNDED_REGION.
void * geometry
 Custom geometry block, only applicable for WFT_CUSTOM_GEOMETRY.
RenderOperationrenderOp
 General render operation structure, fallback if nothing else is available.

Detailed Description

Represents part of the world geometry that is a result of a SceneQuery.

Remarks:
Since world geometry is normally vast and sprawling, we need a way of retrieving parts of it based on a query. That is what this struct is for; note there are potentially as many data structures for world geometry as there are SceneManagers, however this structure includes a few common abstractions as well as a more general format.
The type of world fragment that is returned from a query depends on the SceneManager, and the option set using SceneQuery::setWorldFragmentType. You can see what fragment types are supported on the query in question by calling SceneQuery::getSupportedWorldFragmentTypes().

Definition at line 108 of file OgreSceneQuery.h.


Member Data Documentation

The type of this world fragment.

Definition at line 110 of file OgreSceneQuery.h.

Custom geometry block, only applicable for WFT_CUSTOM_GEOMETRY.

Definition at line 116 of file OgreSceneQuery.h.

Planes bounding a convex region, only applicable for WFT_PLANE_BOUNDED_REGION.

Definition at line 114 of file OgreSceneQuery.h.

General render operation structure, fallback if nothing else is available.

Definition at line 118 of file OgreSceneQuery.h.

Single intersection point, only applicable for WFT_SINGLE_INTERSECTION.

Definition at line 112 of file OgreSceneQuery.h.


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

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:39:58 2012