]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0004010: External 20836 News syntax for script ggs
authorouv <oleg.uvarov@opencascade.com>
Tue, 15 Nov 2016 12:44:12 +0000 (15:44 +0300)
committerouv <oleg.uvarov@opencascade.com>
Tue, 15 Nov 2016 12:44:12 +0000 (15:44 +0300)
Point 6: XAXIS_COEF, YAXIS_COEF, ZAXIS_COEF, XAXIS_MAX, YAXIS_MAX, ZAXIS_MAX, XAXIS_MIN, YAXIS_MIN, ZAXIS_MIN.

src/Plot3d/Plot3d_ViewWindow.cxx
src/Plot3d/Plot3d_ViewWindow.h

index c87bb359942ee6f68efa7e4be35c1b6f217312b9..20a91da707d60f4be9879df55244d111ed7249c9 100644 (file)
@@ -851,6 +851,17 @@ void Plot3d_ViewWindow::UpdateScalarBar( const bool theIsRepaint )
     Repaint();
 }
 
+/*!
+  Set fit data
+*/
+void Plot3d_ViewWindow::SetFitData( const bool theIsEnabled,
+                                    const double theBounds[6] )
+{
+  myIsFitDataInitialized = myIsFitDataEnabled = theIsEnabled;
+  for( int i = 0; i < 6; i++ )
+    myFitDataBounds[i] = theBounds[i];
+}
+
 /*!
   Apply fit data bounds to all displayed actors
 */
index 48e49e1c41c18157acef1f249a7e4dcdbaf79e62..c9e08c481059b3248ce443e36470e4a14f5bc9cb 100644 (file)
@@ -60,6 +60,8 @@ public:
   vtkSmartPointer<vtkScalarBarActor> GetScalarBarActor() const;
   void UpdateScalarBar( const bool theIsRepaint = true );
 
+  void SetFitData( const bool theIsEnabled,
+                   const double theBounds[6] );
   void UpdateFitData( const bool theIsRepaint = true );
 
   void NormalizeSurfaces( const bool theIsRepaint = true );