//Includes std
#include <iostream>
+#include <string>
+#include <sstream>
#include <map>
namespace bbtk
virtual bool OnLeftButtonUp();
virtual bool OnRightButtonUp();
virtual bool OnLeftDClick();
+ virtual bool OnMiddleButtonDown(); ///JLGR 21-05-2012
+ virtual bool OnMiddleButtonUp(); ///JLGR 21-05-2012
//-------
int createGBlackBox(int x, int y, std::string packageName, std::string boxType );
int createGComplexBoxInputPort(std::string inputName);
int createGComplexBoxOutputPort(std::string outputName);
- GPortController* createGPort(int portType, std::string bbtkName, std::string bbtkType, int posinBox,GBoxModel *blackBox);
+ GPortController* createGPort(int portType, std::string bbtkName, std::string bbtkType, std::string bbtkDescription, int posinBox,GBoxModel *blackBox);
int createGInputPort(int portType, int posinBox,GBoxModel *blackBox, BlackBoxInputDescriptor *desc);
int createGOutputPort(int portType, int posinBox,GBoxModel *blackBox, BlackBoxOutputDescriptor *desc);
int createGConnector(GPortModel* startPort);
void configGBlackBox(int idBox, double xIn, double yIn, double zIn, std::string name, bool boxExecutable,double xEn,double yEn,double zEn);
- int configGConnetion( std::string nameStartBox, std::string nameStartPort, std::string
- nameEndBox, std::string nameEndPort);
+ int configGConnetion( std::string nameStartBox, std::string nameStartPort, std::string nameEndBox, std::string nameEndPort);
void configGComBoxInputOutputPort(bool inputoutput, std::string inputPortName, double xIn, double yIn,double zIn);
GBoxModel* findGBox(std::string boxname);
vtkRenderWindow* getRenderWindow();
- vtkRenderer* getRenderer();
+ vtkRenderer* getRenderer();
virtual void update(int idController,int command);
//Add a map of object controllers
void addObjects(std::map<int,GObjectController*> objectsMap);
+ /// Duplicates Objects to current a diagram
+ void DuplicateObjects(std::map<int,GObjectController*> objectsMap);///JLGR 21-05-2012
//-------
// Makes a BlackBox Executable
std::string saveComplexBoxBBS();
//Delete the object in the list of controllers with the id given by parameter.
- void deleteObject(int id);
+ bool deleteObject(int id);
void AddControlerToBeRemove(std::vector<int> *controllersToRemove, int id);
void saveDiagram(std::string &content);
//Load the diagram
- void loadDiagram(ifstream &inputStream);
+ void loadDiagram(std::stringstream &inputStream);
//Center the view of the camera in the initial position
void centerView();
std::string GetAuthor();
std::string GetCategory();
std::string GetDescription();
+
+ // JGRR & CM
+ void printAll( int com, int sta );
private: