X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsVtkGUIEditorGraphic%2FvtkGObjectView.cxx;h=d9d784edee1c657624a76a68c3e8132972799aa5;hb=511369e67cf26244fc8768a727a03f42ff42865f;hp=50ca906694be2d90850ee69812c91d4c46b307e0;hpb=782cadf1306a646406ed7a089907f73a5f12c4e5;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.cxx b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.cxx index 50ca906..d9d784e 100644 --- a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.cxx +++ b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.cxx @@ -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();