// ShapeSwimlane.h: interface for the ShapeSwimlane class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SHAPESWIMLANE_H__0FDCC4ED_4F31_4A5C_A74F_58D8D7EC4C5C__INCLUDED_)
#define AFX_SHAPESWIMLANE_H__0FDCC4ED_4F31_4A5C_A74F_58D8D7EC4C5C__INCLUDED_

#include "ShapeElement.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class ShapeSwimlane : public ShapeElement  
{
public:
	void Draw(CDC *pDC);
	BOOL In(CPoint pt );
	ShapeSwimlane();
	virtual ~ShapeSwimlane();
public:
	void Save(CFile &file ,int &tabnum);
	ShapeNamespace* GetShapeNamespace();
	void AdjustActivityPos(RECT o , RECT n,ShapeActivity *sa = NULL);
	ShapeType GetType();

	UMLSwimlane *m_pSwimlane;
	CPtrTempl<ShapeActivity*>m_pActivities;//包含的活动，泳道析构时要释放活动
	ShapeActivityGraph *m_pShapeActivityGraph;//所属的活动图
};

#endif // !defined(AFX_SHAPESWIMLANE_H__0FDCC4ED_4F31_4A5C_A74F_58D8D7EC4C5C__INCLUDED_)
