X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_IdPreview.cxx;fp=src%2FSMESHGUI%2FSMESHGUI_IdPreview.cxx;h=fd7df6000ff346b53c00d9a243708931864a9577;hp=4b591481a09f6e783e99f2ac4323b8ba917f197d;hb=3dd9e6ddb38af2ffe09437e323d83ca3aea1b653;hpb=2a0f82c609854f56378cf5a26d08841cc232d92b diff --git a/src/SMESHGUI/SMESHGUI_IdPreview.cxx b/src/SMESHGUI/SMESHGUI_IdPreview.cxx index 4b591481a..fd7df6000 100644 --- a/src/SMESHGUI/SMESHGUI_IdPreview.cxx +++ b/src/SMESHGUI/SMESHGUI_IdPreview.cxx @@ -22,8 +22,11 @@ #include "SMESHGUI_IdPreview.h" -#include #include + +#include +#include +#include #include #include @@ -71,21 +74,27 @@ SMESHGUI_IdPreview::SMESHGUI_IdPreview(SVTK_ViewWindow* theViewWindow): myPtsSelectVisiblePoints->SetInputConnection(myPtsMaskPoints->GetOutputPort()); myPtsSelectVisiblePoints->SelectInvisibleOff(); myPtsSelectVisiblePoints->SetTolerance(0.1); - + myPtsLabeledDataMapper = vtkLabeledDataMapper::New(); myPtsLabeledDataMapper->SetInputConnection(myPtsSelectVisiblePoints->GetOutputPort()); myPtsLabeledDataMapper->SetLabelModeToLabelScalars(); - + vtkTextProperty* aPtsTextProp = vtkTextProperty::New(); aPtsTextProp->SetFontFamilyToTimes(); - static int aPointsFontSize = 12; + int aPointsFontSize = 12; + if ( SUIT_ResourceMgr* mgr = SUIT_Session::session()->resourceMgr() ) + if ( mgr->hasValue( "SMESH", "numbering_node_font" ) ) + { + QFont f = mgr->fontValue( "SMESH", "numbering_node_font" ); + aPointsFontSize = f.pointSize(); + } aPtsTextProp->SetFontSize(aPointsFontSize); aPtsTextProp->SetBold(1); aPtsTextProp->SetItalic(0); aPtsTextProp->SetShadow(0); myPtsLabeledDataMapper->SetLabelTextProperty(aPtsTextProp); aPtsTextProp->Delete(); - + myIsPointsLabeled = false; myPointLabels = vtkActor2D::New();