OGRE-Next  4.0.0unstable
Object-Oriented Graphics Rendering Engine
Ogre::SceneQuery::WorldFragment Struct Reference

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

#include <OgreSceneQuery.h>

Public Attributes

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

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().

Member Data Documentation

◆ fragmentType

WorldFragmentType Ogre::SceneQuery::WorldFragment::fragmentType

The type of this world fragment.

◆ geometry

void* Ogre::SceneQuery::WorldFragment::geometry

Custom geometry block, only applicable for WFT_CUSTOM_GEOMETRY.

◆ planes

list<Plane>::type* Ogre::SceneQuery::WorldFragment::planes

Planes bounding a convex region, only applicable for WFT_PLANE_BOUNDED_REGION.

◆ renderOp

v1::RenderOperation* Ogre::SceneQuery::WorldFragment::renderOp

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

◆ singleIntersection

Vector3 Ogre::SceneQuery::WorldFragment::singleIntersection

Single intersection point, only applicable for WFT_SINGLE_INTERSECTION.


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