]> 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 c318acde91850c1cb83708af8d07e20c42de78d8..000950c93a474d250142468763fa4bd321aa788d 100644 (file)
@@ -46,6 +46,7 @@ Version:   $Revision$
 //Includes same project
 #include "GlobalConstants.h"
 #include "GObjectModel.h"
+#include "GPortModel.h"
 
 //Includes creaMaracasVisu
 
@@ -56,6 +57,8 @@ Version:   $Revision$
 namespace bbtk
 {
 
+       class GPortModel;
+
        class GBlackBoxModel : public GObjectModel 
        {
 
@@ -66,16 +69,38 @@ namespace bbtk
                ~GBlackBoxModel();
                
                //Public methods                
-               virtual void updateBlackBox(BlackBoxDescriptor::Pointer descriptor);
+               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
-               BlackBoxDescriptor::Pointer _desc;
-       
+               //Private Attributes
+               std::vector<GPortModel*> _inputs;
+               std::vector<GPortModel*> _outputs;
+               bool _isExecutable;
+
                //Private Methods
 
        protected:
+               //Protected Attributes
+               std::string _bbtkPackage;
+
                //Protected methods
                
        };