]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.h
Implemented deleting of boxes from the scene....
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GBlackBoxModel.h
index 4c10551ef4e912b0c5fa5214e4cc860ed17a46d2..000950c93a474d250142468763fa4bd321aa788d 100644 (file)
@@ -46,15 +46,19 @@ Version:   $Revision$
 //Includes same project
 #include "GlobalConstants.h"
 #include "GObjectModel.h"
+#include "GPortModel.h"
 
 //Includes creaMaracasVisu
 
 //Includes std
 #include <iostream>
 
+
 namespace bbtk
 {
 
+       class GPortModel;
+
        class GBlackBoxModel : public GObjectModel 
        {
 
@@ -64,19 +68,41 @@ namespace bbtk
                GBlackBoxModel();
                ~GBlackBoxModel();
                
-               //Public methods
-               
+               //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);
+
+               virtual std::string getStatusText();
+
+               bool isExecutable();
+               void setExecutable(bool executable);
+
+               std::vector<GPortModel*> getInputPorts();
+               std::vector<GPortModel*> getOutputPorts();
 
        private:
 
-               //Attributes
+               //Private Attributes
+               std::vector<GPortModel*> _inputs;
+               std::vector<GPortModel*> _outputs;
+               bool _isExecutable;
 
-       
                //Private Methods
 
        protected:
-               //Protected methods
+               //Protected Attributes
+               std::string _bbtkPackage;
 
+               //Protected methods
+               
        };