Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray3D::cSpatialObject Class Reference

#include <cSpatialObject.h>

Inheritance diagram for Gray3D::cSpatialObject:
Gray3D::cOctreeObject

Public Member Functions

 cSpatialObject () noexcept
 
virtual ~cSpatialObject ()
 
const cSpherefget_BoundSphere () const noexcept
 
const cVector3fget_CenterPos () const noexcept
 
float get_Radius () const noexcept
 
virtual void TestTree (const ISpatialTest *pTree) const
 

Public Attributes

cSpheref m_s
 set coords from AddToOctree More...
 

Detailed Description

base class for any object in 3d space. any object is enclosed by a sphere. This likely represents a complex object with more precise internal geometry. e.g. The sphere MUST encompass all points in the object. a sphere surrounding a cube.

Constructor & Destructor Documentation

◆ cSpatialObject()

Gray3D::cSpatialObject::cSpatialObject ( )
inlinenoexcept

◆ ~cSpatialObject()

virtual Gray3D::cSpatialObject::~cSpatialObject ( )
inlinevirtual

ASSERT already removed from tree/node.

Member Function Documentation

◆ get_BoundSphere()

const cSpheref& Gray3D::cSpatialObject::get_BoundSphere ( ) const
inlinenoexcept

The sphere that bounds the object of interest. In map world space.

◆ get_CenterPos()

const cVector3f& Gray3D::cSpatialObject::get_CenterPos ( ) const
inlinenoexcept

NOTE: Center position of the model will certainly not be the root position (feet) (or placement) of the model.

◆ get_Radius()

float Gray3D::cSpatialObject::get_Radius ( ) const
inlinenoexcept

◆ TestTree()

void Gray3D::cSpatialObject::TestTree ( const ISpatialTest pTree) const
virtual

Reimplemented in Gray3D::cOctreeObject.

Member Data Documentation

◆ m_s

cSpheref Gray3D::cSpatialObject::m_s

set coords from AddToOctree


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