]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.cxx
Updated Version with the moving of the objects updated and the background doesn't...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / vtkGObjectView.cxx
index 85b2616c90b026d100a03569d1a72ec651e39cb2..1c2fd8f8d1e6622f3fb1bab6d619033b61697fb2 100644 (file)
@@ -44,7 +44,8 @@ namespace bbtk
        vtkGObjectView::vtkGObjectView()
        {
                _baseView=NULL;
-               _objectActor=NULL;
+               _objectBorderActor=NULL;
+               _fillBorderActor=NULL;
                _isStartDragging=false;
                
                _state = NOTHING_HAPPENS;
@@ -101,7 +102,8 @@ namespace bbtk
 
        void vtkGObjectView::addVtkActors()//virtual
        {
-               _baseView->GetRenderer()->AddActor(_objectActor);
+               _baseView->GetRenderer()->AddActor(_objectBorderActor);
+               _baseView->GetRenderer()->AddActor(_fillBorderActor);
                _baseView->GetRenderer()->Render();
        }
 
@@ -123,8 +125,6 @@ namespace bbtk
                double xx=X,yy=Y,zz=900;
                _baseView->TransCoordScreenToWorld(xx,yy,zz);
 
-               
-
                if(_isStartDragging)
                {
                        _isStartDragging=false;
@@ -134,14 +134,13 @@ namespace bbtk
                        dragDifX=xx-xInic;
                        dragDifY=yy-yInic;      
                }
-
                _model->move(xx-dragDifX,yy-dragDifY,zz);
 
        }
 
        //=========================================================================
 
-       void vtkGObjectView::isStartDragging(bool param)
+       void vtkGObjectView::setStartDragging(bool param)
        {
                _isStartDragging=param;
                dragDifX=0;