#include <Sketcher_Profile.hxx>
#include <SalomeApp_Study.h>
+#include <SalomeApp_Tools.h>
#include <gp_Pln.hxx>
const int displayMode,
const int color )
{
- // Set color for preview shape
- getDisplayer()->SetColor( Quantity_NOC_RED );
-
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+
+ QColor aColor = resMgr->colorValue("Geometry","line_color",QColor(255,0,0));
+ Quantity_NameOfColor line_color = SalomeApp_Tools::color( aColor ).Name();
+
// set width of displayed shape
- getDisplayer()->SetWidth( (lineWidth == -1)?myLineWidth:lineWidth );
+ int lw = lineWidth;
+ if(lw == -1) {
+ lw = resMgr->integerValue("Geometry", "preview_edge_width", -1);
+ }
+ getDisplayer()->SetWidth( lw );
// Disable activation of selection
getDisplayer()->SetToActivate( activate );
return;
// Build prs
+ getDisplayer()->SetColor( line_color );
SALOME_Prs* aPrs = getDisplayer()->BuildPrs( anApplyedWire );
if ( aPrs != 0 && !aPrs->IsNull() )
GEOMBase_Helper::displayPreview( aPrs, append, update );
if ( aPrs != 0 && !aPrs->IsNull() )
GEOMBase_Helper::displayPreview( aPrs, append, update );
+ getDisplayer()->SetColor( line_color );
+
getDisplayer()->UnsetName();
// Enable activation of displayed objects