void CCadEdge2DPolyline::Drag(Cad::CCadObj2D& cad_2d, const Com::CVector2D& dist_pos) { const Com::CVector2D del = dist_pos-pick_pos; this->SetDisp(idiv_picked, 0, del.x); this->SetDisp(idiv_picked, 1, del.y); this->SetDisp(idiv_picked+1, 0, del.x); this->SetDisp(idiv_picked+1, 1, del.y); this->SolveLinearStatic(); std::vector<Com::CVector2D> aXYs; for(unsigned int i=1;i<nno-1;i++){ double x,y,t; GetValueNode(i, x, y, t); aXYs.push_back( Com::CVector2D(x,y) ); } cad_2d.SetCurve_Polyline(m_IdECad,aXYs); }
/* return the current status of the Main execution thread */ int IsRunning(NodeObj Main){ return (GetInt((DataObj)GetValueNode(GetPropNode(Main, "State")))); }