X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionPlugin%2FConstructionPlugin_Plugin.cpp;h=c60c022b4311028afd31a9c801159ed0d1158822;hb=51f9a2d4ddb07cb536d1bfef694995b81e4079af;hp=008d139525b066dd750a13e0b05868bcec707bd0;hpb=f1cd93fd02a54259f72e3191d037323a496b2bef;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp b/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp index 008d13952..c60c022b4 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp +++ b/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp @@ -2,6 +2,10 @@ #include "ConstructionPlugin_Plugin.h" #include "ConstructionPlugin_Point.h" +#include "ConstructionPlugin_Axis.h" +#include "ConstructionPlugin_Plane.h" + +#include #include #include @@ -15,13 +19,23 @@ ConstructionPlugin_Plugin::ConstructionPlugin_Plugin() { // register this plugin ModelAPI_Session::get()->registerPlugin(this); + + // register construction properties + Config_PropManager::registerProp("Visualization", "construction_plane_color", "Construction plane color", + Config_Prop::Color, ConstructionPlugin_Plane::DEFAULT_COLOR()); } FeaturePtr ConstructionPlugin_Plugin::createFeature(string theFeatureID) { - if (theFeatureID == CONSTRUCTION_POINT_KIND) { + if (theFeatureID == ConstructionPlugin_Point::ID()) { return FeaturePtr(new ConstructionPlugin_Point); } + else if (theFeatureID == ConstructionPlugin_Axis::ID()) { + return FeaturePtr(new ConstructionPlugin_Axis); + } + else if (theFeatureID == ConstructionPlugin_Plane::ID()) { + return FeaturePtr(new ConstructionPlugin_Plane); + } // feature of such kind is not found return FeaturePtr(); }