// ----------------------------------------------------------------------------
bool manualContourBaseControler::OnMouseMove()
{
-
if ( _vtkInteractorStyleBaseView!=NULL)
{
int X,Y;
_wxVTKiren= _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor();
_wxVTKiren->GetEventPosition( X , Y );
-
if ( (_vtkInteractorStyleBaseView->GetInteractor()->GetControlKey()==0) &&
(_vtkInteractorStyleBaseView->GetInteractor()->GetShiftKey()==0) ) {
MouseMove(X,Y);
wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor();
wxVTKiren->GetEventPosition(X, Y);
- SetCompleteCreation( true );
- SetKeyBoardMoving( false );
- cout<<"RaC manualContourBaseControler::OnRightButtonDown"<<endl;
- this->GetManualContourModel()->SetCloseContour(true);
MouseClickRight(X,Y);
}
return true;
// ----------------------------------------------------------------------------
void manualContourBaseControler::MouseClickRight(int x, int y)
{
+ SetCompleteCreation( true );
+ SetKeyBoardMoving( false );
+ this->GetManualContourModel()->SetCloseContour(true);
+
// if (_state==1)
// {
// _state=0;
{
if (_state==0)
{
-
+
int z=GetZ();
- bool temp = _manViewBaseCont->SelectPosibleContour(x,y,z);
+ /*bool temp = */ _manViewBaseCont->SelectPosibleContour(x,y,z);
_manViewBaseCont->SelectPosiblePoint(x,y,z);
double xx = x;
double yy = y;
double zz = z;
+
GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz);
- /*int id =*/ GetManualContourModel()->AddPoint(xx,yy,zz); // JPRx
+ GetManualContourModel()->AddPoint(xx,yy,zz);
GetManualViewBaseContour()->AddPoint();
// GetManualViewBaseContour()->UpdateViewPoint(id);
}
double xx = x;
double yy = y;
double zz = z;
+
GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz);
manualPoint *mp = _manContModel->GetManualPoint(id);
mp->SetPoint(xx,yy,zz);