U3D
Open-source, cross-platform 2D and 3D game engine built in C++
Loading...
Searching...
No Matches
Urho3D::OctreeQuery Class Referenceabstract

Base class for octree queries. More...

#include </var/dev/u3d/stable/Source/Urho3D/Graphics/OctreeQuery.h>

Inheritance diagram for Urho3D::OctreeQuery:
[legend]
Collaboration diagram for Urho3D::OctreeQuery:
[legend]

Public Member Functions

 OctreeQuery (PODVector< Drawable * > &result, unsigned char drawableFlags, unsigned viewMask)
 Construct with query parameters.
 
virtual ~OctreeQuery ()=default
 Destruct.
 
 OctreeQuery (const OctreeQuery &rhs)=delete
 Prevent copy construction.
 
OctreeQueryoperator= (const OctreeQuery &rhs)=delete
 Prevent assignment.
 
virtual Intersection TestOctant (const BoundingBox &box, bool inside)=0
 Intersection test for an octant. More...
 
virtual void TestDrawables (Drawable **start, Drawable **end, bool inside)=0
 Intersection test for drawables. More...
 

Public Attributes

PODVector< Drawable * > & result_
 Result vector reference.
 
unsigned char drawableFlags_
 Drawable flags to include.
 
unsigned viewMask_
 Drawable layers to include.
 

Detailed Description

Base class for octree queries.

Member Function Documentation

◆ TestDrawables()

virtual void Urho3D::OctreeQuery::TestDrawables ( Drawable **  start,
Drawable **  end,
bool  inside 
)
pure virtual

Intersection test for drawables.

Implemented in Urho3D::PointOctreeQuery, Urho3D::SphereOctreeQuery, Urho3D::BoxOctreeQuery, Urho3D::FrustumOctreeQuery, and Urho3D::AllContentOctreeQuery.

Here is the caller graph for this function:

◆ TestOctant()

virtual Intersection Urho3D::OctreeQuery::TestOctant ( const BoundingBox box,
bool  inside 
)
pure virtual

Intersection test for an octant.

Implemented in Urho3D::PointOctreeQuery, Urho3D::SphereOctreeQuery, Urho3D::BoxOctreeQuery, Urho3D::FrustumOctreeQuery, and Urho3D::AllContentOctreeQuery.

Here is the caller graph for this function:

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