CODBspRect Class
class CODBspRect: public CRect
This is a special CRect object that is associated with a CODComponent object. This is used in the binary space partitioning tree to keep track of where components are located in space.Defined in: OdBspRect.h
See Also
CODBspTree, CODBspNode, CODBspRectArray, CODComponent
Class Members
Construction
Constructor.
CODBspRect(const CODBspRect& rcBsp)
Copy constructor.
Attributes
CODComponent* m_pComponent
A pointer to the component that occupies this section of space.
CODComponent* GetComponent() const
Gets a pointer to the component occupying this section of space.
void SetComponent(CODComponent* pComponent)
Associates this rectangle with a component.
Operations
CODBspRect& operator=(const CODBspRect& rcBsp)
Sets this rectangle equal to another.