IPAL 18539 & turn off the local selection in PrimitiveGUI where it needs

This commit is contained in:
dmv 2008-01-14 15:07:41 +00:00
parent c0000004c7
commit 1706a8d813
6 changed files with 26 additions and 0 deletions

View File

@ -186,6 +186,16 @@ class geompyDC(GEOM._objref_GEOM_Gen):
anObj = self.BasicOp.MakePointOnCurve(theRefCurve, theParameter)
RaiseIfFailed("MakePointOnCurve", self.BasicOp)
return anObj
## Create a point on intersection of two lines.
# @param theRefLine1, theRefLine2 The referenced lines.
# @return New GEOM_Object, containing the created point.
#
# Example: see GEOM_TestAll.py
def MakeVertexOnLinesIntersection(self, theRefLine1, theRefLine2):
anObj = self.BasicOp.MakePointOnLinesIntersection(theRefLine1, theRefLine2)
RaiseIfFailed("MakePointOnLinesIntersection", self.BasicOp)
return anObj
## Create a tangent, corresponding to the given parameter on the given curve.
# @param theRefCurve The referenced curve.
@ -241,6 +251,17 @@ class geompyDC(GEOM._objref_GEOM_Gen):
anObj = self.BasicOp.MakeLineTwoPnt(thePnt1, thePnt2)
RaiseIfFailed("MakeLineTwoPnt", self.BasicOp)
return anObj
## Create a line on two faces intersection.
# @param theFace1 First of two faces, defining the line.
# @param theFace2 Second of two faces, defining the line.
# @return New GEOM_Object, containing the created line.
#
# Example: see GEOM_TestAll.py
def MakeLineTwoFaces(self, theFace1, theFace2):
anObj = self.BasicOp.MakeLineTwoFaces(theFace1, theFace2)
RaiseIfFailed("MakeLineTwoFaces", self.BasicOp)
return anObj
## Create a plane, passing through the given point
# and normal to the given vector.

View File

@ -191,6 +191,7 @@ void PrimitiveGUI_BoxDlg::ConstructorsClicked(int constructorId)
case 1:
{
GroupPoints->hide();
globalSelection(); // close local contexts, if any
resize(0, 0);
GroupDimensions->show();

View File

@ -205,6 +205,7 @@ void PrimitiveGUI_ConeDlg::ConstructorsClicked(int constructorId)
case 1 :
{
GroupPoints->hide();
globalSelection(); // close local contexts, if any
resize( 0, 0 );
GroupDimensions->show();

View File

@ -198,6 +198,7 @@ void PrimitiveGUI_CylinderDlg::ConstructorsClicked(int constructorId)
case 1 :
{
GroupPoints->hide();
globalSelection(); // close local contexts, if any
resize( 0, 0 );
GroupDimensions->show();

View File

@ -173,6 +173,7 @@ void PrimitiveGUI_SphereDlg::ConstructorsClicked (int constructorId)
case 1:
{
GroupPoints->hide();
globalSelection(); // close local contexts, if any
resize(0, 0);
GroupDimensions->show();

View File

@ -199,6 +199,7 @@ void PrimitiveGUI_TorusDlg::ConstructorsClicked (int constructorId)
case 1:
{
GroupPoints->hide();
globalSelection(); // close local contexts, if any
resize(0, 0);
GroupDimensions->show();