X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FGBlackBoxModel.h;h=a45910235a0d3fd33297bff3310c030f343be1b9;hb=66d85963bdb3dea88f7d8e8931855d092629b37c;hp=160ac37cd32a7ba3ce023333fdb8f6769bd30203;hpb=8fa663b7b47e797e6e23722d1fef41c40419a6d6;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.h b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.h index 160ac37..a459102 100644 --- a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.h +++ b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.h @@ -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,24 +66,35 @@ 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); + + virtual std::string getStatusText(); + virtual void save(std::string &content); + + bool isExecutable(); + void setExecutable(bool executable); + void setValueToInputPort(int pos,std::string value); + void setValueToInput(std::string name,std::string value); + + std::string getValueInputPort(int pos); + std::string getValueInput(std::string name); + + std::vector getConnectedInputs(); + std::vector getConnectedOutputs(); private: - //Attributes - std::vector _inputs; - std::vector _outputs; + //Private Attributes + bool _isExecutable; //Private Methods protected: + //Protected Attributes + std::string _bbtkPackage; + //Protected methods };