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

VIEWS_API CODBspRect()

Constructor.

VIEWS_API CODBspRect(const CODBspRect& rcBsp)

Copy constructor.

Attributes

CODComponent* m_pComponent

A pointer to the component that occupies this section of space.

VIEWS_API CODComponent* GetComponent() const

Gets a pointer to the component occupying this section of space.

VIEWS_API void SetComponent(CODComponent* pComponent)

Associates this rectangle with a component.

Operations

VIEWS_API CODBspRect& operator=(const CODBspRect& rcBsp)

Sets this rectangle equal to another.