]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.cxx
#3084 bbGEditor Bug New Normal - Color refresh for inputs and outputs
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / vtkGObjectView.cxx
index 50ca906694be2d90850ee69812c91d4c46b307e0..d9d784edee1c657624a76a68c3e8132972799aa5 100644 (file)
@@ -65,12 +65,11 @@ Version:   $Revision$
 namespace bbtk
 {
 
-
        //=========================================================================
        vtkGObjectView::vtkGObjectView()
        {
                _baseView                       = NULL;
-               _borderObjectActor      = NULL;
+//             _borderObjectActor      = NULL;
                _fillObjectActor        = NULL;
                _isStartDragging        = false;
                
@@ -82,28 +81,24 @@ namespace bbtk
        {
        }
        //=========================================================================
-
        void vtkGObjectView::update(int idController,int command)//virtual
        {
                //virtual
        }
 
        //=========================================================================
-       
        void vtkGObjectView::setModel(GObjectModel *model)
        {
                _model = model;
        }
 
        //=========================================================================
-       
        void vtkGObjectView::setBaseView(wxVtkBaseView* baseView)
        {
                _baseView = baseView;
        }
 
        //=========================================================================
-
        void vtkGObjectView::initVtkObjects()
        {
                createVtkObjects();
@@ -111,37 +106,32 @@ namespace bbtk
        }
 
        //=========================================================================
-
        void vtkGObjectView::createVtkObjects() //virtual
        {
                //virtual
        }
 
        //=========================================================================
-
        void vtkGObjectView::updateColors() //virtual
        {
                //virtual
        }
 
        //=========================================================================
-
        void vtkGObjectView::addVtkActors()//virtual
        {               
                _baseView->GetRenderer()->AddActor(_fillObjectActor);
-               _baseView->GetRenderer()->Render();
+//EED2017              _baseView->GetRenderer()->Render();
        }
 
        //=========================================================================
-
        void vtkGObjectView::removeVtkActors()//virtual
        {
                _baseView->GetRenderer()->RemoveActor(_fillObjectActor);
-               _baseView->GetRenderer()->Render();
+//EED2017              _baseView->GetRenderer()->Render();
        }
 
        //=========================================================================
-
        bool vtkGObjectView::isPointInside(int X,int Y) //virtual
        {
                // RaC In the actual version, always z=GPOSITION_Z
@@ -151,13 +141,11 @@ namespace bbtk
        }
 
        //=========================================================================
-
        void vtkGObjectView::moveObject(int X,int Y) //virtual
        {               
                // RaC In the actual version, always z=GPOSITION_Z
                double xx=X,yy=Y,zz=GPOSITION_Z;
                _baseView->TransCoordScreenToWorld(xx,yy,zz);
-
                if(_isStartDragging)
                {
                        _isStartDragging=false;
@@ -168,11 +156,9 @@ namespace bbtk
                        dragDifY=yy-yInic;      
                }
                _model->move(xx-dragDifX,yy-dragDifY,zz);
-
        }
 
        //=========================================================================
-
        void vtkGObjectView::setStartDragging(bool param)
        {
                _isStartDragging=param;
@@ -181,28 +167,24 @@ namespace bbtk
        }
 
        //=========================================================================
-
        void vtkGObjectView::setState(int state)
        {
                _state = state;
        }
 
        //=========================================================================
-
        int vtkGObjectView::getState()
        {
                return _state;
        }
 
        //=========================================================================
-
        void vtkGObjectView::setRefreshWaiting()
        {
                ((vtkInteractorStyleBaseView*)_baseView->GetInteractorStyleBaseView())->SetRefresh_waiting();
        }
 
        //=========================================================================
-       
        void vtkGObjectView::removeFromScene()
        {
                removeVtkActors();