#include "VisuGUI.h"
#include "VisuGUI_Tools.h"
-#include "VISU_ScalarMap_i.hh"
+#include "VISU_ColoredPrs3d_i.hh"
#include "VISU_Actor.h"
#include "QtxDockWidget.h"
connect( myViewWindow, SIGNAL( destroyed( QObject * ) ), this, SLOT( onSelectionChanged() ) );
}
- VISU::ScalarMap_i* aScalarMap = dynamic_cast< VISU::ScalarMap_i* >( aPrs3d );
- anIsValidSelection &= ( aScalarMap && aScalarMap->IsTimeStampFixed() );
+ VISU::ColoredPrs3d_i* aColoredPrs3d = dynamic_cast< VISU::ColoredPrs3d_i* >( aPrs3d );
+ anIsValidSelection &= ( aColoredPrs3d && aColoredPrs3d->IsTimeStampFixed() );
- if ( myScalarMap ) {
- myScalarMap->SetMapScale( 1.0 );
- myScalarMap->UpdateActors();
+ if ( myColoredPrs3d ) {
+ myColoredPrs3d->SetMapScale( 1.0 );
+ myColoredPrs3d->UpdateActors();
}
- myScalarMap = aScalarMap;
+ myColoredPrs3d = aColoredPrs3d;
anIsValidSelection &= ( anActor && anActor->GetVisibility() );
//----------------------------------------------------------------------------
void VisuGUI_Sweep::onValueChanged( int value )
{
- bool anIsValidSelection = ( myScalarMap && myActor.GetPointer() );
+ bool anIsValidSelection = ( myColoredPrs3d && myActor.GetPointer() );
if ( !anIsValidSelection )
return;
}
try {
- myScalarMap->SetMapScale( aValue );
- myScalarMap->UpdateActor( myActor );
+ myColoredPrs3d->SetMapScale( aValue );
+ myColoredPrs3d->UpdateActor( myActor );
myViewWindow->Repaint();
} catch (std::exception& exc) {
INFOS( "Follow exception was occured :\n" << exc.what() );
TSuperClass::CreatePipeLine(myScalarMapPL);
}
-//----------------------------------------------------------------------------
-void
-VISU::ScalarMap_i
-::SetMapScale(double theMapScale)
-{
- GetSpecificPL()->SetMapScale(theMapScale);
-}
-
//----------------------------------------------------------------------------
VISU_Actor*
VISU::ScalarMap_i
VISU_ScalarBarActor *aScalarBar = anActor->GetScalarBar();
aScalarBar->SetLookupTable( aLookupTable );
- aScalarBar->SetDistribution( GetSpecificPL()->GetDistribution() );
- aScalarBar->SetDistributionVisibility( GetIsDistributionVisible() );
+ //aScalarBar->SetDistribution( GetSpecificPL()->GetDistribution() );
+ //aScalarBar->SetDistributionVisibility( GetIsDistributionVisible() );
aScalarBar->SetTitle(GetScalarBarTitle().c_str());
aScalarBar->SetOrientation(GetBarOrientation());