X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FGObjectsMVCFactory.h;h=b7459ddac502efa02c2b89247898742886e7ea14;hb=ad952d45acb42f76461d6a84fd7ef3eb4d44efa4;hp=606b0952ead28a06e4514ad432a5a476d6685687;hpb=62f479996c001d53a10c45e3ad6a3651b8007668;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/GObjectsMVCFactory.h b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/GObjectsMVCFactory.h index 606b095..b7459dd 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/GObjectsMVCFactory.h +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/GObjectsMVCFactory.h @@ -35,10 +35,11 @@ Version: $Revision$ * \brief Class bbtk::GObjectsMVCFactory : abstract black-box interface. */ -/** -* \class bbtk::GObjectsMVCFactory -* \brief -*/ +/**** +* Design and Developpement of BBTK GEditor +* Ricardo A Corredor J +* RaC - 2010 +****/ #ifndef __GObjectsMVCFactory_h__ #define __GObjectsMVCFactory_h__ @@ -63,7 +64,6 @@ Version: $Revision$ #include "GComplexBoxPortModel.h" - //Includes creaMaracasVisu //Includes std @@ -87,23 +87,29 @@ namespace bbtk ~GObjectsMVCFactory(); //Public methods + + // Singleton to access to the Factory static GObjectsMVCFactory* getInstance(); static void destroyInstance(); + + // Access to the BBTK library to get the descriptor of a box with the package and box names BlackBoxDescriptor::Pointer getBlackBoxDescriptor(std::string packageName, std::string boxName); + + // Creates the MVC of the graphical objects depending on the object type vtkGObjectView* createGObjectView(int type); GObjectController* createGObjectController(int type); GObjectModel* createGObjectModel(int type); + //Public attributes Interpreter::Pointer _interpreter; private: - //Attributes - static GObjectsMVCFactory* instance; - - //Private Methods + //Private Attributes + static GObjectsMVCFactory* instance; + protected: