]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/GObjectsMVCFactory.h
Bug #1689
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / GObjectsMVCFactory.h
index 606b0952ead28a06e4514ad432a5a476d6685687..1140310274bb321da184fc8f2122e492f61d8d06 100644 (file)
@@ -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 <ra.corredor67@uniandes.edu.co>
+* RaC - 2010
+****/
 
 #ifndef __GObjectsMVCFactory_h__
 #define __GObjectsMVCFactory_h__
@@ -63,7 +64,6 @@ Version:   $Revision$
 #include "GComplexBoxPortModel.h"
 
 
-
 //Includes creaMaracasVisu
 
 //Includes std
@@ -73,7 +73,6 @@ Version:   $Revision$
 #include <bbtkInterpreter.h>
 #include <bbtkFactory.h>
 #include <bbtkPackage.h>
-
 namespace bbtk
 {
 
@@ -87,23 +86,22 @@ namespace bbtk
                ~GObjectsMVCFactory();
                
                //Public methods
-               static GObjectsMVCFactory* getInstance();
-               static void destroyInstance();
-               BlackBoxDescriptor::Pointer getBlackBoxDescriptor(std::string packageName, std::string boxName);
-               vtkGObjectView* createGObjectView(int type);
-               GObjectController* createGObjectController(int type);
-               GObjectModel* createGObjectModel(int type);
-
-               Interpreter::Pointer _interpreter;
 
-       private:
+               // Singleton to access to the Factory
+               static GObjectsMVCFactory       *getInstance();
+               static void destroyInstance();
 
-               //Attributes
-               static GObjectsMVCFactory* instance;
+               // Creates the MVC of the graphical objects depending on the object type
+               vtkGObjectView          *createGObjectView(int type);
+               GObjectController       *createGObjectController(int type);
+               GObjectModel            *createGObjectModel(int type);
                
+       private:
 
                //Private Methods
 
+               //Private Attributes
+               static GObjectsMVCFactory* instance;
 
        protected: