From a4c7964a2856350a97de8c6c4115a4dd1a06947e Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 21 Mar 2011 14:06:34 +0000 Subject: [PATCH] Merge from BR_WIN_INDUS_514 branch 21/03/2011 (Windows industrialization) --- .../gui/GEOM/images/neo-transparency.png | Bin 6412 -> 7847 bytes doc/salome/gui/GEOM/input/transparency.doc | 10 +++++++--- .../GEOMToolsGUI_TransparencyDlg.cxx | 14 +++++++------- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/doc/salome/gui/GEOM/images/neo-transparency.png b/doc/salome/gui/GEOM/images/neo-transparency.png index bff078966b45ea79ef3640cd4c16040a452c55f7..0a2946d17b289ba95a8582307576eb733b7278c3 100755 GIT binary patch literal 7847 zcmb_>Wl&tf_a%W42p$|l(BK5OU=ut*aCdhL4#5(fK@;39*Z_kCw*T zzklu4e%P(r+TAa=-n-M?(|!B&xu@@oR#TD3#iGPQK|#S)crT-Yg7U-)c&@{I23Rlb zh7uGMY8M3=NiE;(lT|-YE$vps#aX!rgiTvPn^5W-mN}j@xivvz+2;`Rniocmot>z< zwYA00FYHfr4b|-Kx~~PxbkTok=NmVX;pujOai&n?SfXerLc+Kg*c3htqGS+#n<+;m zq%A!@PCbV&5iQ2>J0TKb9$4ft}4k%JU3a9B1;#fJ-tWAi* zDcb_Y`TRPRG$GuWrgV2(QwWu@p;5b?p^xz^l>`=cwGM~fwvG8vyyCR_8@pP`l;@MY z;KCV0a0hbfr(+Y@?a1l1#3Yo z+?AJo!4HD-S>YjjK?}VCvVo^wV~<5c#ku+6D_I4EyZq~;6Pt{Pmb+s6{k9c_(6!e@ zhxBzU=){P`Fg``&z`4DVyDc2(?HON2jTgx`Ru8nQO&`G4VW zwNfYGDZj;DRkF6@WlrdTttB)~G+luXR#xRzOrH3|1AFkp)jcVFKs*lvMG*@>55JF6 zGSLv5Fs;1W-X|?r-@N{so1zr34%Ius(}IDSr=Fx(SKga}(8I%5J_QD^&=rW?%&!uY z?OgVb*1itQ-u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{Jnrmph@N{05Zj#3nZ3+=sMq2qo>aQDs^M7HSjgTZfXml8t+umSLBV7bUO vYCv?p<|CXv8V_1@G?8S$_4CWib3s{uk4_E49!=n14v@Nvw(<`}i}3#fu#3$t diff --git a/doc/salome/gui/GEOM/input/transparency.doc b/doc/salome/gui/GEOM/input/transparency.doc index c7c0a3ea9..1bb550cbf 100644 --- a/doc/salome/gui/GEOM/input/transparency.doc +++ b/doc/salome/gui/GEOM/input/transparency.doc @@ -3,14 +3,18 @@ \page transparency_page Transparency \n You can change the transparency of a shape in the range between 0% -(absolutely transparent and thus invisible) and 100% (absolutely opaque) +(absolutely opaque) and 100% (absolutely transparent and thus invisible) in the following dialog box. \image html neo-transparency.png -or using a TUI Command: gg.setTransparency(ID, Double) +or using a TUI Command: gg.setTransparency(ID, Value) -\n Examples: +where +- ID is an object ID (entry) +- Value is a transparency value in range [0-1]; 0 means fully opaque, 1 means fully transparent + +Examples: \image html colorsn.png
Opaque
diff --git a/src/GEOMToolsGUI/GEOMToolsGUI_TransparencyDlg.cxx b/src/GEOMToolsGUI/GEOMToolsGUI_TransparencyDlg.cxx index adea69bd2..2c0de6cbe 100644 --- a/src/GEOMToolsGUI/GEOMToolsGUI_TransparencyDlg.cxx +++ b/src/GEOMToolsGUI/GEOMToolsGUI_TransparencyDlg.cxx @@ -97,8 +97,8 @@ GEOMToolsGUI_TransparencyDlg::GEOMToolsGUI_TransparencyDlg( QWidget* parent ) GroupC1Layout->setMargin( 11 ); QLabel* TextLabelTransparent = new QLabel( tr( "GEOM_TRANSPARENCY_TRANSPARENT" ), GroupC1 ); - TextLabelTransparent->setAlignment( Qt::AlignRight ); - GroupC1Layout->addWidget( TextLabelTransparent, 0, 0 ); + TextLabelTransparent->setAlignment( Qt::AlignLeft ); + GroupC1Layout->addWidget( TextLabelTransparent, 0, 2 ); myValueLab = new QLabel( GroupC1 ); myValueLab->setAlignment( Qt::AlignCenter ); @@ -107,8 +107,8 @@ GEOMToolsGUI_TransparencyDlg::GEOMToolsGUI_TransparencyDlg( QWidget* parent ) GroupC1Layout->addWidget( myValueLab, 0, 1 ); QLabel* TextLabelOpaque = new QLabel( tr( "GEOM_TRANSPARENCY_OPAQUE" ), GroupC1 ); - TextLabelOpaque->setAlignment( Qt::AlignLeft ); - GroupC1Layout->addWidget( TextLabelOpaque, 0, 2 ); + TextLabelOpaque->setAlignment( Qt::AlignRight ); + GroupC1Layout->addWidget( TextLabelOpaque, 0, 0 ); //GroupC1Layout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ), 0, 1 ); mySlider = new QSlider( Qt::Horizontal, GroupC1 ); @@ -242,7 +242,7 @@ void GEOMToolsGUI_TransparencyDlg::SliderHasMoved(int value) //================================================================================= void GEOMToolsGUI_TransparencyDlg::SetTransparency() { - float newValue = ( 100 - mySlider->value() ) / 100.; + float newValue = mySlider->value() / 100.; SalomeApp_Application* app = dynamic_cast< SalomeApp_Application* >( SUIT_Session::session()->activeApplication() ); if ( !app ) @@ -276,7 +276,7 @@ void GEOMToolsGUI_TransparencyDlg::SetTransparency() SVTK_View* aView = vtkVW->getView(); if ( myFirstInit ) { myFirstInit = false; - int transp = int (100 - ((aView->GetTransparency(FirstIOS))*100.0) + 0.5); + int transp = int ((aView->GetTransparency(FirstIOS))*100.0 + 0.5); mySlider->setValue(transp); ValueHasChanged(); return; @@ -300,7 +300,7 @@ void GEOMToolsGUI_TransparencyDlg::SetTransparency() aisShape = gb->ConvertIOinGEOMAISShape( FirstIOS, true ); if( aisShape.IsNull() ) return; - int transp = int( 100 - ( aisShape->Transparency() * 100.0 ) + 0.5); + int transp = int( aisShape->Transparency() * 100.0 + 0.5); mySlider->setValue(transp); ValueHasChanged(); return; -- 2.39.2