]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.h
The buttons and the objects to create input and output complex box ports were added...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GBlackBoxModel.h
index 04ae668d17ad68a72b1836274a06ad6e7e197d29..74da5f6546421cd8d7db8db858be0b5665f1c37b 100644 (file)
@@ -45,8 +45,7 @@ Version:   $Revision$
 
 //Includes same project
 #include "GlobalConstants.h"
-#include "GObjectModel.h"
-#include "GPortModel.h"
+#include "GBoxModel.h"
 
 //Includes creaMaracasVisu
 
@@ -57,10 +56,8 @@ Version:   $Revision$
 namespace bbtk
 {
 
-       class GPortModel;
-
-       class GBlackBoxModel : public GObjectModel 
-       {
+       class GBlackBoxModel : public GBoxModel
+       {
 
        public: 
 
@@ -69,14 +66,6 @@ namespace bbtk
                ~GBlackBoxModel();
                
                //Public methods                
-               virtual void setInicPoint(double& x, double& y, double& z);
-               void addInputPort(GPortModel *inputport);
-               void addOutputPort(GPortModel *outputport);
-               int getNumInputPorts();
-               int getNumOutputPorts();
-               virtual void move(double xx,double yy,double zz);
-               GPortModel* getStartOutputPort();
-
                std::string getBBTKPackage();
                void setBBTKPackage(std::string obpackage);
 
@@ -86,22 +75,12 @@ namespace bbtk
                bool isExecutable();
                void setExecutable(bool executable);
 
-               std::vector<GPortModel*> getInputPorts();
-               std::vector<GPortModel*> getOutputPorts();
-
                void setValueToInputPort(int pos,std::string value);
                void setValueToInput(std::string name,std::string value);
 
-               GPortModel* getInputPort(std::string name);
-               GPortModel* getOutputPort(std::string name);
-
-               void updatePorts();
-
        private:
 
                //Private Attributes
-               std::vector<GPortModel*> _inputs;
-               std::vector<GPortModel*> _outputs;
                bool _isExecutable;
 
                //Private Methods