mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
added new Advanced Repair menu
This commit is contained in:
parent
f7a34e7081
commit
dc220f3e4f
@ -5028,6 +5028,42 @@ Please, select face, shell or solid and try again</translation>
|
||||
<source>STB_UNION_FACES</source>
|
||||
<translation>Union faces</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>TOP_LOCATE_SUBSHAPES</source>
|
||||
<translation>Locate Subshapes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>MEN_LOCATE_SUBSHAPES</source>
|
||||
<translation>Locate Subshapes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>STB_LOCATE_SUBSHAPES</source>
|
||||
<translation>Locate subshapes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>TOP_MERGE_FACES</source>
|
||||
<translation>Merge faces</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>MEN_MERGE_FACES</source>
|
||||
<translation>Merge Faces</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>STB_MERGE_FACES</source>
|
||||
<translation>Merge faces</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>TOP_UNION_EDGES</source>
|
||||
<translation>Union edges</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>MEN_UNION_EDGES</source>
|
||||
<translation>Union Edges</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>STB_UNION_EDGES</source>
|
||||
<translation>Union edges</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>TOP_INSPECT_OBJECT</source>
|
||||
<translation>Inspect Object</translation>
|
||||
|
@ -697,6 +697,9 @@ void GeometryGUI::OnGUIEvent( int id, const QVariant& theParam )
|
||||
case GEOMOp::OpRemoveExtraEdges: // MENU REPAIR - REMOVE EXTRA EDGES
|
||||
case GEOMOp::OpFuseEdges: // MENU REPAIR - FUSE COLLINEAR EDGES
|
||||
case GEOMOp::OpUnionFaces: // MENU REPAIR - UNION FACES
|
||||
case GEOMOp::OpLocateSubShapes: // MENU REPAIR - ADVANCED - LOCATE SUBSHAPES
|
||||
case GEOMOp::OpMergeFaces: // MENU REPAIR - ADVANCED - MERGE FACES
|
||||
case GEOMOp::OpUnionEdges: // MENU REPAIR - ADVANCED - UNION EDGES
|
||||
case GEOMOp::OpInspectObj: // MENU REPAIR - INSPECT OBJECT
|
||||
libName = "RepairGUI";
|
||||
break;
|
||||
@ -1095,6 +1098,9 @@ void GeometryGUI::initialize( CAM_Application* app )
|
||||
createGeomAction( GEOMOp::OpRemoveExtraEdges, "REMOVE_EXTRA_EDGES" );
|
||||
createGeomAction( GEOMOp::OpFuseEdges, "FUSE_EDGES" );
|
||||
createGeomAction( GEOMOp::OpUnionFaces, "UNION_FACES" );
|
||||
createGeomAction( GEOMOp::OpLocateSubShapes, "LOCATE_SUBSHAPES" );
|
||||
createGeomAction( GEOMOp::OpMergeFaces, "MERGE_FACES" );
|
||||
createGeomAction( GEOMOp::OpUnionEdges, "UNION_EDGES" );
|
||||
createGeomAction( GEOMOp::OpInspectObj, "INSPECT_OBJECT" );
|
||||
|
||||
createGeomAction( GEOMOp::OpPointCoordinates, "POINT_COORDS" );
|
||||
@ -1363,6 +1369,11 @@ void GeometryGUI::initialize( CAM_Application* app )
|
||||
createMenu( GEOMOp::OpFuseEdges, repairId, -1 );
|
||||
createMenu( GEOMOp::OpUnionFaces, repairId, -1 );
|
||||
|
||||
int advId = createMenu( tr( "MEN_ADVANCED" ), repairId, -1 );
|
||||
createMenu( GEOMOp::OpLocateSubShapes, advId, -1 );
|
||||
createMenu( GEOMOp::OpMergeFaces, advId, -1 );
|
||||
createMenu( GEOMOp::OpUnionEdges, advId, -1 );
|
||||
|
||||
int measurId = createMenu( tr( "MEN_MEASURES" ), -1, -1, 10 );
|
||||
createMenu( GEOMOp::OpPointCoordinates, measurId, -1 );
|
||||
createMenu( GEOMOp::OpProperties, measurId, -1 );
|
||||
|
@ -185,6 +185,9 @@ namespace GEOMOp {
|
||||
OpFuseEdges = 4014, // MENU REPAIR - FUSE COLLINEAR EDGES
|
||||
OpUnionFaces = 4015, // MENU REPAIR - UNION FACES
|
||||
OpRemoveWebs = 4016, // MENU REPAIR - REMOVE INTERNAL FACES
|
||||
OpLocateSubShapes = 4017, // MENU REPAIR - ADVANCED - LOCATE SUB SHAPES
|
||||
OpMergeFaces = 4018, // MENU REPAIR - ADVANCED - MERGE FACES
|
||||
OpUnionEdges = 4019, // MENU REPAIR - ADVANCED - UNION EDGES
|
||||
// MeasureGUI ------------------//--------------------------------
|
||||
OpProperties = 5000, // MENU MEASURES - PROPERTIES
|
||||
OpCenterMass = 5001, // MENU MEASURES - CENTRE OF MASS
|
||||
|
@ -98,6 +98,9 @@ bool RepairGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
|
||||
case GEOMOp::OpRemoveExtraEdges: aDlg = new RepairGUI_RemoveExtraEdgesDlg (getGeometryGUI(), parent); break;
|
||||
case GEOMOp::OpFuseEdges: aDlg = new RepairGUI_FuseEdgesDlg (getGeometryGUI(), parent); break;
|
||||
case GEOMOp::OpUnionFaces: aDlg = new RepairGUI_UnionFacesDlg (getGeometryGUI(), parent); break;
|
||||
// case GEOMOp::OpLocateSubShapes: /*to be implemented*/ break;
|
||||
// case GEOMOp::OpMergeFaces: /*to be implemented*/ break;
|
||||
// case GEOMOp::OpUnionEdges: /*to be implemented*/ break;
|
||||
case GEOMOp::OpInspectObj: aDlg = new RepairGUI_InspectObjectDlg (getGeometryGUI(), parent); break;
|
||||
default:
|
||||
app->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
|
||||
|
Loading…
Reference in New Issue
Block a user