]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.h
no message
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxVtkSceneManager.h
index 8e8a7aa67355e955380c1955a0b415dcc3d72cb6..1c05f16d646c56509b1d3d310f8bd99e8511dc42 100644 (file)
@@ -35,10 +35,11 @@ Version:   $Revision$
 *  \brief Class bbtk::BlackBox : abstract black-box interface. 
 */
 
-/**
-* \class bbtk::wxVtkSceneManager
-* \brief 
-*/
+/****
+* Design and Developpement of BBTK GEditor
+* Ricardo A Corredor J <ra.corredor67@uniandes.edu.co>
+* RaC - 2010
+****/
 
 #ifndef __wxVtkSceneManager_h__
 #define __wxVtkSceneManager_h__
@@ -99,13 +100,13 @@ namespace bbtk
 
                virtual bool OnChar();
                virtual bool OnMouseMove();
-               virtual bool  OnLeftButtonDown(); 
-               virtual bool  OnLeftButtonUp();
+               virtual bool OnLeftButtonDown(); 
+               virtual bool OnLeftButtonUp();
                virtual bool OnRightButtonUp();
                virtual bool OnLeftDClick();
 
                //-------
-               int createGBlackBox(int x, int y,std::string packageName, std::string boxType);
+               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);
@@ -113,6 +114,9 @@ namespace bbtk
                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);
+
+               
                vtkRenderWindow* getRenderWindow();
                vtkRenderer* getRenderer();             
 
@@ -156,6 +160,8 @@ namespace bbtk
 
                //Delete the object in the list of controllers with the id given by parameter.
                void deleteObject(int id);
+               
+               void AddControlerToBeRemove(std::vector<int> *controllersToRemove, int id);
 
                //Clear list of controllers and refresh
                void deleteAllBoxes();
@@ -169,23 +175,10 @@ namespace bbtk
                //Center the view of the camera in the initial position
                void centerView();
 
+               bool boxExist(std::string boxname);
+               std::string generateANewNameForABox();
+               std::string findANewNameForABox();
                //-------
-               //Get a collection of object ids
-               std::vector<int> getBlackBoxes();
-               std::vector<int> getConnections();
-               std::vector<int> getComplexInputPorts();
-               std::vector<int> getComplexOutputPorts();
-
-               //Get the map of selected objects (id, controller)
-               std::map<int,GObjectController*> getSelectedObjects();
-
-               //Get size of selected objects map
-               int getNumSelectedObjects();
-
-               //Complex box edition mode
-               bool isComplexBox();
-               void setComplexBox(bool val);
-
 
 
        private:
@@ -217,6 +210,10 @@ namespace bbtk
                //Is the diagram in state complex box 
                bool _isComplexBox;
 
+               int _idConnectionInCreation;
+
+               int _contLastId;
+
        protected:
 
        };