Issue 0021046: EDF 1610 GUI: To be able to change the width of the lines: small changes.

This commit is contained in:
rnv 2012-02-14 14:55:37 +00:00
parent 243fdea92a
commit b37488eb20
2 changed files with 12 additions and 2 deletions

View File

@ -54,6 +54,9 @@
#include <gce_MakePln.hxx> #include <gce_MakePln.hxx>
#include <Precision.hxx> #include <Precision.hxx>
#include <AIS.hxx> #include <AIS.hxx>
#include <AIS_Drawer.hxx>
#include <Prs3d_AngleAspect.hxx>
#include <Prs3d_LineAspect.hxx>
// QT Includes // QT Includes
#include <qlineedit.h> #include <qlineedit.h>
@ -379,7 +382,9 @@ SALOME_Prs* MeasureGUI_AngleDlg::buildPrs()
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr(); SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
int w = resMgr->integerValue("Geometry", "measures_line_width", 1); int w = resMgr->integerValue("Geometry", "measures_line_width", 1);
anIO->SetWidth(w); Handle(Prs3d_AngleAspect) asp = new Prs3d_AngleAspect();
asp->LineAspect()->SetWidth(w);
anIO->Attributes()->SetAngleAspect(asp);
SOCC_Prs* aPrs = SOCC_Prs* aPrs =
dynamic_cast<SOCC_Prs*>(((SOCC_Viewer*)(vw->getViewManager()->getViewModel()))->CreatePrs(0)); dynamic_cast<SOCC_Prs*>(((SOCC_Viewer*)(vw->getViewManager()->getViewModel()))->CreatePrs(0));

View File

@ -45,6 +45,9 @@
// OCCT Includes // OCCT Includes
#include <Geom_Plane.hxx> #include <Geom_Plane.hxx>
#include <AIS_LengthDimension.hxx> #include <AIS_LengthDimension.hxx>
#include <AIS_Drawer.hxx>
#include <Prs3d_LengthAspect.hxx>
#include <Prs3d_LineAspect.hxx>
#include <BRepBuilderAPI_MakeEdge.hxx> #include <BRepBuilderAPI_MakeEdge.hxx>
#include <BRepBuilderAPI_MakeVertex.hxx> #include <BRepBuilderAPI_MakeVertex.hxx>
#include <gce_MakePln.hxx> #include <gce_MakePln.hxx>
@ -330,7 +333,9 @@ SALOME_Prs* MeasureGUI_DistanceDlg::buildPrs()
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr(); SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
int w = resMgr->integerValue("Geometry", "measures_line_width", 1); int w = resMgr->integerValue("Geometry", "measures_line_width", 1);
anIO->SetWidth(w); Handle(Prs3d_LengthAspect) asp = new Prs3d_LengthAspect();
asp->LineAspect()->SetWidth(w);
anIO->Attributes()->SetLengthAspect(asp);
SOCC_Prs* aPrs = dynamic_cast<SOCC_Prs*>(((SOCC_Viewer*)(vw->getViewManager()->getViewModel()))->CreatePrs(0)); SOCC_Prs* aPrs = dynamic_cast<SOCC_Prs*>(((SOCC_Viewer*)(vw->getViewManager()->getViewModel()))->CreatePrs(0));