/// label; index in vector corresponds to the label tag
std::vector<TNaming_Builder*> myBuilders;
public:
- /// default color for a result body
- inline static const std::string& DEFAULT_COLOR()
- {
- static const std::string RESULT_BODY_COLOR("150,150,180");
- return RESULT_BODY_COLOR;
- }
-
/// Request for initialization of data model of the result: adding all attributes
virtual void initAttributes();
bool myIsInHistory;
bool myIsInfinite;
public:
- /// default color for a result construction
- inline static const std::string& DEFAULT_COLOR()
- {
- static const std::string RESULT_CONSTRUCTION_COLOR("120,120,120");
- return RESULT_CONSTRUCTION_COLOR;
- }
-
/// Request for initialization of data model of the result: adding all attributes
virtual void initAttributes();
{
std::shared_ptr<ModelAPI_Data> myOwnerData; ///< data of owner of this result
public:
- /// default color for a result body
- inline static const std::string& DEFAULT_COLOR()
- {
- static const std::string RESULT_GROUP_COLOR("150,150,180");
- return RESULT_GROUP_COLOR;
- }
/// Request for initialization of data model of the result: adding all attributes
virtual void initAttributes();
return MY_GROUP;
}
+ /// default color for a result body
+ inline static const std::string& DEFAULT_COLOR()
+ {
+ static const std::string RESULT_BODY_COLOR("150,150,180");
+ return RESULT_BODY_COLOR;
+ }
+
/// Stores the shape (called by the execution method).
virtual void store(const std::shared_ptr<GeomAPI_Shape>& theShape) = 0;
return MY_GROUP;
}
+ /// default color for a result construction
+ inline static const std::string& DEFAULT_COLOR()
+ {
+ static const std::string RESULT_CONSTRUCTION_COLOR("120,120,120");
+ return RESULT_CONSTRUCTION_COLOR;
+ }
+
/// Sets the result
virtual void setShape(std::shared_ptr<GeomAPI_Shape> theShape) = 0;
return MY_GROUP;
}
+ /// default color for a result body
+ inline static const std::string& DEFAULT_COLOR()
+ {
+ static const std::string RESULT_GROUP_COLOR("150,150,180");
+ return RESULT_GROUP_COLOR;
+ }
+
};
//! Pointer on feature object
${CAS_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/src/Config
${CMAKE_SOURCE_DIR}/src/Events
- ${CMAKE_SOURCE_DIR}/src/Model
${CMAKE_SOURCE_DIR}/src/ModelAPI
${CMAKE_SOURCE_DIR}/src/GeomDataAPI
${CMAKE_SOURCE_DIR}/src/GeomAPI
#include "ModuleBase_Preferences.h"
//#include "ModuleBase_Constants.h"
-#include <Model_ResultBody.h>
-#include <Model_ResultGroup.h>
-#include <Model_ResultConstruction.h>
-
#include <Config_PropManager.h>
#include <SUIT_ResourceMgr.h>
myPreferences->setItemProperty("texture_stretch_enabled", true, bgId);
myPreferences->setItemProperty("custom_enabled", false, bgId);
myPreferences->setItemProperty("image_formats", aImgFiles, bgId);
-
- //Config_PropManager::registerProp("Visualization", "object_default_color", "Object color",
- // Config_Prop::Color, "225,225,225");
-
- Config_PropManager::registerProp("Visualization", "result_body_color", "Body color",
- Config_Prop::Color, Model_ResultBody::DEFAULT_COLOR());
- Config_PropManager::registerProp("Visualization", "result_group_color", "Group color",
- Config_Prop::Color, Model_ResultGroup::DEFAULT_COLOR());
- Config_PropManager::registerProp("Visualization", "result_construction_color", "Construction color",
- Config_Prop::Color, Model_ResultConstruction::DEFAULT_COLOR());
}
void ModuleBase_PreferencesDlg::createMenuPage(int thePageId)
if (myMainWindow)
connect(myMainWindow, SIGNAL(exitKeySequence()), SLOT(onExit()));
connect(this, SIGNAL(errorOccurred(const QString&)), myErrorDlg, SLOT(addError(const QString&)));
+
+ //Config_PropManager::registerProp("Visualization", "object_default_color", "Object color",
+ // Config_Prop::Color, "225,225,225");
+
+ Config_PropManager::registerProp("Visualization", "result_body_color", "Body color",
+ Config_Prop::Color, ModelAPI_ResultBody::DEFAULT_COLOR());
+ Config_PropManager::registerProp("Visualization", "result_group_color", "Group color",
+ Config_Prop::Color, ModelAPI_ResultGroup::DEFAULT_COLOR());
+ Config_PropManager::registerProp("Visualization", "result_construction_color", "Construction color",
+ Config_Prop::Color, ModelAPI_ResultConstruction::DEFAULT_COLOR());
}
//******************************************************