From: adv Date: Tue, 17 Dec 2013 07:02:35 +0000 (+0000) Subject: Code for debug group objects added (Feature #242). X-Git-Tag: BR_hydro_v_0_6~76 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d55359a277a283cc2c204de55739fa8aa3acb085;p=modules%2Fhydro.git Code for debug group objects added (Feature #242). --- diff --git a/src/HYDROGUI/HYDROGUI_DataModel.cxx b/src/HYDROGUI/HYDROGUI_DataModel.cxx index e43410b4..084fab39 100644 --- a/src/HYDROGUI/HYDROGUI_DataModel.cxx +++ b/src/HYDROGUI/HYDROGUI_DataModel.cxx @@ -70,6 +70,11 @@ #include #include +// #define DEB_GROUPS 1 +#ifdef DEB_GROUPS +#include +#endif + static HYDROData_SequenceOfObjects myCopyingObjects; HYDROGUI_DataModel::HYDROGUI_DataModel( CAM_Module* theModule ) @@ -721,6 +726,21 @@ void HYDROGUI_DataModel::buildObjectTree( SUIT_DataObject* theParent, Handle(HYDROData_DummyObject3D) anObject3D = aGeomObj->GetObject3D(); if ( !anObject3D.IsNull() ) createObject( aGuiObj, anObject3D, aGuiObj->entry(), false ); + +#ifdef DEB_GROUPS + LightApp_DataObject* aGroupsSect = + createObject( aGuiObj, tr( "OBJECT_GROUPS" ), aGuiObj->entry() ); + + HYDROData_SequenceOfObjects anObjGroups = aGeomObj->GetGroups(); + HYDROData_SequenceOfObjects::Iterator anIter( anObjGroups ); + for ( ; anIter.More(); anIter.Next() ) + { + Handle(HYDROData_EdgesGroup) anObjGroup = + Handle(HYDROData_EdgesGroup)::DownCast( anIter.Value() ); + if( !anObjGroup.IsNull() && !anObjGroup->IsRemoved() ) + createObject( aGroupsSect, anObjGroup, aGuiObj->entry(), false ); + } +#endif } ObjectKind anObjectKind = aDataObj->GetKind(); diff --git a/src/HYDROGUI/resources/HYDROGUI_msg_en.ts b/src/HYDROGUI/resources/HYDROGUI_msg_en.ts index 08ae62f6..b6093740 100644 --- a/src/HYDROGUI/resources/HYDROGUI_msg_en.ts +++ b/src/HYDROGUI/resources/HYDROGUI_msg_en.ts @@ -148,6 +148,10 @@ does not exist or you have not enough permissions to open it. ZONE_BATHYMETRY Bathymetry + + OBJECT_GROUPS + Groups + MERGE_UNKNOWN Unresolved Conflict