Extended global marker size to be used for other modes

This commit is contained in:
JimStar
2018-07-08 15:03:29 +12:00
committed by Yorik van Havre
parent 502a9d5f05
commit 6a5ad383ab
10 changed files with 102 additions and 27 deletions

View File

@@ -32,6 +32,8 @@
#include "ViewProviderDatumPoint.h"
// #include <Mod/Part/Gui/SoBrepPointSet.h>
#include <Mod/PartDesign/App/DatumPoint.h>
#include <Gui/Inventor/MarkerBitmaps.h>
#include <App/Application.h>
using namespace PartDesignGui;
@@ -65,7 +67,7 @@ void ViewProviderDatumPoint::attach ( App::DocumentObject *obj ) {
SoMarkerSet* marker = new SoMarkerSet();
marker->vertexProperty = vprop;
marker->numPoints = 1;
marker->markerIndex = SoMarkerSet::DIAMOND_FILLED_9_9;
marker->markerIndex = Gui::Inventor::MarkerBitmaps::getMarkerIndex("DIAMOND_FILLED", App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View")->GetInt("MarkerSize", 9));
getShapeRoot ()->addChild(marker);
}