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

#include <cRegion3.h>

Inheritance diagram for GrayLib::cRegion3f:
GrayLib::cRegion Gray::CObject

Public Member Functions

 cRegion3f () noexcept
 
 ~cRegion3f () noexcept
 
 UNITTEST_FRIEND (cRegion3)
 
- Public Member Functions inherited from GrayLib::cRegion
 cRegion (const cRectI &rect)
 
 cRegion ()
 
virtual ~cRegion ()
 
virtual bool isValidCheck () const noexcept
 < memory allocation and structure definitions are valid. More...
 
bool isRegionEmpty () const
 
void EmptyRegion ()
 
void AddRegion (const cRegion *pRegionTest)
 
bool SubtractRegion (const cRegion *pRegionTest)
 
void SetRegionSubtract (const cRectI &rect1, const cRectI &rect2)
 
const cRectIget_RectUnion () const
 
void put_RectUnion (const cRectI &rect)
 
ITERATE_t get_RegionRectCount () const
 
const cRectIGetRegionRect (ITERATE_t i) const
 
cRectIRefRegionRect (ITERATE_t i)
 
virtual bool AddRegionRect (const cRectI &rect)
 
virtual void RemoveRegionRect (ITERATE_t i)
 
bool SubtractRegionRect (const cRectI &rect)
 
void OptimizeRegionRects ()
 
cPoint2i GetRegionCorner (DIR_TYPE eDir=DIR_QTY) const
 
bool PtInRegion (int x, int y) const
 
bool PtInRegion (const cPoint2i &pt) const
 
bool IsOverlapped (const cRectI &rect) const
 
bool IsInsideMe (const cRectI &rect) const
 
bool IsInsideMe (const cRegion *pRegionIsSmaller) const
 
bool IsOverlapped (const cRegion *pRegionTest) const
 
bool IsEqualRegion (const cRegion *pRegionTest) const
 
HRESULT v_SetRegion (const cVariant &vVal)
 
void v_GetRegion (cVariant &vVal) const
 
 UNITTEST_FRIEND (cRegion)
 
- 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 Attributes

cValueRange< float > m_z
 z bottom/top of the region. More...
 

Additional Inherited Members

- Protected Attributes inherited from GrayLib::cRegion
cRectI m_rectUnion
 The union rectangle. (may have holes in it of course) More...
 

Detailed Description

This is a 2d region (union of rectangles) but with a top and bottom in z coords to make it 3d.

Note
Ideally each rectangle would have a z top/bottom.

Constructor & Destructor Documentation

◆ cRegion3f()

GrayLib::cRegion3f::cRegion3f ( )
noexcept

◆ ~cRegion3f()

GrayLib::cRegion3f::~cRegion3f ( )
noexcept

Member Function Documentation

◆ UNITTEST_FRIEND()

GrayLib::cRegion3f::UNITTEST_FRIEND ( cRegion3  )

Member Data Documentation

◆ m_z

cValueRange<float> GrayLib::cRegion3f::m_z

z bottom/top of the region.


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