CODComponentSetTracker Class
class CODComponentSetTracker: public CObject
CODComponentSetTrackerDefined in: OdCompTracker.h
Class Members
Constructor.
virtual ~CODComponentSetTracker()
Destructor.
void SetComponents(CODComponentSet* pCompSet)
Sets the set of tracked components.
void SetDepComponents(CODComponentSet* pCompSet)
Sets the set of components dependant on tracked components.
CRect GetAlignRect() const
Gets the alignment rectangle for the set of components.
CPoint GetAnchorPoint() const
Gets the anchor point for the tracking.
void SetAnchorPoint(OD_CONTROL_POINT ctlPoint)
Sets the anchor point for the tracking.
void RemoveAll()
Removes all components from the set of tracked components.
void TrackMovement(CDC* pDC, int nOffsetX, int nOffsetY)
Tracks a movement operation.
void TrackRotation(CDC* pDC, int nAngle, CSize sizeAspectRatio = odg_sizeDefaultAspectRatio)
Tracks a rotation operation.
void TrackScaling(CDC* pDC, float fScaleX, float fScaleY, OD_CONTROL_POINT nControlPoint)
Tracks a scaling operation.
OD_MOVEVERTEX_RC TrackVertexMove(CDC* pDC, int nVertexIndex, int nOffsetX, int nOffsetY)
Tracks a vertex move operation.
void DrawTracking(CDC* pDC)
Draws tracking to a DC.
void EraseTracking(CDC* pDC)
Erases the old component tracking.
CRect GetUpdateRect() const
Get the current update rectangle in logical units.
int m_nTrackingSize
The number of components being tracked.
CODComponentTracker* m_pArrTracking
Array of CODComponentTracker objects, one per component, which track individual components.
int m_nTrackingDepSize
The number of dependants being tracked.
CODComponentTracker* m_pArrTrackingDep
Array of CODComponentTracker objects, one per component, which track individual dependants of components.
CODComponentTrackerSet m_setTrackingUpdate
The entire set of components being tracked and updated.
CODRgn m_rgn
The combined regions of all tracked components.
CRect m_rcAlign
The alignment rectangle of the tracked components.
OD_CONTROL_POINT m_ctlPoint
Scaling control point.
BOOL m_bSinglePort
TRUE if tracking a single port
void PutSymbolsInMap(CODConnectionMap& mapNotified)
Puts symbols in notification map so they are not notified of connection moves.
void GetSymbolsFromMap(CODConnectionMap& mapNotified)
Gets symbols from notification map.
void AllocTrackingArray(const int nSize)
Allocates an array of CODComponentTracker objects for the primary components being tracked.
void AllocTrackingDepArray(const int nSize)
Allocates an array of CODComponentTracker objects for dependants of the primary components being tracked.