X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FGBlackBoxModel.h;h=c766dba08a26d75bcad5c949dd9213d80010ac24;hb=34bcc7054d714ab35dd9c0dae2b2f8a5c26f21b0;hp=c318acde91850c1cb83708af8d07e20c42de78d8;hpb=c8402dc4438aae412055d54bacf221c1449a83d6;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.h b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.h index c318acd..c766dba 100644 --- a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.h +++ b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.h @@ -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,40 @@ 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 getInputPorts(); + std::vector getOutputPorts(); + + void setValueToInputPort(int pos,std::string value); private: - //Attributes - BlackBoxDescriptor::Pointer _desc; - + //Private Attributes + std::vector _inputs; + std::vector _outputs; + bool _isExecutable; + //Private Methods protected: + //Protected Attributes + std::string _bbtkPackage; + //Protected methods };