#include "XGUI_Displayer.h"
#include "SketcherPrs_SymbolPrs.h"
+#include "SketchPlugin_SketchEntity.h"
#include "Events_Loop.h"
void PartSet_OverconstraintListener::getConflictingColor(std::vector<int>& theColor)
{
- Quantity_Color aColor = Quantity_Color(Quantity_NameOfColor::Quantity_NOC_RED);
+ Quantity_Color aColor = ModuleBase_Tools::color("Visualization", "sketch_overconstraint_color",
+ SKETCH_OVERCONSTRAINT_COLOR);
theColor.push_back(aColor.Red()*255.);
theColor.push_back(aColor.Green()*255.);
Config_PropManager::registerProp("Visualization", "sketch_dimension_color", "Sketch dimension color",
Config_Prop::Color, SKETCH_DIMENSION_COLOR);
+ Config_PropManager::registerProp("Visualization", "sketch_overconstraint_color",
+ "Sketch overconstraint color",
+ Config_Prop::Color, SKETCH_OVERCONSTRAINT_COLOR);
+
// register sketcher properties
#ifdef SET_PLANES_COLOR_IN_PREFERENCES
Config_PropManager::registerProp("Visualization", "yz_plane_color", "YZ plane color",
#define SKETCH_ENTITY_COLOR "225,0,0"
#define SKETCH_EXTERNAL_COLOR "170,0,225"
#define SKETCH_AUXILIARY_COLOR "0,85,0"
+#define SKETCH_OVERCONSTRAINT_COLOR "255,0,0"
/**\class SketchPlugin_SketchEntity
* \ingroup Plugins