![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cSpatialTest.h>
Public Member Functions | |
| virtual bool | ObjectIntersect (cSpatialObject *pObj) override |
Public Member Functions inherited from Gray::cArrayPtr< cSpatialObject > | |
| void | DeleteAt (ITERATE_t i) |
| void | DeleteAll () |
Public Member Functions inherited from Gray::cArrayFacade< TYPE, TYPE_ARG > | |
| virtual | ~cArrayFacade () |
| virtual COMPARE_t | CompareData (REF_t pData1, REF_t pData2) const noexcept override |
| REF_t | GetAt (ITERATE_t index) const |
| REF_t | GetAtCheck (ITERATE_t index) const |
| TYPE | PopHead () |
| TYPE | PopTail () |
Public Member Functions inherited from Gray::cArrayTyped< TYPE, TYPE * > | |
| void | QSort () |
| cArrayTyped () noexcept | |
| cArrayTyped (const THIS_t &rArray) | |
| cArrayTyped (ITERATE_t iSize) | |
| virtual | ~cArrayTyped () |
| bool | isValidCheck () const noexcept |
| < memory allocation and structure definitions are valid. More... | |
| bool | IsValidIndex (ITERATE_t i) const noexcept |
| ITERATE_t | ClampValidIndex (ITERATE_t i) const noexcept |
| size_t | GetHeapStats (OUT ITERATE_t &iAllocCount) const noexcept |
| void | AssertValidIndex (ITERATE_t nIndex) const |
| const TYPE & | GetAtSecure (ITERATE_t nIndex) const |
| TYPE & | ElementAtSecure (ITERATE_t nIndex) |
| REF_t | ConstElementAt (ITERATE_t nIndex) const |
| TYPE & | operator[] (ITERATE_t nIndex) |
| const TYPE & | operator[] (ITERATE_t nIndex) const |
| TYPE & | Head () |
| TYPE & | Tail () |
| TYPE & | ElementAtHead () |
| TYPE & | ElementAtTail () |
| REF_t | ConstHead () const |
| REF_t | ConstTail () const |
| REF_t | GetAtTail () |
| void | UnLinkIndex (ITERATE_t nIndex) |
| void | Swap (ITERATE_t i, ITERATE_t j) |
| void | SetCopy (const cArrayTyped< TYPE, TYPE * > &aValues) |
| const cArrayTyped< TYPE, TYPE * > & | operator= (const cArrayTyped< TYPE, TYPE * > &aValues) |
| ITERATE_t | FindIFor (TYPE * arg) const |
| bool | HasArg (TYPE * arg) const |
| void | RemoveLast () |
| ELEM_t | PopHead () |
| ELEM_t | PopTail () |
| bool | RemoveArg (TYPE * arg) |
| void | UnLinkArg (TYPE * arg) |
| ITERATE_t | AddTail (TYPE * newElement) |
| ITERATE_t | PushTail (TYPE * newElement) |
| void | AddHead (TYPE * newElement) |
| TYPE * | get_DataWork () const |
| void | AddArray (const SUPER_t &src) |
| bool | IsEqualArray (const SUPER_t &aValues) const |
| bool | isArraySorted () const |
| bool | isArraySortedND () const |
Public Member Functions inherited from Gray::CArray< TYPE, ARG_TYPE > | |
| CArray () noexcept | |
| CArray (THIS_t &&ref) noexcept | |
| virtual | ~CArray () |
| bool | IsValidMallocSize () const noexcept |
| ITERATE_t | GetSize () const noexcept |
| ITERATE_t | GetUpperBound () const noexcept |
| bool | IsEmpty () const noexcept |
| void | SetSize (ITERATE_t nNewSize) |
| ITERATE_t | GetMallocSize () const noexcept |
| void | RemoveAll () |
| Clean up. More... | |
| const TYPE & | GetAt (ITERATE_t nIndex) const |
| TYPE & | ElementAt (ITERATE_t nIndex) |
| void | SetAt (ITERATE_t nIndex, ARG_TYPE newElement) |
| const TYPE * | GetData () const |
| TYPE * | GetData () |
| void | SetDataArrayPtr (TYPE *pData, ITERATE_t nSize) |
| void | SetAtGrow (ITERATE_t nIndex, ARG_TYPE newElement) |
| ITERATE_t | Add (ARG_TYPE newElement) |
| void | Copy (const CArray &src) |
| TYPE & | operator[] (ITERATE_t nIndex) |
| const TYPE & | operator[] (ITERATE_t nIndex) const |
| void | InsertAt (ITERATE_t nIndex, ARG_TYPE newElement) |
| void | RemoveAt (ITERATE_t nIndex) |
| void | RemoveAt (ITERATE_t nIndex, ITERATE_t iQty) |
| void | MoveElement (ITERATE_t iFrom, ITERATE_t iTo) |
Public Member Functions inherited from Gray::CObject | |
| virtual | ~CObject () |
| virtual void | AssertValid () const |
| < memory allocation and structure definitions are valid. More... | |
| virtual void | Serialize (cArchive &a) |
Public Member Functions inherited from Gray3D::cSpatialTestVisitor | |
| virtual | ~cSpatialTestVisitor () |
| virtual bool | ObjectIntersectSphere (cSpatialObject *pObj, const cSpheref &sphere) override |
| virtual bool | ObjectIntersectBounds (cSpatialObject *pObj, const cBounds3f &bbox) override |
| virtual bool | ObjectIntersectSegment (cSpatialObject *pObj, const cSegment3f &segment) override |
| virtual bool | ObjectIntersectHex (cSpatialObject *pObj, const cHexahedron &frustum, cHexahedron::PLANES_MASK_t planes) override |
Additional Inherited Members | |
Public Types inherited from Gray::cArrayPtr< cSpatialObject > | |
| typedef cArrayFacade< cSpatialObject *, cSpatialObject * > | SUPER_t |
| typedef SUPER_t::REF_t | REF_t |
| typedef SUPER_t::ELEM_t | ELEM_t |
Public Types inherited from Gray::cArrayFacade< TYPE, TYPE_ARG > | |
| typedef cArrayTyped< TYPE, TYPE_ARG > | SUPER_t |
| typedef cArrayFacade< TYPE, TYPE_ARG > | THIS_t |
| typedef SUPER_t::ELEM_t | ELEM_t |
| typedef SUPER_t::REF_t | REF_t |
Public Types inherited from Gray::cArrayTyped< TYPE, TYPE * > | |
| typedef CArray< TYPE, TYPE * > | SUPER_t |
| typedef cArrayTyped< TYPE, TYPE * > | THIS_t |
| typedef ITERATE_t | iterator |
| typedef ITERATE_t | const_iterator |
| typedef TYPE | ELEM_t |
| What type is stored. More... | |
| typedef TYPE * | REF_t |
| How to refer to this? value or ref or pointer? More... | |
Public Attributes inherited from Gray3D::cSpatialTestVisitor | |
| UINT | _Count = 0 |
Protected Member Functions inherited from Gray::cArrayTyped< TYPE, TYPE * > | |
| virtual COMPARE_t | CompareData (REF_t Data1, REF_t Data2) const noexcept |
| ITERATE_t | QSortPartition (ITERATE_t iLeft, ITERATE_t iRight) |
| void | QSort (ITERATE_t iLeft, ITERATE_t iRight) |
Protected Member Functions inherited from Gray::CArray< TYPE, ARG_TYPE > | |
| bool | IsValidIndex (ITERATE_t i) const noexcept |
Protected Attributes inherited from Gray::CArray< TYPE, ARG_TYPE > | |
| TYPE * | m_pData |
| the actual array of data More... | |
| ITERATE_t | m_nSize |
| Number of elements (upperBound - 1) More... | |
hold a list of TYPEed objects as traversal results. handy for common queries. ASSUME: _TYPE is always based on cSpatialObject
|
inlineoverridevirtual |
record the intersection in array.
Reimplemented from Gray3D::cSpatialTestVisitor.