} // isOverPort
} else { //_worldState
-
+
_worldState = DRAG_OBJECTS;
_startDragging = true;
-
+
int shiftkey = _vtkInteractorStyleBaseView->GetInteractor()->GetShiftKey();
int ctrlkey = _vtkInteractorStyleBaseView->GetInteractor()->GetControlKey();
ctrlkey = ctrlkey + shiftkey;
-
+
GObjectController *cont = GetGBlackBoxControlerPointedByMouse();
-
+
if (GetGBlackBoxControlerPointedByMouse()!=NULL)
{
int state=cont->getView()->getState() ;
} // if _selectedObjects.size
-
+
return true;
}
{
_worldState=NOTHING_HAPPENS;
//int lastId = _controllers.size()-1;
-
+
GConnectorController *connector = (GConnectorController*)_controllers[_idConnectionInCreation];
connector->removeFromScene();
unregisterController(connector);
_controllers.erase(_idConnectionInCreation);
-
+
std::map<int, GObjectController*>::iterator it;
for(it = _controllers.begin(); it != _controllers.end(); ++it)
{
desc->getView()->setState(NOTHING_HAPPENS);
desc->getModel()->notifyObservers(_idManager);
} // for
- }// if
+ }// if
}
-
-
+
+
//=========================================================================
bool wxVtkSceneManager::OnRightButtonUp()
std::string nameEndPort(result);
int idCon = configGConnetion(nameStartBox, nameStartPort, nameEndBox, nameEndPort);
-
+
if (version!="1.0")
{
- //Readding control points of the manualContour
+ //Readding control points of the manualContour
//ups1
- GConnectorController *tempp = (GConnectorController*)_controllers[idCon];
+ GConnectorController *tempp = (GConnectorController*)_controllers[idCon];
GConnectorModel *conMod = (GConnectorModel*)tempp->getModel();
vtkGConnectorView *conView= (vtkGConnectorView*)tempp->getView();
getline(inputStream,line); //NumberOfControlPoints:##
strcpy( conns, line.c_str() );
result = strtok( conns, delims );
result = strtok( NULL, delims );
-
+
int numberOfControlPoints;
std::istringstream isCons(result);
isCons >> numberOfControlPoints;
-
+
for (int ii=0;ii<numberOfControlPoints;ii++)
{
getline(inputStream,line); //XX:YY:ZZ
char connec[200];
strcpy( connec, line.c_str() );
-
+
double px,py,pz;
result = strtok( connec, delims );
std::istringstream isPointX(result);
result = strtok( NULL, delims );
std::istringstream isPointZ(result);
isPointZ >> pz;
-
+
conMod->getManualContourModel()->InsertPoint_id(ii+1,px,py,pz);
conView->getManualContourView()->AddPoint();
}
}// version !=1.0
-
+
} // for numConns
} // start
-
+
refresh();
}
//=========================================================================
}
+
//=========================================================================
+ void wxVtkSceneManager::SetComplexBoxName(std::string cbName)
+ {
+ _complexBoxName=cbName;
+ }
+
+ //=========================================================================
+ std::string wxVtkSceneManager::GetComplexBoxName()
+ {
+ return _complexBoxName;
+ }
+
+
+ //=========================================================================
+ void wxVtkSceneManager::SetPackageName(std::string paName)
+ {
+ _packageName=paName;
+ }
+
+ //=========================================================================
+ std::string wxVtkSceneManager::GetPackageName()
+ {
+ return _packageName;
+ }
+
+ //=========================================================================
+
} // EO namespace bbtk