]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.h
v1.1.0 BUG 1394 and 1401
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxVtkSceneManager.h
index 12c4fc4a31a3c9ff304dae64fc4b9709dbbd7808..be332f7ae7ad295da835c782acd35eae92824635 100644 (file)
@@ -82,6 +82,8 @@ Version:   $Revision$
 
 //Includes std
 #include <iostream>
+#include <string>
+#include <sstream>
 #include <map>
 
 namespace bbtk
@@ -107,6 +109,8 @@ 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 );
@@ -118,15 +122,14 @@ namespace bbtk
                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);
 
@@ -159,6 +162,8 @@ namespace bbtk
                //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
@@ -171,7 +176,7 @@ namespace bbtk
                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);
 
@@ -182,7 +187,7 @@ namespace bbtk
                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();
@@ -203,6 +208,9 @@ namespace bbtk
         std::string GetAuthor();
         std::string GetCategory();
         std::string GetDescription();
+  
+        // JGRR & CM
+        void printAll( int com, int sta );
 
        private: