X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FGBlackBoxModel.h;h=c766dba08a26d75bcad5c949dd9213d80010ac24;hb=34bcc7054d714ab35dd9c0dae2b2f8a5c26f21b0;hp=4c10551ef4e912b0c5fa5214e4cc860ed17a46d2;hpb=64fc9f949ff91d6e9d448ca0567e6205ee4d5be4;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.h b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.h index 4c10551..c766dba 100644 --- a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.h +++ b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.h @@ -46,15 +46,19 @@ Version: $Revision$ //Includes same project #include "GlobalConstants.h" #include "GObjectModel.h" +#include "GPortModel.h" //Includes creaMaracasVisu //Includes std #include + namespace bbtk { + class GPortModel; + class GBlackBoxModel : public GObjectModel { @@ -64,19 +68,43 @@ 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 getInputPorts(); + std::vector getOutputPorts(); + + void setValueToInputPort(int pos,std::string value); private: - //Attributes + //Private Attributes + std::vector _inputs; + std::vector _outputs; + bool _isExecutable; - //Private Methods protected: - //Protected methods + //Protected Attributes + std::string _bbtkPackage; + //Protected methods + };