//Includes same project
#include "GObjectsMVCFactory.h"
#include "Observer.h"
+#include "GBoxModel.h"
+#include "GComplexBoxPortModel.h"
#include "GPortModel.h"
#include "vtkGConnectorView.h"
#include "GConnectorModel.h"
void configureBaseView();
int createGBlackBox(int x, int y,std::string packageName, std::string boxType);
- GPortController* createGPort(int portType, std::string bbtkName, std::string bbtkType, int posinBox,GBlackBoxModel *blackBox);
- int createGInputPort(int portType, int posinBox,GBlackBoxModel *blackBox, BlackBoxInputDescriptor *desc);
- int createGOutputPort(int portType, int posinBox,GBlackBoxModel *blackBox, BlackBoxOutputDescriptor *desc);
+ 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 createGInputPort(int portType, int posinBox,GBoxModel *blackBox, BlackBoxInputDescriptor *desc);
+ int createGOutputPort(int portType, int posinBox,GBoxModel *blackBox, BlackBoxOutputDescriptor *desc);
int createGConnector(GPortModel* startPort);
void registerController(InteractorStyleMaracas *param);
std::vector<int> getBoxes();
std::vector<int> getConnections();
+ bool isComplexBox();
+ void setComplexBox(bool val);
+
private:
//Saves the id's of the selected objects in the controllers map
std::vector<int> _selectedObjects;
+ bool _isComplexBox;
+
protected:
};