+ void vtkGObjectView::moveObject(int X,int Y) //virtual
+ {
+ // RaC In the actual version, always z=900
+ double xx=X,yy=Y,zz=900;
+ _baseView->TransCoordScreenToWorld(xx,yy,zz);
+
+ if(_isStartDragging)
+ {
+ _isStartDragging=false;
+
+ double xInic,yInic,zInic;
+ _model->getInicPoint(xInic,yInic,zInic);
+ dragDifX=xx-xInic;
+ dragDifY=yy-yInic;
+ }
+ _model->move(xx-dragDifX,yy-dragDifY,zz);
+
+ }
+
+ //=========================================================================
+
+ void vtkGObjectView::setStartDragging(bool param)
+ {
+ _isStartDragging=param;
+ dragDifX=0;
+ dragDifX=0;
+ }
+
+ //=========================================================================
+
+ void vtkGObjectView::setState(int state)
+ {
+ _state = state;
+ }
+
+ //=========================================================================
+
+ int vtkGObjectView::getState()
+ {
+ return _state;
+ }
+
+ //=========================================================================
+
+ void vtkGObjectView::setRefreshWaiting()
+ {
+ ((vtkInteractorStyleBaseView*)_baseView->GetInteractorStyleBaseView())->SetRefresh_waiting();
+ }
+
+ //=========================================================================
+
+