Salome HOME
Merge from V6_3_BR 15/07/2011 V6_main_20110718 V6_main_20110719 before_mergefrom_V6_3_BR_20Jul11 mergefrom_V6_3_BR_15Jul11
authorvsr <vsr@opencascade.com>
Fri, 15 Jul 2011 11:20:16 +0000 (11:20 +0000)
committervsr <vsr@opencascade.com>
Fri, 15 Jul 2011 11:20:16 +0000 (11:20 +0000)
configure.ac
doc/salome/gui/VISU/doxyfile_idl.in
doc/salome/gui/VISU/static/header_py.html.in [new file with mode: 0644]
src/VISUGUI/VisuGUI_SelectionPrefDlg.cxx
src/VISUGUI/VisuGUI_SizeBox.cxx
src/VISU_I/VISU_CorbaMedConvertor.cxx

index e1fb0ab8c094330754574c1daba343a3cd717dee..8808187e36db84a35afcbd90ba9bc385206cd088 100644 (file)
@@ -23,7 +23,7 @@
 # Modified by : Marc Tajchman (CEA)
 # Modified by : Mikhail Ponikarov (OCN)
 #
-AC_INIT([Salome2 Project VISU module], [6.3.0], [webmaster.salome@opencascade.com], [SalomeVISU])
+AC_INIT([Salome2 Project VISU module], [6.3.1], [webmaster.salome@opencascade.com], [SalomeVISU])
 AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
 AC_CANONICAL_HOST
 AC_CANONICAL_TARGET
@@ -395,6 +395,7 @@ AC_OUTPUT([ \
        doc/salome/gui/VISU/doxyfile \
        doc/salome/gui/VISU/doxyfile_idl \
        doc/salome/gui/VISU/static/header.html \
+       doc/salome/gui/VISU/static/header_py.html \
        doc/salome/tui/Makefile \
        doc/salome/tui/doxyfile \
        doc/salome/tui/static/header.html \
index 9f7a5375aa9de944865a8809f8ee0336563599eb..4f8b50bae4c88d5c81a46bf0793a2b705fcee3b5 100755 (executable)
@@ -109,7 +109,7 @@ RECURSIVE         = NO
 #---------------------------------------------------------------------------
 GENERATE_HTML     = YES
 HTML_OUTPUT       = visugen_doc
-HTML_HEADER       = @builddir@/static/header.html
+HTML_HEADER       = @builddir@/static/header_py.html
 HTML_FOOTER       = @srcdir@/static/footer.html
 HTML_STYLESHEET   = @srcdir@/static/doxygen.css
 TOC_EXPAND        = YES
@@ -157,4 +157,4 @@ DOT_CLEANUP            = YES
 #External reference options
 #---------------------------------------------------------------------------
 GENERATE_TAGFILE       = visugen_doc.tag
-SEARCHENGINE           = YES
\ No newline at end of file
+SEARCHENGINE           = YES
diff --git a/doc/salome/gui/VISU/static/header_py.html.in b/doc/salome/gui/VISU/static/header_py.html.in
new file mode 100644 (file)
index 0000000..36e6a0c
--- /dev/null
@@ -0,0 +1,23 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<title>$title</title>
+<link href="$relpath$tabs.css" rel="stylesheet" type="text/css"/>
+<link href="$relpath$search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="$relpath$search/search.js"></script>
+<link href="$relpath$navtree.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="$relpath$jquery.js"></script>
+<script type="text/javascript" src="$relpath$navtree.js"></script>
+<script type="text/javascript" src="$relpath$resize.js"></script>
+<script type="text/javascript">
+$(document).ready(initResizable);
+</script>
+<link href="$relpath$doxygen.css" rel="stylesheet" type="text/css"/>
+</head>
+<body onload='searchBox.OnSelectItem(0);'>
+<div id="top"><!-- do not remove this div! -->
+<div id="titlearea"><div align="right"><div class="version">Version: @VERSION@</div></div></div>
+<div align="bottom-left"><a href=../index.html>Home</a></div>
+
+</div>
index 741fa36052897c40239e51f7c96201e49ce6cef4..ff01bda3fe8501f9fcc094c0ce5769f0c9738086 100644 (file)
@@ -230,7 +230,8 @@ void VisuGUI_SelectionPrefDlg::update()
                                             ( int )( aColor[2] * 255.0 ) ) );
 
   myInfoWindowGroup->setChecked( aPickingSettings->GetInfoWindowEnabled() );
