using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace DPumpHydr.WinFrmUI.Volute
|
{
|
public partial class OccDesign2DCtrl : OccDesignBaseCtrl
|
{
|
public OccDesign2DCtrl()
|
{
|
this._is3D = false ;
|
}
|
public override void Initial()
|
{
|
// 创建时的代码
|
pDisplayView = new HydrEngineCSharp.CDisplayView();
|
|
pDisplayView.InitOCCDraw();
|
IntPtr hwnd = this.Handle;
|
//IntPtr hwnd = splitContainer1.Handle;
|
// 初始化更新代码
|
pDisplayView.InitialUpdateOCC((uint)hwnd, this._is3D);
|
|
bool bSucc = pDisplayView.BeginTurbopumpTopoShape(strTurbopumpTopoShapeName);
|
}
|
|
public HydrEngineCSharp.BcGePoint CreateWaterBody()
|
{
|
//double dOuterOffset = theOffset;
|
//double dOuterHigh = theHigh;
|
//double dOuterRad = theRad;
|
//if (CreateOutflowBodyConnect())
|
//{
|
// //pDisplayView.build2DSegmentCurve(dOuterOffset, dOuterHigh, dOuterRad);// 75.660892, 283.1167
|
// //Invalidate(true);
|
// //pDisplayView.FitAll3DViews(true);
|
// //HydrEngineCSharp.BcGePoint thePt = pDisplayView.get2DSegmentInterPt();
|
|
|
// return thePt;
|
//}
|
//HydrEngineCSharp.BcGePoint theMidCurveFilletPtOnBase = new HydrEngineCSharp.BcGePoint();
|
//HydrEngineCSharp.BcGePoint theMidCurveFilletPtOnOuter = new HydrEngineCSharp.BcGePoint();
|
//this.pDisplayView.CreateWaterBody(theMidCurveFilletPtOnBase, theMidCurveFilletPtOnOuter);
|
//theMidCurveFilletPtOnBase = this.pDisplayView.get2DMidCurveFilletPtOnBase();
|
//theMidCurveFilletPtOnOuter = this.pDisplayView.get2DMidCurveFilletPtOnOuter();
|
////this.pDisplayView3d.CreateWaterBody(theMidCurveFilletPtOnBase, theMidCurveFilletPtOnOuter);
|
return null;
|
|
//Invalidate(true);
|
}
|
}
|
}
|