CODComponentTracker Class

class CODComponentTracker: public CObject

Used to track an object on the screen.

Defined in: OdCompTracker.h

Class Members

VIEWS_API CODComponentTracker(CODComponent* pComp = NULL)

Constructor.

VIEWS_API virtual ~CODComponentTracker()

Destructor.

VIEWS_API void SetComponent(CODComponent* pComp)

Sets the component to track.

VIEWS_API CODComponent* GetComponent()

Gets the tracked component.

VIEWS_API virtual void Translate(int nOffsetX, int nOffsetY)

Moves the component by an offset.

VIEWS_API virtual void Rotate(int nAngle, OD_CONTROL_POINT nControlPoint = OD_CENTER, CSize sizeAspectRatio = odg_sizeDefaultAspectRatio)

Rotates the component about a point.

VIEWS_API virtual void Scale(float fScaleX, float fScaleY, OD_CONTROL_POINT nControlPoint)

Scales the component in reference to a point.

VIEWS_API virtual OD_MOVEVERTEX_RC MoveVertex(int nVertexIndex, int nOffsetX, int nOffsetY)

Moves one of the component's vertices.

VIEWS_API void Track(CDC* pDC)

Draws tracking to a DC.

VIEWS_API virtual void Serialize(CArchive& ar)

Serialize the component.

CODComponent* m_pComp

Pointer to component to track.

CODComponentPosition* m_pCompPos

Pointer to component position object.