using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using HydrEngineCSharp;
|
|
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 void CreateWaterBody(HydrEngineCSharp.BcGePoint theMPlnBasePt, HydrEngineCSharp.BcGePoint theMPlnOuterPt)
|
{
|
|
|
//WaterBodyOuterParam theWaterBodyOuterParam = new WaterBodyOuterParam();
|
//theWaterBodyOuterParam.SetOuterOffset(theOffset);
|
//theWaterBodyOuterParam.SetOuterHigh(theHigh);
|
//theWaterBodyOuterParam.SetOuterRad(theRad);
|
//theWaterBodyOuterParam.SetTopValue(m_dTopValue);
|
//theWaterBodyOuterParam.SetBtmValue(m_dBtmValue);
|
|
|
|
// pDisplayView.build2DMidCurve(theWaterBodyOuterParam);
|
|
// pDisplayView.build2DMidCurveFillet(dAngle, m_dMPlnBasePtScaleValue, m_dMPlnOuterPtScaleValue);
|
// Invalidate(true);
|
// pDisplayView.FitAll3DViews(true);
|
|
}
|
|
|
public void EditOutletFlow()
|
{
|
//m_dTopValue += 0.1;
|
//m_dBtmValue += 0.1;
|
//pDisplayView.edit2DMidCurve(m_dTopValue, m_dBtmValue);
|
|
//pDisplayView.build2DMidCurveFillet(dAngle, m_dMPlnBasePtScaleValue, m_dMPlnOuterPtScaleValue);
|
//Invalidate(true);
|
//pDisplayView.FitAll3DViews(true);
|
}
|
|
}
|
}
|