From: ouv Date: Tue, 15 Nov 2016 12:44:12 +0000 (+0300) Subject: 0004010: External 20836 News syntax for script ggs X-Git-Tag: CTH_2_2_b~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e99f965dae0109095379732e322c79e07d160fe8;p=modules%2Fgui.git 0004010: External 20836 News syntax for script ggs Point 6: XAXIS_COEF, YAXIS_COEF, ZAXIS_COEF, XAXIS_MAX, YAXIS_MAX, ZAXIS_MAX, XAXIS_MIN, YAXIS_MIN, ZAXIS_MIN. --- diff --git a/src/Plot3d/Plot3d_ViewWindow.cxx b/src/Plot3d/Plot3d_ViewWindow.cxx index c87bb3599..20a91da70 100644 --- a/src/Plot3d/Plot3d_ViewWindow.cxx +++ b/src/Plot3d/Plot3d_ViewWindow.cxx @@ -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 */ diff --git a/src/Plot3d/Plot3d_ViewWindow.h b/src/Plot3d/Plot3d_ViewWindow.h index 48e49e1c4..c9e08c481 100644 --- a/src/Plot3d/Plot3d_ViewWindow.h +++ b/src/Plot3d/Plot3d_ViewWindow.h @@ -60,6 +60,8 @@ public: vtkSmartPointer 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 );