namespace bbtk {
+#define POORT_MAX_LINE_SIZE_INTERPRETER 1500
+
//=========================================================================
// EED 15 oct 2012 wxVtkSceneManager::wxVtkSceneManager(wxGEditorTabPanel *parent, wxVtk3DBaseView *baseView, int idManager,Factory::Pointer bbtkfactory)
void wxVtkSceneManager::configureBaseView()
{
- printf("EED wxVtkSceneManager::configureBaseView 0\n");
vtkInteractorStyleBaseView2D *interactorstylebaseview = vtkInteractorStyleBaseView2D::New();
_baseView->SetInteractorStyleBaseView(interactorstylebaseview);
_aPolygonMapper->Modified();
_baseView->GetRenderer()->AddActor(_fillObjectActor);
- printf("EED wxVtkSceneManager::configureBaseView 1\n");
}
//=========================================================================
//=========================================================================
void wxVtkSceneManager::loadDiagram(stringstream &inputStream)
{
- printf("EED wxVtkSceneManager::loadDiagram Start \n");
int size;
std::string version = "<void>";
std::string line = "";
char delims[] = ":";
char *result = NULL;
- int MAX_LINE_SIZE=1500;
- char poort[MAX_LINE_SIZE];
+ char poort[POORT_MAX_LINE_SIZE_INTERPRETER];
getCleanLine(inputStream, line);
while (port == "PORT")
{
getCleanLine(inputStream, line);//name:value
- if (line.length()>=MAX_LINE_SIZE-1)
+ if (line.length()>=POORT_MAX_LINE_SIZE_INTERPRETER-1)
{
- line=line.substr(0, MAX_LINE_SIZE-1);
+ line=line.substr(0, POORT_MAX_LINE_SIZE_INTERPRETER-1);
}
strcpy(poort, line.c_str());
conView->getManualContourView()->AddPoint();
}
}// version !=1.0
-
} // for numConns
-
- } // start
-
-printf("EED wxVtkSceneManager::loadDiagram End \n");
-
+ } // start
}
//=========================================================================
//=========================================================================
void wxVtkSceneManager::configGComBoxInputOutputPort(bool inputoutput,
- std::string portName, double xIn, double yIn, double zIn) {
+ std::string portName, double xIn, double yIn, double zIn)
+{
int idPort;
if (inputoutput == true) {
idPort = createGComplexBoxInputPort(portName);
//=========================================================================
-GBoxModel* wxVtkSceneManager::findGBox(std::string boxname) {
+GBoxModel* wxVtkSceneManager::findGBox(std::string boxname)
+{
int j;
int idB;
GBoxModel *bMod;