X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConnectorPlugin%2FConnectorPlugin.py;h=345e4f8c0d03a3dc915ef605f8974692b9990f8a;hb=8f060aedd5949990421a96e3b4086f43efa13d24;hp=b532bbd7c3179449fef0c4d576c8d002717411dd;hpb=b1eedc1c758fe498ba735720e355210dbb811ffe;p=modules%2Fshaper.git diff --git a/src/ConnectorPlugin/ConnectorPlugin.py b/src/ConnectorPlugin/ConnectorPlugin.py index b532bbd7c..345e4f8c0 100644 --- a/src/ConnectorPlugin/ConnectorPlugin.py +++ b/src/ConnectorPlugin/ConnectorPlugin.py @@ -1,25 +1,29 @@ -""" -Copyright (C) 2014-20xx CEA/DEN, EDF R&D -""" +## @package Plugins +# Python plugin for exporting entities into Salome's GEOM module +# Copyright (C) 2014-20xx CEA/DEN, EDF R&D import ModelAPI from ConnectorPlugin_ExportFeature import ExportFeature - +## @ingroup Plugins +# The main class for management the construction features as plugin. class ConnectorPlugin(ModelAPI.ModelAPI_Plugin): + ## The constructor. def __init__(self): ModelAPI.ModelAPI_Plugin.__init__(self) pass + ## Creates the feature objects of this plugin by the feature string ID. def createFeature(self, theFeatureID): if theFeatureID == ExportFeature.ID(): return ExportFeature().__disown__() else: print "ConnectorPlugin: No such feature %s" % theFeatureID +## The plugin created on module importing (from c++) plugin = ConnectorPlugin() +## Main session of the application aSession = ModelAPI.ModelAPI_Session.get() -print "Module loaded. Session", aSession aSession.registerPlugin(plugin)