myIsColored(true),
myColor(Qt::blue),
myIsActiveLocalScalarBar(true),
- myIsDispGlobalScalarBar(true)
+ myIsDispGlobalScalarBar(true),
+ mySpacing(0.01)
{
if(MYDEBUG) MESSAGE("GaussPoints_i::GaussPoints_i - this = "<<this);
}
SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr();
+ int anActiveLocal = aResourceMgr->integerValue( "VISU", "scalar_bar_active_local", GetIsActiveLocalScalarBar() );
+ SetIsActiveLocalScalarBar( anActiveLocal == 0 );
+
+ bool aDisplayGlobal = aResourceMgr->booleanValue( "VISU", "scalar_bar_diplay_global", GetIsDispGlobalScalarBar() );
+ SetIsDispGlobalScalarBar( aDisplayGlobal );
+
+ int aBicolor = aResourceMgr->integerValue( "VISU", "scalar_bar_bicolor", GetGaussPointsPL()->GetBicolor() );
+ GetGaussPointsPL()->SetBicolor( aBicolor == 0 );
+
+ float aSpacing = aResourceMgr->doubleValue( "VISU", "scalar_bar_spacing", GetSpacing() );
+ SetSpacing( aSpacing );
+
float aClamp = aResourceMgr->doubleValue( "VISU", "point_sprite_clamp", GetClamp() );
SetClamp( aClamp );
- float aConstSize = aResourceMgr->doubleValue( "VISU", "point_sprite_size", GetConstSize() );
- SetConstSize( aConstSize );
-
float aMinSize = aResourceMgr->doubleValue( "VISU", "point_sprite_min_size", GetMinSize() );
SetMinSize( aMinSize );
float aMaxSize = aResourceMgr->doubleValue( "VISU", "point_sprite_max_size", GetMaxSize() );
SetMaxSize( aMaxSize );
+ float aConstSize = aResourceMgr->doubleValue( "VISU", "point_sprite_size", GetConstSize() );
+ SetConstSize( aConstSize );
+
float aMagnification = aResourceMgr->doubleValue( "VISU", "point_sprite_magnification", GetMagnification() );
SetMagnification( aMagnification );
return myGaussPointsPL;
}
+void
+VISU::GaussPoints_i
+::SetIsColored( bool theIsColored )
+{
+ myIsColored = theIsColored;
+ myGaussPointsPL->SetIsColored( theIsColored );
+}
+
bool
VISU::GaussPoints_i
::SetMainTexture( const QString& theMainTexture )
aScalarBarCtrl->SetHeight(myHeight);
aScalarBarCtrl->SetPosition(myPosition);
+ aScalarBarCtrl->SetSpacing(mySpacing);
+
// Bicolor
bool anIsBicolor = GetGaussPointsPL()->GetBicolor();
aScalarBarCtrl->SetBicolor(anIsBicolor);
{
return myIsDispGlobalScalarBar;
}
+
+void
+VISU::GaussPoints_i
+::SetSpacing(const float theSpacing)
+{
+ mySpacing = theSpacing;
+}
+
+float
+VISU::GaussPoints_i
+::GetSpacing() const
+{
+ return mySpacing;
+}