]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx
Feature #1366 Increased the line width of bbEditor connections.
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxVtkSceneManager.cxx
index ab0ef4e76d5a65f6e69cae0748be3c4bcef30c99..543f88a7e294196bfc96232d400a19e761475068 100644 (file)
 
 #include "wxVtkSceneManager.h"
 
+
 #include <vtkPolygon.h>
 #include <vtkUnstructuredGrid.h>
 
+
 namespace bbtk {
 
+cvs 
 //=========================================================================
 wxVtkSceneManager::wxVtkSceneManager(wxGEditorTabPanel *parent,
                wxVtk3DBaseView *baseView, int idManager) {
@@ -59,11 +62,13 @@ wxVtkSceneManager::wxVtkSceneManager(wxGEditorTabPanel *parent,
        if (_baseView != NULL) {
                //EED02JUIN2010
                printf(
-                               "RaC-EED 21-06-2010 %p wxVtkSceneManager::wxVtkSceneManager If you comment this line, the drag and drop functionnality is not initialized.\n",
-                               this);
-#ifdef __APPLE__
+               "RaC-EED 21-06-2010 %p wxVtkSceneManager::wxVtkSceneManager If you comment this line, the drag and drop functionnality is not initialized.\n", this);
+
+               #ifdef __APPLE__
+
                _baseView->GetWxVTKRenderWindowInteractor()->SetDropTarget((wxDropTarget*)parent);
-#endif
+
+               #endif
 
                configureBaseView();
                _worldState = NOTHING_HAPPENS;
@@ -530,7 +535,17 @@ int wxVtkSceneManager::createGConnector(GPortModel* startPort) {
        manContourView->SetColorNormalContour(0, 0, 1);
        manContourView->SetColorEditContour(0.5, 0.5, 0.5);
        manContourView->SetColorSelectContour(1, 0.8, 0);
-       manContourView->SetWidthLine(1);
+       
+       
+      /**
+         * JGRR AND CM
+         * Width increased from 2 to 5, it simplifies line handling and spline control :P
+         * @param WidthLine  
+         */
+        
+        manContourView->SetWidthLine( 5 ) ;
+
+
        manContourView->SetShowText(false);
 
        manContourControl->SetModelView(manContourModel, manContourView);
@@ -1946,7 +1961,6 @@ void wxVtkSceneManager::loadDiagram(stringstream &inputStream) {
                                std::string value(result);
 
                                bbmod->setValueToInput(name, value);
-
                                getline(inputStream, line);//PORT o FIN_BOX
                                port = line.substr(0, 4);
                        } // while
@@ -2556,6 +2570,7 @@ void wxVtkSceneManager::SetCbPackageName(std::string packagename) {
        }
 }
 
+
 //=========================================================================
 std::string wxVtkSceneManager::GetCbPackageName() {
        return _cbPackageName;
@@ -2595,6 +2610,7 @@ void wxVtkSceneManager::SetDescription(std::string description) {
        }
 }
 
+
 //=========================================================================
 std::string wxVtkSceneManager::GetDescription() {
        return _Description;
@@ -2605,5 +2621,4 @@ std::string wxVtkSceneManager::GetDescription() {
 
 } // EO namespace bbtk
 
-// EOF
-
+// EOF