From e99f965dae0109095379732e322c79e07d160fe8 Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 15 Nov 2016 15:44:12 +0300 Subject: [PATCH] 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. --- src/Plot3d/Plot3d_ViewWindow.cxx | 11 +++++++++++ src/Plot3d/Plot3d_ViewWindow.h | 2 ++ 2 files changed, 13 insertions(+) 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 ); -- 2.39.2