* \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__
#include "GComplexBoxPortModel.h"
-
//Includes creaMaracasVisu
//Includes std
#include <bbtkInterpreter.h>
#include <bbtkFactory.h>
#include <bbtkPackage.h>
-
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: