X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxVtkSceneManager.h;h=1c05f16d646c56509b1d3d310f8bd99e8511dc42;hb=aa99bb93c420e8cbd5ed491a3a4480e4b9e4e919;hp=8e8a7aa67355e955380c1955a0b415dcc3d72cb6;hpb=254bc264b6efd44aaf3e6bc1b43f8113bc3d6476;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.h b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.h index 8e8a7aa..1c05f16 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.h +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.h @@ -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 +* 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 *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 getBlackBoxes(); - std::vector getConnections(); - std::vector getComplexInputPorts(); - std::vector getComplexOutputPorts(); - - //Get the map of selected objects (id, controller) - std::map 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: };