* \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__
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);
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();
//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();
//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:
//Is the diagram in state complex box
bool _isComplexBox;
+ int _idConnectionInCreation;
+
+ int _contLastId;
+
protected:
};