-  vtkFloatingPointType transparency = aPickingSettings->GetInfoWindowTransparency() * 100.0;
+  // VSR 28.06.2011 : IPAL 22513: add 0.5 to eliminate any prevision problems
+  vtkFloatingPointType transparency = aPickingSettings->GetInfoWindowTransparency() * 100.0 + 0.5;
   myTransparencySpinBox->setValue( (int) transparency );
   myPositionComboBox->setCurrentIndex( aPickingSettings->GetInfoWindowPosition() );
   myCameraGroup->setChecked( aPickingSettings->GetCameraMovementEnabled() );
index eb01fe980828994488e9464cab348168cf438c55..7343a5c7ba7813f759655b6001b4416939053e9c 100644 (file)
@@ -276,8 +276,7 @@ float VisuGUI_SizeBox::getOutsideSize() const
 
 void VisuGUI_SizeBox::setOutsideSize( float theOutsideSize )
 {
-  theOutsideSize*=100.;
-  myOutsideSizeSpinBox->setValue( ( int ) theOutsideSize );
+  myOutsideSizeSpinBox->setValue( ( int ) ( theOutsideSize * 100. + 0.5 ) );
 }
 
 float VisuGUI_SizeBox::getGeomSize() const
@@ -287,8 +286,7 @@ float VisuGUI_SizeBox::getGeomSize() const
 
 void VisuGUI_SizeBox::setGeomSize( float theGeomSize )
 {
-  theGeomSize*=100.;
-  myGeomSizeSpinBox->setValue( ( int ) theGeomSize );
+  myGeomSizeSpinBox->setValue( ( int ) ( theGeomSize * 100. + 0.5 ) );
 }
 
 float VisuGUI_SizeBox::getMinSize() const
@@ -298,8 +296,7 @@ float VisuGUI_SizeBox::getMinSize() const
 
 void VisuGUI_SizeBox::setMinSize( float theMinSize )
 {
-  theMinSize*=100.;
-  myMinSizeSpinBox->setValue( ( int ) theMinSize );
+  myMinSizeSpinBox->setValue( ( int ) ( theMinSize * 100. + 0.5 ) );
 }
 
 float VisuGUI_SizeBox::getMaxSize() const
@@ -309,8 +306,7 @@ float VisuGUI_SizeBox::getMaxSize() const
 
 void VisuGUI_SizeBox::setMaxSize( float theMaxSize )
 {
-  theMaxSize*=100.;
-  myMaxSizeSpinBox->setValue( (int) theMaxSize );
+  myMaxSizeSpinBox->setValue( (int) ( theMaxSize * 100. + 0.5 ) );
 }
 
 float VisuGUI_SizeBox::getMagnification() const
@@ -320,8 +316,7 @@ float VisuGUI_SizeBox::getMagnification() const
 
 void VisuGUI_SizeBox::setMagnification( float theMagnification )
 {
-  theMagnification*=100.;
-  myMagnificationSpinBox->setValue( (int) theMagnification );
+  myMagnificationSpinBox->setValue( (int) ( theMagnification * 100. + 0.5 ) );
 }
 
 float VisuGUI_SizeBox::getIncrement() const
index 31424078a3bcf35b3ab6747ef53ac38dbba2753d..f888ebb378ae55b2140a785e588216e35ebbe803 100644 (file)
@@ -1431,6 +1431,15 @@ namespace
         long int aSize;
         int* aValuePtr = ReceiverFactory::getValue(aSender, aSize);
         myConnIndex.assign(aValuePtr, aValuePtr + aSize);
+
+        // since the connectivity indices for polygones are stored together with other elements
+        // we should cut the indices by a value of the first one
+        if( aSize > 0 )
+        {
+          int anOffset = myConnIndex.front() - 1;
+          for( int anIndex = 0; anIndex < aSize; anIndex++ )
+            myConnIndex[ anIndex ] -= anOffset;
+        }
       }
     }