Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Roll back the modification, not yet approved
[modules/shaper.git]
/
src
/
SketchPlugin
/
SketchPlugin_SketchEntity.h
diff --git
a/src/SketchPlugin/SketchPlugin_SketchEntity.h
b/src/SketchPlugin/SketchPlugin_SketchEntity.h
index 489d233455a26c77aa803488d1d79d933faff6bb..cffdee549483e335a54c19f171fbaa17ef9a1717 100644
(file)
--- a/
src/SketchPlugin/SketchPlugin_SketchEntity.h
+++ b/
src/SketchPlugin/SketchPlugin_SketchEntity.h
@@
-20,9
+20,9
@@
#include <Config_PropManager.h>
#include <Config_PropManager.h>
-#define SKETCH_ENTITY_COLOR "
#ff000
0"
-#define SKETCH_EXTERNAL_COLOR "
#00ff00
"
-#define SKETCH_
CONSTRUCTION_COLOR "#00000
0"
+#define SKETCH_ENTITY_COLOR "
225,0,
0"
+#define SKETCH_EXTERNAL_COLOR "
170,0,225
"
+#define SKETCH_
AUXILIARY_COLOR "0,85,
0"
/**\class SketchPlugin_SketchEntity
* \ingroup Plugins
/**\class SketchPlugin_SketchEntity
* \ingroup Plugins
@@
-33,10
+33,10
@@
class SketchPlugin_SketchEntity : public SketchPlugin_Feature, public GeomAPI_IC
{
public:
/// Reference to the construction type of the feature
{
public:
/// Reference to the construction type of the feature
- inline static const std::string&
CONSTRUCTION
_ID()
+ inline static const std::string&
AUXILIARY
_ID()
{
{
- static const std::string MY_
CONSTRUCTION_ID("Construction
");
- return MY_
CONSTRUCTION
_ID;
+ static const std::string MY_
AUXILIARY_ID("Auxiliary
");
+ return MY_
AUXILIARY
_ID;
}
/// Reference to the external edge or vertex as a AttributeSelection
}
/// Reference to the external edge or vertex as a AttributeSelection
@@
-70,12
+70,12
@@
class SketchPlugin_SketchEntity : public SketchPlugin_Feature, public GeomAPI_IC
// set color from preferences
std::vector<int> aColor;
// set color from preferences
std::vector<int> aColor;
- std::shared_ptr<ModelAPI_AttributeBoolean> a
Construction
Attr =
- data()->boolean(SketchPlugin_SketchEntity::
CONSTRUCTION
_ID());
- bool isConstruction = a
ConstructionAttr.get() != NULL && aConstruction
Attr->value();
+ std::shared_ptr<ModelAPI_AttributeBoolean> a
nAuxiliary
Attr =
+ data()->boolean(SketchPlugin_SketchEntity::
AUXILIARY
_ID());
+ bool isConstruction = a
nAuxiliaryAttr.get() != NULL && anAuxiliary
Attr->value();
if (isConstruction) {
if (isConstruction) {
- aColor = Config_PropManager::color("Visualization", "sketch_
construction
_color",
- SKETCH_
CONSTRUCTION
_COLOR);
+ aColor = Config_PropManager::color("Visualization", "sketch_
auxiliary
_color",
+ SKETCH_
AUXILIARY
_COLOR);
}
else if (isExternal()) {
aColor = Config_PropManager::color("Visualization", "sketch_external_color",
}
else if (isExternal()) {
aColor = Config_PropManager::color("Visualization", "sketch_external_color",
@@
-98,9
+98,9
@@
class SketchPlugin_SketchEntity : public SketchPlugin_Feature, public GeomAPI_IC
isCustomized = thePrs->setLineStyle(0) || isCustomized;
}
}
isCustomized = thePrs->setLineStyle(0) || isCustomized;
}
}
- else if (aShapeType == 7) { // otherwise this is a vertex
- // thePrs->setPointMarker(6, 2.);
- }
+
//
else if (aShapeType == 7) { // otherwise this is a vertex
+ // thePrs->setPointMarker(1, 1.); // Set point as a '+' symbol
+
//
}
return isCustomized;
}
return isCustomized;
}