X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FGBlackBoxModel.h;h=a45910235a0d3fd33297bff3310c030f343be1b9;hb=31dee6ade406b4b04ea61b9e6527b663e9ed6540;hp=82214a4ad29c4818c145a6d4ca81b205ca09de35;hpb=8fda22926665e75ccf2d7c8231e854ff3fc7c12c;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.h b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.h index 82214a4..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,27 +66,27 @@ 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: //Private Attributes - std::vector _inputs; - std::vector _outputs; bool _isExecutable; //Private Methods