]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Change color for construction/body/group.
authornds <natalia.donis@opencascade.com>
Thu, 12 Mar 2015 07:03:36 +0000 (10:03 +0300)
committernds <natalia.donis@opencascade.com>
Thu, 12 Mar 2015 07:03:36 +0000 (10:03 +0300)
Using one sketch entity color for points and lines in order to have the same color for circle. This presentation has both a point and a line.

src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.cpp
src/SketchPlugin/SketchPlugin_ConstraintRigid.cpp
src/SketchPlugin/SketchPlugin_Plugin.cpp

index 770eac2efe531b974aab0e1dacfa437141db53d1..ca791d55f5e20c04c643bdcb5589dc71a08a7fd4 100644 (file)
@@ -79,7 +79,7 @@ AISObjectPtr SketchPlugin_ConstraintPerpendicular::getAISObject(AISObjectPtr the
   anAIS->createPerpendicular(aLine1, aLine2, aPlane);
 
   // Set color from preferences
-  std::vector<int> aRGB = Config_PropManager::color("Visualization", "sketch_parallel_color",
+  std::vector<int> aRGB = Config_PropManager::color("Visualization", "sketch_constraint_color",
                                                     SKETCH_CONSTRAINT_COLOR);
   anAIS->setColor(aRGB[0], aRGB[1], aRGB[2]);
   return anAIS;
index cd1aa6e73af6b86ad6483ff6cd319f96a2f0493b..51f4b3a01eb49249bd9e9745f3975365977c48e2 100644 (file)
@@ -71,7 +71,7 @@ AISObjectPtr SketchPlugin_ConstraintRigid::getAISObject(AISObjectPtr thePrevious
   anAIS->createFixed(aShape, aPlane);
 
   // Set color from preferences
-  std::vector<int> aRGB = Config_PropManager::color("Visualization", "sketch_parallel_color",
+  std::vector<int> aRGB = Config_PropManager::color("Visualization", "sketch_constraint_color",
                                                     SKETCH_CONSTRAINT_COLOR);
 
   anAIS->setColor(aRGB[0], aRGB[1], aRGB[2]);
index 88f062b69fb069f6c5aa1d797bf413070123b8e1..51efb17215a0bd15bdaea25619cddf3b4712f2bd 100644 (file)
@@ -57,20 +57,18 @@ SketchPlugin_Plugin::SketchPlugin_Plugin()
   // register this plugin
   ModelAPI_Session::get()->registerPlugin(this);
 
-  Config_PropManager::registerProp("Visualization", "sketch_edge_color", "Sketch edge color",
-                                   Config_Prop::Color, SKETCH_EDGE_COLOR);
+  Config_PropManager::registerProp("Visualization", "sketch_entity_color", "Sketch enity color",
+                                   Config_Prop::Color, SKETCH_ENTITY_COLOR);
 
-  Config_PropManager::registerProp("Visualization", "sketch_point_color", "Sketch point color",
-                                   Config_Prop::Color, SKETCH_POINT_COLOR);
-
-  Config_PropManager::registerProp("Visualization", "sketch_external_color", "Sketch external edge color",
-                                   Config_Prop::Color, SKETCH_EXTERNAL_EDGE_COLOR);
+  Config_PropManager::registerProp("Visualization", "sketch_external_color", "Sketch external entity color",
+                                   Config_Prop::Color, SKETCH_EXTERNAL_COLOR);
 
   Config_PropManager::registerProp("Visualization", "sketch_construction_color", "Sketch construction color",
                                    Config_Prop::Color, SKETCH_CONSTRUCTION_COLOR);
 
-  Config_PropManager::registerProp("Visualization", "sketch_parallel_color", "Sketch constraint color",
+  Config_PropManager::registerProp("Visualization", "sketch_constraint_color", "Sketch constraint color",
                                    Config_Prop::Color, SKETCH_CONSTRAINT_COLOR);
+
   Config_PropManager::registerProp("Visualization", "sketch_dimension_color", "Sketch dimension color",
                                    Config_Prop::Color, SKETCH_DIMENSION_COLOR);