Path: Enabling highlight/selection colors in paths
This commit is contained in:
@@ -22,6 +22,7 @@ link_directories(${OCC_LIBRARY_DIR})
|
||||
|
||||
set(PathGui_LIBS
|
||||
Path
|
||||
PartGui
|
||||
FreeCADGui
|
||||
)
|
||||
|
||||
|
||||
@@ -29,10 +29,12 @@
|
||||
#ifdef FC_OS_WIN32
|
||||
# define PartExport __declspec(dllimport)
|
||||
# define PathExport __declspec(dllimport)
|
||||
# define PartGuiExport __declspec(dllexport)
|
||||
# define PathGuiExport __declspec(dllexport)
|
||||
#else // for Linux
|
||||
# define PartExport
|
||||
# define PathExport
|
||||
# define PartGuiExport
|
||||
# define PathGuiExport
|
||||
#endif
|
||||
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
using namespace Gui;
|
||||
using namespace PathGui;
|
||||
using namespace Path;
|
||||
using namespace PartGui;
|
||||
|
||||
PROPERTY_SOURCE(PathGui::ViewProviderPath, Gui::ViewProviderGeometryObject)
|
||||
|
||||
@@ -104,7 +105,7 @@ ViewProviderPath::ViewProviderPath()
|
||||
pcDrawStyle->style = SoDrawStyle::LINES;
|
||||
pcDrawStyle->lineWidth = LineWidth.getValue();
|
||||
|
||||
pcLines = new SoIndexedLineSet;
|
||||
pcLines = new PartGui::SoBrepEdgeSet();
|
||||
pcLines->ref();
|
||||
|
||||
pcLineColor = new SoMaterial;
|
||||
|
||||
@@ -27,10 +27,10 @@
|
||||
#include <Gui/ViewProviderGeometryObject.h>
|
||||
#include <Gui/SoFCSelection.h>
|
||||
#include <Gui/ViewProviderPythonFeature.h>
|
||||
#include <Mod/Part/Gui/SoBrepEdgeSet.h>
|
||||
|
||||
class SoCoordinate3;
|
||||
class SoDrawStyle;
|
||||
class SoIndexedLineSet;
|
||||
class SoMaterial;
|
||||
class SoBaseColor;
|
||||
class SoMaterialBinding;
|
||||
@@ -73,7 +73,7 @@ protected:
|
||||
SoCoordinate3 * pcLineCoords;
|
||||
SoCoordinate3 * pcMarkerCoords;
|
||||
SoDrawStyle * pcDrawStyle;
|
||||
SoIndexedLineSet * pcLines;
|
||||
PartGui::SoBrepEdgeSet * pcLines;
|
||||
SoMaterial * pcLineColor;
|
||||
SoBaseColor * pcMarkerColor;
|
||||
SoMaterialBinding * pcMatBind;
|
||||
|
||||
Reference in New Issue
Block a user