From 53641ec32e8a7e7d3afe059ef050e1c42d2c83b6 Mon Sep 17 00:00:00 2001 From: mzn Date: Mon, 22 Jun 2015 14:54:56 +0300 Subject: [PATCH] refs #567: add "POLYLINES" partition and modified icon for Land Cover object. --- src/HYDROGUI/HYDROGUI_DataModel.cxx | 9 +++++++++ src/HYDROGUI/resources/HYDROGUI_images.ts | 4 ++++ src/HYDROGUI/resources/HYDROGUI_msg_en.ts | 4 ++++ src/HYDROGUI/resources/icon_mland_cover.png | Bin 0 -> 1166 bytes 4 files changed, 17 insertions(+) create mode 100644 src/HYDROGUI/resources/icon_mland_cover.png diff --git a/src/HYDROGUI/HYDROGUI_DataModel.cxx b/src/HYDROGUI/HYDROGUI_DataModel.cxx index ffc6dd52..6255c5e5 100644 --- a/src/HYDROGUI/HYDROGUI_DataModel.cxx +++ b/src/HYDROGUI/HYDROGUI_DataModel.cxx @@ -1071,6 +1071,15 @@ void HYDROGUI_DataModel::buildObjectTree( SUIT_DataObject* theParent, createObject( aGuiObj, aBottomPolyline, aGuiObj->entry(), false ); } } + else if ( anObjectKind == KIND_LAND_COVER ) + { + Handle(HYDROData_LandCover) aLandCoverObj = + Handle(HYDROData_LandCover)::DownCast( aDataObj ); + + HYDROData_SequenceOfObjects aPolylines = aLandCoverObj->GetPolylines(); + buildObjectPartition( aGuiObj, aPolylines, tr( "LAND_COVER_POLYLINES" ), true ); + } + } void HYDROGUI_DataModel::buildCaseTree( SUIT_DataObject* theParent, Handle(HYDROData_CalculationCase) theCase, diff --git a/src/HYDROGUI/resources/HYDROGUI_images.ts b/src/HYDROGUI/resources/HYDROGUI_images.ts index 6123c89a..a93cf4f8 100644 --- a/src/HYDROGUI/resources/HYDROGUI_images.ts +++ b/src/HYDROGUI/resources/HYDROGUI_images.ts @@ -235,6 +235,10 @@ HYDRO_M_TYPE20_ICO icon_mhydro_obj.png + + HYDRO_M_TYPE27_ICO + icon_mland_cover.png + diff --git a/src/HYDROGUI/resources/HYDROGUI_msg_en.ts b/src/HYDROGUI/resources/HYDROGUI_msg_en.ts index 6c1803c9..4a368a57 100644 --- a/src/HYDROGUI/resources/HYDROGUI_msg_en.ts +++ b/src/HYDROGUI/resources/HYDROGUI_msg_en.ts @@ -277,6 +277,10 @@ All supported formats (*.brep *.iges *.igs *.step *.stp) STRICKLER_TABLE_FILTER Strickler table files (*.txt);;All files (*.* *) + + LAND_COVER_POLYLINES + Polylines + diff --git a/src/HYDROGUI/resources/icon_mland_cover.png b/src/HYDROGUI/resources/icon_mland_cover.png new file mode 100644 index 0000000000000000000000000000000000000000..9607f7c0ba5677e80dd69994ca0a4d8c01aed4c3 GIT binary patch literal 1166 zcmYjQeQZ-z6#w1z^<#Yv`@MHP_nOY#=68Ot=lsrj z=iYPQz;jzR*SG_205#F>uIGt00hfbpQ-<#*a=g~FxeHwUPM-hfOY&5|)7`fpQ0oL3 zjtwp)r}IFxccU}zSfYmg&u)LU15h4_cCFvG+RHTM?=mBaTnF~=V^jKlyRRWoBu2IB z!O_^@e0+h9FN{}J0_ns(oE-YLBzVu>H_2VZiLZLOKzIK*fBHjRq7p9|T&Bu5@By&5 zZtb=eESRn;Sj31lT}R&woh0Iz&Uj(dw#$UrXZ;ZI5)6EO`_g;^GN|rQWx=f z!LjP`_F{VaoPKe1ryPaU7T)l{wI?H5h!egi{79G#Hkhdv-z_X&ycF*bBnc@rg~F~- zW7=Kso%nC#BwYV#a+V09zzxE6&RLu>KJvs$v$`$fH_O>^aNyapvtMvw%(8u0Ypy{QSczSe%1ZEy8Tt#Mz&gA(==* ztM$n(h`q3vy338tk+yob+p?$gccEwF7#kZyB9VY;FMvCWV2&9iW@n+|H+few**wG+ z{_-xe);gVdD)`{TfplgBCO2TGxlHN(6b4dB(WF=|T z&d!!cmW4H+Y5spe%@2*rw2434Bv(v&GBKXKlQ`D%I{#c5jS7=H_doDaSnxtn$H*V=Vvtd{NzarXaR{#J2 literal 0 HcmV?d00001 -- 2.39.2