myIsBoldTitle = f.bold();
myIsItalicTitle = f.italic();
- myIsShadowTitle = f.underline();
+ myIsShadowTitle = f.overline();
}
QColor aTextColor = aResourceMgr->colorValue( "VISU", "scalar_bar_title_color", QColor( 255, 255, 255 ) );
myIsBoldLabel = f.bold();
myIsItalicLabel = f.italic();
- myIsShadowLabel = f.underline();
+ myIsShadowLabel = f.overline();
}
QColor aLabelColor = aResourceMgr->colorValue( "VISU", "scalar_bar_label_color", QColor( 255, 255, 255 ) );
myLabelColor[0] = aLabelColor.red() / 255.;
myLabelColor[1] = aLabelColor.green() / 255.;
myLabelColor[2] = aLabelColor.blue() / 255.;
+
+ // Parameters of labels displaed field values
+ myValLblFontType = VTK_ARIAL;
+ myIsBoldValLbl = true;
+ myIsItalicValLbl = myIsShadowValLbl = false;
+ myValLblFontSize = 12;
+ if( aResourceMgr->hasValue( "VISU", "values_labeling_font" ) )
+ {
+ // family
+ QFont f = aResourceMgr->fontValue( "VISU", "values_labeling_font" );
+ if ( f.family() == "Arial" )
+ myValLblFontType = VTK_ARIAL;
+ else if ( f.family() == "Courier" )
+ myValLblFontType = VTK_COURIER;
+ else if ( f.family() == "Times" )
+ myValLblFontType = VTK_TIMES;
+
+ // size
+ if ( f.pointSize() > -1 )
+ myValLblFontSize = f.pointSize();
+
+ // color
+ QColor aColor = aResourceMgr->colorValue(
+ "VISU", "values_labeling_color", QColor( 255, 255, 255 ) );
+ myValLblFontColor[ 0 ] = aColor.red() / 255.;
+ myValLblFontColor[ 1 ] = aColor.green() / 255.;
+ myValLblFontColor[ 2 ] = aColor.blue()/ 255.;
+
+ // bold, italic, shadow
+ myIsBoldValLbl = f.bold();
+ myIsItalicValLbl = f.italic();
+ myIsShadowValLbl = f.overline();
+ }
+
return this;
}
}
}
}
+
+ // Parameters of labels displayed field values
+
+ myValLblFontType = VISU::Storable::FindValue( theMap, "myValLblFontType", "0" ).toInt();
+ myIsBoldValLbl = VISU::Storable::FindValue( theMap, "myIsBoldValLbl", "1" ).toInt();
+ myIsItalicValLbl = VISU::Storable::FindValue( theMap, "myIsItalicValLbl", "0" ).toInt();
+ myIsShadowValLbl = VISU::Storable::FindValue( theMap, "myIsShadowValLbl", "0" ).toInt();
+ myValLblFontSize = VISU::Storable::FindValue( theMap, "myValLblFontSize", "12" ).toDouble();
+ myValLblFontColor[ 0 ] = VISU::Storable::FindValue( theMap, "myValLblFontColor[0]", "1" ).toFloat();
+ myValLblFontColor[ 1 ] = VISU::Storable::FindValue( theMap, "myValLblFontColor[1]", "1" ).toFloat();
+ myValLblFontColor[ 2 ] = VISU::Storable::FindValue( theMap, "myValLblFontColor[2]", "1" ).toFloat();
+
return this;
}
Storable::DataToStream( theStr, "myLabelColor[0]", myLabelColor[0] );
Storable::DataToStream( theStr, "myLabelColor[1]", myLabelColor[1] );
Storable::DataToStream( theStr, "myLabelColor[2]", myLabelColor[2] );
+
+ // Parameters of labels displayed field values
+
+ Storable::DataToStream( theStr, "myValLblFontType", myValLblFontType );
+ Storable::DataToStream( theStr, "myIsBoldValLbl", myIsBoldValLbl );
+ Storable::DataToStream( theStr, "myIsItalicValLbl", myIsItalicValLbl );
+ Storable::DataToStream( theStr, "myIsShadowValLbl", myIsShadowValLbl );
+ Storable::DataToStream( theStr, "myValLblFontSize", myValLblFontSize );
+ Storable::DataToStream( theStr, "myValLblFontColor[0]", myValLblFontColor[ 0 ] );
+ Storable::DataToStream( theStr, "myValLblFontColor[1]", myValLblFontColor[ 1 ] );
+ Storable::DataToStream( theStr, "myValLblFontColor[2]", myValLblFontColor[ 2 ] );
+
std::ostringstream aGeomNameList;
std::string aMeshName = GetCMeshName();
}
//----------------------------------------------------------------------------
+
+
+int
+VISU::ColoredPrs3d_i
+::GetValLblFontType() const
+{
+ return myValLblFontType;
+}
+
+//----------------------------------------------------------------------------
+
+void
+VISU::ColoredPrs3d_i
+::SetValLblFontType( const int theType )
+{
+ if ( myValLblFontType == theType )
+ return;
+
+ VISU::TSetModified aModified( this );
+
+ myValLblFontType = theType;
+ myParamsTime.Modified();
+}
+
+//----------------------------------------------------------------------------
+
+double
+VISU::ColoredPrs3d_i
+::GetValLblFontSize() const
+{
+ return myValLblFontSize;
+}
+
+//----------------------------------------------------------------------------
+
+void
+VISU::ColoredPrs3d_i
+::SetValLblFontSize( const double theSize )
+{
+ if ( VISU::CheckIsSameValue( myValLblFontSize, theSize ) )
+ return;
+
+ VISU::TSetModified aModified( this );
+
+ myValLblFontSize = theSize;
+ myParamsTime.Modified();
+}
+
+//----------------------------------------------------------------------------
+
+void
+VISU::ColoredPrs3d_i
+::GetValLblFontColor( vtkFloatingPointType& theR,
+ vtkFloatingPointType& theG,
+ vtkFloatingPointType& theB ) const
+{
+ theR = myValLblFontColor[ 0 ];
+ theG = myValLblFontColor[ 1 ];
+ theB = myValLblFontColor[ 2 ];
+}
+
+//----------------------------------------------------------------------------
+
+void
+VISU::ColoredPrs3d_i
+::SetValLblFontColor( const vtkFloatingPointType theR,
+ const vtkFloatingPointType theG,
+ const vtkFloatingPointType theB )
+{
+ if ( VISU::CheckIsSameValue( myValLblFontColor[ 0 ], theR ) &&
+ VISU::CheckIsSameValue( myValLblFontColor[ 1 ], theG ) &&
+ VISU::CheckIsSameValue (myValLblFontColor[ 2 ], theB ) )
+ return;
+
+ VISU::TSetModified aModified(this);
+
+ myValLblFontColor[ 0 ] = theR;
+ myValLblFontColor[ 1 ] = theG;
+ myValLblFontColor[ 2 ] = theB;
+ myParamsTime.Modified();
+}
+
+//----------------------------------------------------------------------------
+
+bool
+VISU::ColoredPrs3d_i
+::IsBoldValLbl() const
+{
+ return myIsBoldValLbl;
+}
+
+//----------------------------------------------------------------------------
+
+void
+VISU::ColoredPrs3d_i
+::SetBoldValLbl( const bool theVal )
+{
+ if ( myIsBoldValLbl == theVal )
+ return;
+
+ VISU::TSetModified aModified( this );
+
+ myIsBoldValLbl = theVal;
+ myParamsTime.Modified();
+}
+
+//----------------------------------------------------------------------------
+
+bool
+VISU::ColoredPrs3d_i
+::IsItalicValLbl() const
+{
+ return myIsItalicValLbl;
+}
+
+//----------------------------------------------------------------------------
+
+void
+VISU::ColoredPrs3d_i
+::SetItalicValLbl( const bool theVal )
+{
+ if ( myIsItalicValLbl == theVal )
+ return;
+
+ VISU::TSetModified aModified( this );
+
+ myIsItalicValLbl = theVal;
+ myParamsTime.Modified();
+}
+
+//----------------------------------------------------------------------------
+
+bool
+VISU::ColoredPrs3d_i
+::IsShadowValLbl() const
+{
+ return myIsShadowValLbl;
+}
+
+//----------------------------------------------------------------------------
+
+void
+VISU::ColoredPrs3d_i
+::SetShadowValLbl( const bool theVal )
+{
+ if ( myIsShadowValLbl == theVal )
+ return;
+
+ VISU::TSetModified aModified( this );
+
+ myIsShadowValLbl = theVal;
+ myParamsTime.Modified();
+}
+
+//----------------------------------------------------------------------------
+