mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 18:18:35 +05:00
Issue 0021046: EDF 1610 GUI: To be able to change the width of the lines: small changes.
This commit is contained in:
parent
243fdea92a
commit
b37488eb20
@ -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));
|
||||||
|
@ -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));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user