manualContourPerpPlaneControler Class Reference

#include <manualContourPerpPlaneControler.h>

Inheritance diagram for manualContourPerpPlaneControler:

Inheritance graph
[legend]
Collaboration diagram for manualContourPerpPlaneControler:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 manualContourPerpPlaneControler ()
virtual ~manualContourPerpPlaneControler ()
virtual
manualContourPerpPlaneControler
Clone ()
void CopyAttributesTo (manualContourPerpPlaneControler *cloneObject)
void SetVtkMPRBaseData (vtkMPRBaseData *vtkmprbasedata)
vtkMPRBaseDataGetVtkMPRBaseData ()
virtual bool OnChar ()
virtual bool OnMouseMove ()
virtual bool OnLeftDClick ()
virtual void AddPoint (int x, int y, int z)
virtual void DeleteActualMousePoint (int x, int y)
virtual void MouseMove (int x, int y)
virtual void InsertPoint (int x, int y, int z)
virtual void ResetContour ()
void SetManualContour3VControler (manualContour3VControler *manualcontour3Vcontroler)
manualContour3VControlerGetManualContour3VControler ()
virtual void MouseDLeft (int x, int y)
void ResetOrientationPlane ()
void SetVtkInteractorStylePlane2D (InteractorStyleMaracas *vtkinteractorstyleplane2D)
InteractorStyleMaracasGetVtkInteractorStylePlane2D ()
void CopyAttributesTo (manualContourControler *cloneObject)
void CopyAttributesTo (manualContourBaseControler *cloneObject)
void CopyAttributesTo (InteractorStyleMaracas *cloneObject)
virtual void MouseClickLeft (int x, int y)
void SetEasyCreation (bool easyCreation)
bool GetEasyCreation ()
virtual void Configure ()
virtual bool OnLeftButtonDown ()
virtual bool OnLeftButtonUp ()
virtual bool OnMiddleButtonDown ()
virtual bool OnMiddleButtonUp ()
virtual bool OnRightButtonDown ()
virtual bool OnRightButtonUp ()
void SetModelView (manualContourModel *manContModel, manualViewBaseContour *manViewBaseCont)
manualContourModelGetManualContourModel ()
manualViewBaseContourGetManualViewBaseContour ()
virtual void MouseClickRight (int x, int y)
virtual void MouseReleaseLeft (int x, int y)
void SetState (int state)
int GetState ()
bool IsEditable ()
void SetEditable (bool condition)
bool GetPosibleToMove ()
void SetPosibleToMove (bool condition)
bool IsMoving ()
void SetMoving (bool condition)
void SetCompleteCreation (bool condition)
bool GetIfCompleteCreation ()
void SetKeyBoardMoving (bool condition)
bool GetKeyBoardMoving ()
void CreateNewManualContour ()
int GetNumberOfPointsManualContour ()
int GetNumberOfPointsSplineManualContour ()
void DeleteContour ()
double * GetVectorPointsXManualContour ()
double * GetVectorPointsYManualContour ()
void SetZ (int z)
virtual int GetZ ()
virtual void SetPoint (int id, int x, int y, int z)
void SetPointX (int id, int x)
void SetPointY (int id, int y)
void SetPointZ (int id, int z)
void Magnet (int x, int y)
virtual bool OnRightDClick ()
virtual bool OnMiddleDClick ()
virtual bool OnMouseWheel ()
void SetVtkInteractorStyleBaseView (vtkInteractorStyleBaseView *_vtkInteractorStyleBaseView)
void RemoveVtkInteractorStyleBaseView ()
void SetActive (bool active)
bool GetActive ()

Protected Attributes

vtkMPRBaseData_vtkmprbasedata
manualContour3VControler_manualcontour3Vcontroler
int _bakIdPoint
vtkInteractorStyleBaseView_vtkInteractorStyleBaseView

Private Attributes

bool _flagMouseMove
bool _flagMouseDClick
InteractorStyleMaracas_vtkinteractorstyleplane2D


Detailed Description

Definition at line 11 of file manualContourPerpPlaneControler.h.


Constructor & Destructor Documentation

manualContourPerpPlaneControler::manualContourPerpPlaneControler (  ) 

Definition at line 6 of file manualContourPerpPlaneControler.cpp.

References _flagMouseMove.

Referenced by Clone().

00007 {
00008         _flagMouseMove = true;
00009 }

Here is the caller graph for this function:

manualContourPerpPlaneControler::~manualContourPerpPlaneControler (  )  [virtual]

Definition at line 11 of file manualContourPerpPlaneControler.cpp.

00012 {
00013 }


Member Function Documentation

manualContourPerpPlaneControler * manualContourPerpPlaneControler::Clone (  )  [virtual]

Reimplemented from manualContourControler.

Definition at line 15 of file manualContourPerpPlaneControler.cpp.

References CopyAttributesTo(), and manualContourPerpPlaneControler().

00016 {
00017         manualContourPerpPlaneControler * clone = new manualContourPerpPlaneControler();
00018         CopyAttributesTo(clone);
00019         return clone;
00020 }

Here is the call graph for this function:

void manualContourPerpPlaneControler::CopyAttributesTo ( manualContourPerpPlaneControler cloneObject  ) 

Definition at line 23 of file manualContourPerpPlaneControler.cpp.

References manualContourControler::CopyAttributesTo(), SetManualContour3VControler(), SetVtkInteractorStylePlane2D(), and SetVtkMPRBaseData().

Referenced by Clone().

00024 {
00025         // Fathers object
00026         manualContourControler::CopyAttributesTo(cloneObject);
00027 
00028         cloneObject->SetVtkMPRBaseData( this->GetVtkMPRBaseData() );
00029         cloneObject->SetManualContour3VControler( this->GetManualContour3VControler() );
00030         cloneObject->SetVtkInteractorStylePlane2D( this->GetVtkInteractorStylePlane2D() );
00031 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualContourPerpPlaneControler::SetVtkMPRBaseData ( vtkMPRBaseData vtkmprbasedata  ) 

Definition at line 34 of file manualContourPerpPlaneControler.cpp.

References _vtkmprbasedata.

Referenced by CopyAttributesTo().

00035 {
00036         _vtkmprbasedata = vtkmprbasedata;
00037 }

Here is the caller graph for this function:

vtkMPRBaseData * manualContourPerpPlaneControler::GetVtkMPRBaseData (  ) 

Definition at line 40 of file manualContourPerpPlaneControler.cpp.

References _vtkmprbasedata.

00041 {
00042         return _vtkmprbasedata;
00043 }

bool manualContourPerpPlaneControler::OnChar (  )  [virtual]

Reimplemented from manualContourBaseControler.

Definition at line 91 of file manualContourPerpPlaneControler.cpp.

References _manualcontour3Vcontroler, manualContourBaseControler::OnChar(), and manualContour3VControler::OnChar_Others().

00092 {
00093         if (manualContourControler::OnChar()==false )
00094         {
00095                 _manualcontour3Vcontroler->OnChar_Others();
00096         }
00097         return true;
00098 }

Here is the call graph for this function:

bool manualContourPerpPlaneControler::OnMouseMove (  )  [virtual]

Reimplemented from manualContourBaseControler.

Definition at line 100 of file manualContourPerpPlaneControler.cpp.

References _flagMouseMove, and manualContourBaseControler::OnMouseMove().

00101 {
00102         manualContourControler::OnMouseMove();
00103         return _flagMouseMove;
00104 }

Here is the call graph for this function:

bool manualContourPerpPlaneControler::OnLeftDClick (  )  [virtual]

Reimplemented from manualContourBaseControler.

Definition at line 106 of file manualContourPerpPlaneControler.cpp.

References _flagMouseDClick, and manualContourBaseControler::OnLeftDClick().

00107 {
00108         manualContourControler::OnLeftDClick();
00109         return _flagMouseDClick;
00110 }

Here is the call graph for this function:

void manualContourPerpPlaneControler::AddPoint ( int  x,
int  y,
int  z 
) [virtual]

Reimplemented from manualContourBaseControler.

Definition at line 53 of file manualContourPerpPlaneControler.cpp.

References _manualcontour3Vcontroler, manualContourBaseControler::AddPoint(), and manualContour3VControler::AddPoint_Others().

Here is the call graph for this function:

void manualContourPerpPlaneControler::DeleteActualMousePoint ( int  x,
int  y 
) [virtual]

Reimplemented from manualContourBaseControler.

Definition at line 59 of file manualContourPerpPlaneControler.cpp.

References _manualcontour3Vcontroler, manualContourBaseControler::DeleteActualMousePoint(), manualContour3VControler::DeleteActualMousePoint_Others(), manualViewBaseContour::GetIdPoint(), manualContourBaseControler::GetManualViewBaseContour(), and manualContourBaseControler::GetZ().

Here is the call graph for this function:

void manualContourPerpPlaneControler::MouseMove ( int  x,
int  y 
) [virtual]

Reimplemented from manualContourControler.

Definition at line 66 of file manualContourPerpPlaneControler.cpp.

References _flagMouseMove, _manualcontour3Vcontroler, InteractorStyleMaracas::_vtkInteractorStyleBaseView, manualViewBaseContour::GetIdPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualContourBaseControler::GetZ(), manualContourControler::MouseMove(), and manualContour3VControler::MouseMove_Others().

00067 {
00068         _flagMouseMove = true;
00069         int ss =this->_vtkInteractorStyleBaseView->vtkInteractorStyle::GetState();
00070         if ((this->GetState()!=7) && (ss!=1)){
00071                 manualContourControler::MouseMove( x , y );
00072                 int id = GetManualViewBaseContour()->GetIdPoint ( x , y , GetZ() );
00073                 if (id!=-1)
00074                 {
00075                         _manualcontour3Vcontroler->MouseMove_Others(id);
00076                         _flagMouseMove = false;
00077                 }
00078         }
00079 }

Here is the call graph for this function:

void manualContourPerpPlaneControler::InsertPoint ( int  x,
int  y,
int  z 
) [virtual]

Reimplemented from manualContourBaseControler.

Definition at line 47 of file manualContourPerpPlaneControler.cpp.

References _manualcontour3Vcontroler, manualContourBaseControler::InsertPoint(), and manualContour3VControler::InsertPoint_Others().

Here is the call graph for this function:

void manualContourPerpPlaneControler::ResetContour (  )  [virtual]

Reimplemented from manualContourBaseControler.

Definition at line 112 of file manualContourPerpPlaneControler.cpp.

References _manualcontour3Vcontroler, manualContourBaseControler::ResetContour(), and manualContour3VControler::ResetContour_Others().

Here is the call graph for this function:

void manualContourPerpPlaneControler::SetManualContour3VControler ( manualContour3VControler manualcontour3Vcontroler  ) 

Definition at line 81 of file manualContourPerpPlaneControler.cpp.

References _manualcontour3Vcontroler.

Referenced by CopyAttributesTo().

00082 {
00083         _manualcontour3Vcontroler = manualcontour3Vcontroler;
00084 }

Here is the caller graph for this function:

manualContour3VControler * manualContourPerpPlaneControler::GetManualContour3VControler (  ) 

Definition at line 86 of file manualContourPerpPlaneControler.cpp.

References _manualcontour3Vcontroler.

00087 {
00088         return _manualcontour3Vcontroler;
00089 }

void manualContourPerpPlaneControler::MouseDLeft ( int  x,
int  y 
) [virtual]

Reimplemented from manualContourControler.

Definition at line 119 of file manualContourPerpPlaneControler.cpp.

References _flagMouseDClick, InteractorStyleMaracas::_vtkInteractorStyleBaseView, _vtkinteractorstyleplane2D, manualContourBaseControler::GetManualViewBaseContour(), manualContourControler::MouseDLeft(), InteractorStyleMaracas::OnLeftDClick(), ResetOrientationPlane(), and vtkInteractorStyleBaseView::SetParent_refresh_waiting().

00120 {
00121         _flagMouseDClick=true;
00122         manualContourControler::MouseDLeft(x,y);
00123 
00124         if (GetManualViewBaseContour()->ifTouchContour(x,y,0)==true)
00125         {
00126                 _flagMouseDClick = false;
00127                 _vtkinteractorstyleplane2D->OnLeftDClick();
00128                 ResetOrientationPlane();
00129                 this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting();
00130         }
00131 
00132 //      int id=GetManualViewBaseContour()->GetIdPoint(x,y,GetZ());
00133 //              if ( (GetState()==0) && (id!=-1) )
00134 //      {
00135 //              manualPoint *mp = this->GetManualContourModel()->GetManualPoint(id);
00136 //              _vtkmprbasedata->SetX( mp->GetX() );
00137 //              _vtkmprbasedata->SetY( mp->GetY() );
00138 //              _vtkmprbasedata->SetZ( mp->GetZ() );
00139 //              ResetOrientationPlane();
00140 //              this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting();
00141 //      }
00142 }

Here is the call graph for this function:

void manualContourPerpPlaneControler::ResetOrientationPlane (  ) 

Definition at line 147 of file manualContourPerpPlaneControler.cpp.

References _vtkmprbasedata, manualContourBaseControler::GetManualContourModel(), manualContourModel::GetNearestPointAndNormal(), vtkMPRBaseData::GetX(), vtkMPRBaseData::GetY(), vtkBaseData::GetZ(), and vtkMPRBaseData::SetNormal().

Referenced by MouseDLeft().

00148 {
00149         double p[3],rp[3],rn[3];
00150         p[0] = _vtkmprbasedata->GetX(  );
00151         p[1] = _vtkmprbasedata->GetY(  );
00152         p[2] = _vtkmprbasedata->GetZ(  );
00153         this->GetManualContourModel()->GetNearestPointAndNormal(p,rp,rn);
00154 
00155         _vtkmprbasedata->SetNormal(rn[0],rn[1],rn[2]);
00156 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualContourPerpPlaneControler::SetVtkInteractorStylePlane2D ( InteractorStyleMaracas vtkinteractorstyleplane2D  ) 

Definition at line 159 of file manualContourPerpPlaneControler.cpp.

References _vtkinteractorstyleplane2D.

Referenced by wxManualTree_MPRWidget::ConfigureContour(), and CopyAttributesTo().

00160 {
00161         _vtkinteractorstyleplane2D = vtkinteractorstyleplane2D;
00162 }

Here is the caller graph for this function:

InteractorStyleMaracas * manualContourPerpPlaneControler::GetVtkInteractorStylePlane2D (  ) 

Definition at line 164 of file manualContourPerpPlaneControler.cpp.

References _vtkinteractorstyleplane2D.

00165 {
00166         return _vtkinteractorstyleplane2D;
00167 }

void manualContourControler::CopyAttributesTo ( manualContourControler cloneObject  )  [inherited]

Definition at line 30 of file manualContourControler.cpp.

References manualContourBaseControler::CopyAttributesTo(), and manualContourControler::SetEasyCreation().

Referenced by manualContourControler::Clone(), CopyAttributesTo(), manualContour3VControler::CopyAttributesTo(), and manualContour3DControler::CopyAttributesTo().

00031 {
00032         // Fathers object
00033         manualContourBaseControler::CopyAttributesTo(cloneObject);
00034         cloneObject->SetEasyCreation( this->GetEasyCreation() );
00035 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualContourBaseControler::CopyAttributesTo ( manualContourBaseControler cloneObject  )  [inherited]

Definition at line 35 of file manualContourBaseControler.cpp.

References InteractorStyleMaracas::CopyAttributesTo(), manualContourBaseControler::SetCompleteCreation(), manualContourBaseControler::SetEditable(), manualContourBaseControler::SetKeyBoardMoving(), manualContourBaseControler::SetMoving(), manualContourBaseControler::SetPosibleToMove(), manualContourBaseControler::SetState(), and manualContourBaseControler::SetZ().

Referenced by manualContourBaseControler::Clone(), manualRoiControler::CopyAttributesTo(), manualLineControler::CopyAttributesTo(), manualContourControler::CopyAttributesTo(), and manualCircleControler::CopyAttributesTo().

00036 {
00037         // Fathers object
00038         InteractorStyleMaracas::CopyAttributesTo(cloneObject);
00039         cloneObject->SetZ( this->GetZ() );
00040         cloneObject->SetState( this->GetState() );
00041         cloneObject->SetEditable( this->IsEditable() );
00042         cloneObject->SetPosibleToMove( this->GetPosibleToMove() );
00043         cloneObject->SetMoving( this->IsMoving() );
00044         cloneObject->SetCompleteCreation( this->GetIfCompleteCreation() );
00045         cloneObject->SetKeyBoardMoving( this->GetKeyBoardMoving() );
00046 }

Here is the call graph for this function:

Here is the caller graph for this function:

void InteractorStyleMaracas::CopyAttributesTo ( InteractorStyleMaracas cloneObject  )  [inherited]

Definition at line 27 of file InteractorStyleMaracas.cxx.

References InteractorStyleMaracas::SetActive().

Referenced by InteractorStyleMaracas::Clone(), and manualContourBaseControler::CopyAttributesTo().

00028 {
00029         // Fathers object
00030         //<FATHERCLASS>::CopyAttributesTo(cloneObject);
00031 
00032         cloneObject->SetActive(  this->GetActive() );
00033 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualContourControler::MouseClickLeft ( int  x,
int  y 
) [virtual, inherited]

Reimplemented from manualContourBaseControler.

Reimplemented in manualCircleControler, manualContour3DControler, manualLineControler, and manualRoiControler.

Definition at line 44 of file manualContourControler.cpp.

References manualContourControler::_bakIdPoint, manualContourControler::_easyCreation, InteractorStyleMaracas::_vtkInteractorStyleBaseView, manualContourBaseControler::AddPoint(), manualViewBaseContour::GetIdPoint(), manualContourBaseControler::GetManualContourModel(), manualContourBaseControler::GetManualViewBaseContour(), manualViewBaseContour::GetNumberOfPoints(), manualContourBaseControler::GetNumberOfPointsManualContour(), manualContourBaseControler::GetState(), manualContourBaseControler::GetZ(), manualViewBaseContour::InitMove(), manualContourBaseControler::InsertPoint(), manualContourBaseControler::IsEditable(), manualViewBaseContour::Refresh(), manualContourModel::SetCloseContour(), manualContourBaseControler::SetMoving(), manualContourBaseControler::SetPosibleToMove(), manualViewBaseContour::SetSelected(), and manualContourBaseControler::SetState().

Referenced by wxImageViewerWidget::ExecuteEvent2(), and manualContour3DControler::MouseClickLeft().

00044                                                        {
00045 
00046 
00047         bool ok = false;
00048         int z   = GetZ();
00049         int size= GetManualViewBaseContour()->GetNumberOfPoints();
00050 
00051         // Insert a Control Point with shift+ClickLeft
00052         vtkRenderWindowInteractor *vtkrenderwindowinteractor = _vtkInteractorStyleBaseView->GetInteractor();
00053 
00054         if( IsEditable() )
00055         {
00056                 if ( (_vtkInteractorStyleBaseView!=NULL) && (GetState()==0) && ( (vtkrenderwindowinteractor!=NULL) && (vtkrenderwindowinteractor->GetShiftKey()==1) ) )
00057                 {
00058                         ok=true;
00059                         InsertPoint(x,y,z);
00060                         size++;
00061                 }
00062                 // Start to Insert Control Points with ClickLeft (Empty contour)
00063                 if ((GetState()==0) && (size==0) && (_easyCreation==true) )
00064                 {
00065                         ok=true;
00066                         SetState(1);
00067                         GetManualContourModel()->SetCloseContour(false);
00068                         AddPoint(x,y,z);
00069                 }
00070                 // Continuie to Insert Control Points with ClickLeft (After being empty the contour)
00071                 if ((GetState()==1) && (_easyCreation==true) )
00072                 {
00073                         ok=true;
00074                         AddPoint(x,y,z);
00075                         _bakIdPoint=GetNumberOfPointsManualContour() - 1;
00076                 }
00077                 // Insert Control Points IF Contour si Selected
00078                 if ((GetState()==0) && GetManualViewBaseContour()->GetPosibleSelected() )
00079                 {
00080                         ok=true;
00081                         InsertPoint(x,y,z);
00082                         _bakIdPoint = GetManualViewBaseContour()->GetIdPoint(x,y,z);
00083                         SetState(6);
00084                 }
00085                 // Chose id of Control Point to be move
00086                 if ( (GetState()==0 || GetState()==6) && (GetManualViewBaseContour()->GetIdPoint(x,y,z)!=-1 ) )
00087                 {
00088                         ok=true;
00089                         _bakIdPoint = GetManualViewBaseContour()->GetIdPoint(x,y,z);
00090                         SetState(5);
00091                 }
00092                 // If nothing selected _state=7
00093                 if ( (GetState()==0) && (GetManualViewBaseContour()->GetIdPoint(x,y,z)==-1 ) )
00094                 {
00095                         //ok=true;
00096                         _bakIdPoint = GetManualViewBaseContour()->GetIdPoint(x,y,z);
00097                         SetState(7);
00098                 }
00099         }else{
00100                 SetPosibleToMove( true );
00101                 GetManualViewBaseContour()->SetSelected( GetManualViewBaseContour()->GetPosibleSelected() );
00102         } // IsEditable
00103         
00104         if ( GetState() == 0 && GetManualViewBaseContour()->GetPosibleSelected() )
00105         {
00106                 SetMoving( true );
00107                 ok=true;
00108                 GetManualViewBaseContour()->InitMove(x,y,z);
00109                 SetState(6);
00110         }
00111         if (ok==true)
00112         {
00113                 GetManualViewBaseContour()->Refresh();
00114         }
00115 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualContourControler::SetEasyCreation ( bool  easyCreation  )  [inherited]

Definition at line 155 of file manualContourControler.cpp.

References manualContourControler::_easyCreation.

Referenced by manualContourControler::CopyAttributesTo().

00156 {
00157         _easyCreation=easyCreation;
00158 }

Here is the caller graph for this function:

bool manualContourControler::GetEasyCreation (  )  [inherited]

Definition at line 160 of file manualContourControler.cpp.

References manualContourControler::_easyCreation.

00161 {
00162         return _easyCreation;
00163 }

void manualContourControler::Configure (  )  [virtual, inherited]

Reimplemented from manualContourBaseControler.

Reimplemented in manualCircleControler, and manualRoiControler.

Definition at line 38 of file manualContourControler.cpp.

00039 {
00040  //     this->_manContModel->SetNumberOfPointsSpline(100);
00041 }

bool manualContourBaseControler::OnLeftButtonDown (  )  [virtual, inherited]

Reimplemented from InteractorStyleMaracas.

Reimplemented in manualContour3DControler.

Definition at line 157 of file manualContourBaseControler.cpp.

References InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), manualContourBaseControler::MouseClickLeft(), and manualContourBaseControler::SetKeyBoardMoving().

00158 {
00159         SetKeyBoardMoving( false );
00160         if ( _vtkInteractorStyleBaseView!=NULL )
00161         {
00162                 int X,Y;
00163                 wxVTKRenderWindowInteractor *wxVTKiren;
00164                 wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor();
00165                 wxVTKiren->GetEventPosition(X,Y);
00166 
00167                 MouseClickLeft(X,Y);
00168         }
00169         return true;
00170 }

Here is the call graph for this function:

bool manualContourBaseControler::OnLeftButtonUp (  )  [virtual, inherited]

Reimplemented from InteractorStyleMaracas.

Definition at line 172 of file manualContourBaseControler.cpp.

References InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), and manualContourBaseControler::MouseReleaseLeft().

00173 {
00174         if ( _vtkInteractorStyleBaseView!=NULL )
00175         {
00176                 int X,Y;
00177                 wxVTKRenderWindowInteractor *wxVTKiren;
00178                 wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor();
00179                 wxVTKiren->GetEventPosition(X,Y);
00180                 MouseReleaseLeft(X,Y);
00181         }
00182         return true;
00183 }

Here is the call graph for this function:

bool manualContourBaseControler::OnMiddleButtonDown (  )  [virtual, inherited]

Reimplemented from InteractorStyleMaracas.

Definition at line 199 of file manualContourBaseControler.cpp.

References InteractorStyleMaracas::_vtkInteractorStyleBaseView, manualContourBaseControler::GetManualViewBaseContour(), vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), manualContourBaseControler::GetZ(), and manualViewBaseContour::InitMove().

00200 {
00201 //      SetKeyBoardMoving( false );
00202         if ( _vtkInteractorStyleBaseView!=NULL )
00203         {
00204                 int X,Y;
00205                 wxVTKRenderWindowInteractor *wxVTKiren;
00206                 wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor();
00207                 wxVTKiren->GetEventPosition(X,Y);
00208                 GetManualViewBaseContour()->InitMove( X, Y,GetZ());
00209         }
00210         return true;
00211 }

Here is the call graph for this function:

bool manualContourBaseControler::OnMiddleButtonUp (  )  [virtual, inherited]

Reimplemented from InteractorStyleMaracas.

Definition at line 213 of file manualContourBaseControler.cpp.

00214 {
00215         return true;
00216 }

bool manualContourBaseControler::OnRightButtonDown (  )  [virtual, inherited]

Reimplemented from InteractorStyleMaracas.

Definition at line 218 of file manualContourBaseControler.cpp.

References InteractorStyleMaracas::_vtkInteractorStyleBaseView, manualContourBaseControler::GetManualContourModel(), vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), manualContourBaseControler::MouseClickRight(), manualContourModel::SetCloseContour(), manualContourBaseControler::SetCompleteCreation(), and manualContourBaseControler::SetKeyBoardMoving().

00219 {
00220         if( _vtkInteractorStyleBaseView!= NULL )
00221         {
00222                 int X,Y;
00223                 wxVTKRenderWindowInteractor *wxVTKiren;
00224                 wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor();
00225                 wxVTKiren->GetEventPosition(X, Y);
00226 
00227                 SetCompleteCreation( true );
00228                 SetKeyBoardMoving( false );
00229                 this->GetManualContourModel()->SetCloseContour(true);
00230                 MouseClickRight(X,Y);
00231         }
00232         return true;
00233 }

Here is the call graph for this function:

bool manualContourBaseControler::OnRightButtonUp (  )  [virtual, inherited]

Reimplemented from InteractorStyleMaracas.

Definition at line 235 of file manualContourBaseControler.cpp.

00236 {
00237         return true;
00238 }

void manualContourBaseControler::SetModelView ( manualContourModel manContModel,
manualViewBaseContour manViewBaseCont 
) [inherited]

Definition at line 240 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_editable, manualContourBaseControler::_manContModel, manualContourBaseControler::_manViewBaseCont, and manualViewBaseContour::SetEditable().

Referenced by wxWidgetMesure2D::ConfigureA(), wxEmptyPanel_3_Widget::ConfigureVTK(), ContourVOIWidget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), wxImageViewerWidget::ConstructVTK(), manualContourContainer::createLumenContour(), manualContourContainer::createWallContour(), wxMaracasImageBrowser02::LoadData(), manualContourContainer::restartLumenContour(), and manualContourContainer::restartWallContour().

00240                                                                                                                      {
00241         _manContModel           =       manContModel;
00242         _manViewBaseCont        =       manViewBaseCont;
00243         _manViewBaseCont->SetEditable( &_editable );
00244 }

Here is the call graph for this function:

Here is the caller graph for this function:

manualContourModel * manualContourBaseControler::GetManualContourModel (  )  [inherited]

Definition at line 246 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_manContModel.

Referenced by manualContourBaseControler::AddPoint(), manualContour3VControler::AddPoint(), manualRoiControler::Configure(), manualRoiControler::InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), manualContourBaseControler::InsertPoint(), manualContour3VControler::InsertPoint(), manualContourBaseControler::Magnet(), manualContourControler::MouseClickLeft(), manualContour3DControler::MouseClickLeft(), manualContourBaseControler::OnRightButtonDown(), manualContourContainer::refreshLumen(), manualContourContainer::refreshWall(), ResetOrientationPlane(), manualContour3DControler::ResetOrientationPlane(), manualContour3VControler::SetPoint(), and manualRoiControler::SetRoi().

00247 {
00248         return _manContModel;
00249 }

Here is the caller graph for this function:

manualViewBaseContour * manualContourBaseControler::GetManualViewBaseContour (  )  [inherited]

Definition at line 251 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_manViewBaseCont.

Referenced by manualContourBaseControler::AddPoint(), manualContour3VControler::AddPoint(), DeleteActualMousePoint(), manualContour3VControler::DeleteActualMousePoint(), manualContour3V3DControler::DeleteActualMousePoint(), manualRoiControler::InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), manualContourBaseControler::InsertPoint(), manualContour3VControler::InsertPoint(), manualContourBaseControler::Magnet(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualContour3DControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), MouseDLeft(), manualContourControler::MouseDLeft(), manualContourBaseControler::MouseDLeft(), manualRoiControler::MouseMove(), manualLineControler::MouseMove(), MouseMove(), manualContourControler::MouseMove(), manualContour3VControler::MouseMove(), manualContour3V3DControler::MouseMove(), manualCircleControler::MouseMove(), manualContour3VControler::MouseMove_Others(), manualContourBaseControler::MouseReleaseLeft(), manualContourBaseControler::OnChar(), manualContourBaseControler::OnMiddleButtonDown(), manualContourContainer::refreshLumen(), manualContourContainer::refreshWall(), manualContourBaseControler::ResetContour(), manualContourBaseControler::SetEditable(), manualContourBaseControler::SetPoint(), manualContour3VControler::SetPoint(), manualContourBaseControler::SetPointX(), manualContourBaseControler::SetPointY(), manualContourBaseControler::SetPointZ(), and manualRoiControler::SetRoi().

00252 {
00253         return _manViewBaseCont;
00254 }

Here is the caller graph for this function:

void manualContourBaseControler::MouseClickRight ( int  x,
int  y 
) [virtual, inherited]

Definition at line 261 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_state, manualContourBaseControler::SetEditable(), and manualContourBaseControler::SetPosibleToMove().

Referenced by wxImageViewerWidget::ExecuteEvent2(), and manualContourBaseControler::OnRightButtonDown().

00262 {
00263 //      if (_state==1)
00264 //      {
00265 //              _state=0;
00266 //      }
00267         SetEditable( false );
00268         SetPosibleToMove( false );
00269         _state = 0;
00270 
00271 //EED 24Avril2009       _state=7;
00272 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualContourBaseControler::MouseReleaseLeft ( int  x,
int  y 
) [virtual, inherited]

Definition at line 274 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_state, manualContourBaseControler::GetIfCompleteCreation(), manualContourBaseControler::GetManualViewBaseContour(), manualContourBaseControler::GetZ(), manualContourBaseControler::IsEditable(), manualViewBaseContour::SelectPosibleContour(), manualContourBaseControler::SetEditable(), manualContourBaseControler::SetMoving(), and manualContourBaseControler::SetPosibleToMove().

Referenced by wxImageViewerWidget::ExecuteEvent2(), and manualContourBaseControler::OnLeftButtonUp().

00275 {
00276         if (_state==5){ _state = 0; }
00277         if (_state==6){ _state = 0; }
00278         if (_state==7){ _state = 0; }
00279         SetMoving( false );
00280         GetManualViewBaseContour()->SelectPosibleContour(x,y,GetZ());
00281         if( GetIfCompleteCreation() && IsEditable() && !GetManualViewBaseContour()->GetPosibleSelected() && (GetManualViewBaseContour()->GetIdPoint(x,y,GetZ())==-1)  )
00282         {
00283                 SetEditable( false );
00284                 SetPosibleToMove( false );
00285         }
00286 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualContourBaseControler::SetState ( int  state  )  [inherited]

Definition at line 306 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_state.

Referenced by manualContourBaseControler::CopyAttributesTo(), manualRoiControler::InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), wxMaracasImageBrowser02::LoadData(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualContourBaseControler::ResetContour(), and wxImageViewerWidget::SetStateManualContour().

00307 {
00308         _state=state;
00309 }

Here is the caller graph for this function:

int manualContourBaseControler::GetState (  )  [inherited]

Definition at line 311 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_state.

Referenced by manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualContour3DControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualRoiControler::MouseMove(), manualLineControler::MouseMove(), manualContourControler::MouseMove(), and manualCircleControler::MouseMove().

00312 {
00313         return _state;
00314 }

Here is the caller graph for this function:

bool manualContourBaseControler::IsEditable (  )  [inherited]

Definition at line 316 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_editable.

Referenced by manualContourBaseControler::Magnet(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualContourControler::MouseDLeft(), manualContourControler::MouseMove(), manualContourBaseControler::MouseReleaseLeft(), and manualContourBaseControler::OnChar().

00317 {
00318         return _editable;
00319 }

Here is the caller graph for this function:

void manualContourBaseControler::SetEditable ( bool  condition  )  [inherited]

Definition at line 321 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_editable, manualContourBaseControler::GetManualViewBaseContour(), manualViewBaseContour::RemoveControlPoints(), and manualViewBaseContour::SetSelected().

Referenced by manualContourBaseControler::CopyAttributesTo(), manualContourBaseControler::MouseClickRight(), and manualContourBaseControler::MouseReleaseLeft().

00322 {
00323         if (GetManualViewBaseContour()!=NULL) {
00324                 if( !condition )
00325                 {
00326                         GetManualViewBaseContour()->RemoveControlPoints();
00327                 }
00328                 GetManualViewBaseContour()->SetSelected( condition );
00329         }
00330         _editable = condition;
00331 }

Here is the call graph for this function:

Here is the caller graph for this function:

bool manualContourBaseControler::GetPosibleToMove (  )  [inherited]

Definition at line 334 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_posibleToMove.

Referenced by manualContourControler::MouseMove().

00335 {
00336         return _posibleToMove;
00337 }

Here is the caller graph for this function:

void manualContourBaseControler::SetPosibleToMove ( bool  condition  )  [inherited]

Definition at line 339 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_posibleToMove.

Referenced by manualContourBaseControler::CopyAttributesTo(), manualContourControler::MouseClickLeft(), manualContourBaseControler::MouseClickRight(), and manualContourBaseControler::MouseReleaseLeft().

00340 {
00341         _posibleToMove = condition;
00342 }

Here is the caller graph for this function:

bool manualContourBaseControler::IsMoving (  )  [inherited]

Definition at line 344 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_moving.

Referenced by manualContourControler::MouseMove().

00345 {
00346         return _moving;
00347 }

Here is the caller graph for this function:

void manualContourBaseControler::SetMoving ( bool  condition  )  [inherited]

Definition at line 349 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_moving.

Referenced by manualContourBaseControler::CopyAttributesTo(), manualContourControler::MouseClickLeft(), and manualContourBaseControler::MouseReleaseLeft().

00350 {
00351         _moving = condition;
00352 }

Here is the caller graph for this function:

void manualContourBaseControler::SetCompleteCreation ( bool  condition  )  [inherited]

Definition at line 354 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_created.

Referenced by manualContourBaseControler::CopyAttributesTo(), and manualContourBaseControler::OnRightButtonDown().

00355 {
00356         _created = condition;
00357 }

Here is the caller graph for this function:

bool manualContourBaseControler::GetIfCompleteCreation (  )  [inherited]

Definition at line 359 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_created.

Referenced by manualContourBaseControler::MouseReleaseLeft().

00360 {
00361         return _created;
00362 }

Here is the caller graph for this function:

void manualContourBaseControler::SetKeyBoardMoving ( bool  condition  )  [inherited]

Definition at line 364 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_keyBoardMoving.

Referenced by manualContourBaseControler::CopyAttributesTo(), manualContourBaseControler::OnChar(), manualContourBaseControler::OnLeftButtonDown(), and manualContourBaseControler::OnRightButtonDown().

00365 {
00366         _keyBoardMoving = condition;
00367 }

Here is the caller graph for this function:

bool manualContourBaseControler::GetKeyBoardMoving (  )  [inherited]

Definition at line 369 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_keyBoardMoving.

Referenced by manualContourBaseControler::OnChar().

00370 {
00371         return _keyBoardMoving;
00372 }

Here is the caller graph for this function:

void manualContourBaseControler::CreateNewManualContour (  )  [inherited]

Definition at line 374 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_manViewBaseCont, and manualViewBaseContour::CreateNewContour().

Referenced by wxWidgetMesure2D::ConfigureA(), wxEmptyPanel_3_Widget::ConfigureVTK(), ContourVOIWidget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), manualContourContainer::createLumenContour(), wxImageViewerWidget::CreateNewManualContour(), manualContourContainer::createWallContour(), wxMaracasImageBrowser02::LoadData(), manualContourContainer::refreshLumen(), manualContourContainer::refreshWall(), manualContourContainer::restartLumenContour(), and manualContourContainer::restartWallContour().

00374                                                        {
00375         _manViewBaseCont->CreateNewContour();
00376 }

Here is the call graph for this function:

Here is the caller graph for this function:

int manualContourBaseControler::GetNumberOfPointsManualContour (  )  [inherited]

Definition at line 378 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_manViewBaseCont, and manualViewBaseContour::GetNumberOfPoints().

Referenced by manualContourControler::MouseClickLeft().

00378                                                                   {
00379         return _manViewBaseCont->GetNumberOfPoints();
00380 }

Here is the call graph for this function:

Here is the caller graph for this function:

int manualContourBaseControler::GetNumberOfPointsSplineManualContour (  )  [inherited]

Definition at line 384 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_manContModel, and manualContourModel::GetNumberOfPointsSpline().

Referenced by manualContourContainer::getNumberOfLumenContourPoints(), wxImageViewerWidget::GetNumberOfPointsSplineManualContour(), and manualContourContainer::getNumberOfWallContourPoints().

00384                                                                         {
00385         //return _manViewBaseCont->GetNumberOfPointsSpline();
00386         return _manContModel->GetNumberOfPointsSpline();
00387 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualContourBaseControler::DeleteContour (  )  [inherited]

Definition at line 398 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_manContModel, manualContourBaseControler::_manViewBaseCont, manualContourModel::DeleteAllPoints(), and manualViewBaseContour::DeleteContour().

Referenced by wxImageViewerWidget::EraseManualContour(), and manualContourBaseControler::ResetContour().

00398                                               {
00399         _manViewBaseCont->DeleteContour();
00400         _manContModel->DeleteAllPoints();
00401 }

Here is the call graph for this function:

Here is the caller graph for this function:

double * manualContourBaseControler::GetVectorPointsXManualContour (  )  [inherited]

Definition at line 390 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_manViewBaseCont, and manualViewBaseContour::GetVectorPointsXManualContour().

Referenced by wxImageViewerWidget::GetVectorPointsXManualContour(), manualContourContainer::getXVectorLumenPoints(), and manualContourContainer::getXVectorWallPoints().

00390                                                                  {
00391         return _manViewBaseCont->GetVectorPointsXManualContour();
00392 }

Here is the call graph for this function:

Here is the caller graph for this function:

double * manualContourBaseControler::GetVectorPointsYManualContour (  )  [inherited]

Definition at line 394 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_manViewBaseCont, and manualViewBaseContour::GetVectorPointsYManualContour().

Referenced by wxImageViewerWidget::GetVectorPointsYManualContour(), manualContourContainer::getYVectorLumenPoints(), and manualContourContainer::getYVectorWallPoints().

00394                                                                  {
00395         return _manViewBaseCont->GetVectorPointsYManualContour();
00396 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualContourBaseControler::SetZ ( int  z  )  [inherited]

Definition at line 440 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_z.

Referenced by wxWidgetMesure2D::ConfigureA(), wxImageViewerWidget::ConstructVTK(), and manualContourBaseControler::CopyAttributesTo().

00441 {
00442         _z=z;
00443 }

Here is the caller graph for this function:

int manualContourBaseControler::GetZ (  )  [virtual, inherited]

Definition at line 445 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_z.

Referenced by DeleteActualMousePoint(), manualContourBaseControler::DeleteActualMousePoint(), manualContour3VControler::DeleteActualMousePoint(), manualContour3V3DControler::DeleteActualMousePoint(), manualRoiControler::InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), manualContourBaseControler::Magnet(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualContourBaseControler::MouseDLeft(), manualRoiControler::MouseMove(), manualLineControler::MouseMove(), MouseMove(), manualContourControler::MouseMove(), manualContour3VControler::MouseMove(), manualContour3V3DControler::MouseMove(), manualCircleControler::MouseMove(), manualContourBaseControler::MouseReleaseLeft(), and manualContourBaseControler::OnMiddleButtonDown().

00446 {
00447         return _z;
00448 }

Here is the caller graph for this function:

void manualContourBaseControler::SetPoint ( int  id,
int  x,
int  y,
int  z 
) [virtual, inherited]

Reimplemented in manualContour3VControler.

Definition at line 486 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_manContModel, manualContourModel::GetManualPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualPoint::SetPoint(), manualViewBaseContour::TransfromCoordViewWorld(), and manualViewBaseContour::UpdateViewPoint().

Referenced by manualRoiControler::MouseMove(), manualLineControler::MouseMove(), manualContourControler::MouseMove(), and manualCircleControler::MouseMove().

00486                                                                        { // virtual
00487         if ((GetManualViewBaseContour()!=NULL) && (id>=0)){
00488                 double xx = x;
00489                 double yy = y;
00490                 double zz = z;
00491                 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz);
00492                 manualPoint             *mp             = _manContModel->GetManualPoint(id);
00493                 mp->SetPoint(xx,yy,zz);
00494                 GetManualViewBaseContour()->UpdateViewPoint(id);
00495         }
00496 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualContourBaseControler::SetPointX ( int  id,
int  x 
) [inherited]

Definition at line 498 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_manContModel, manualContourModel::GetManualPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualPoint::SetPointX(), manualViewBaseContour::TransfromCoordViewWorld(), and manualViewBaseContour::UpdateViewPoint().

Referenced by manualRoiControler::MouseMove().

00498                                                           {
00499         if ((GetManualViewBaseContour()!=NULL) && (id>=0)){
00500                 double xx = x;
00501                 double yy = 0;
00502                 double zz = 0;
00503                 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz);
00504                 manualPoint             *mp             = _manContModel->GetManualPoint(id);
00505                 mp->SetPointX(xx);
00506                 GetManualViewBaseContour()->UpdateViewPoint(id);
00507         }
00508 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualContourBaseControler::SetPointY ( int  id,
int  y 
) [inherited]

Definition at line 510 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_manContModel, manualContourModel::GetManualPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualPoint::SetPointY(), manualViewBaseContour::TransfromCoordViewWorld(), and manualViewBaseContour::UpdateViewPoint().

Referenced by manualRoiControler::MouseMove().

00510                                                           {
00511         if ((GetManualViewBaseContour()!=NULL) && (id>=0)){
00512                 double xx = 0;
00513                 double yy = y;
00514                 double zz = 0;
00515                 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz);
00516                 manualPoint             *mp             = _manContModel->GetManualPoint(id);
00517                 mp->SetPointY(yy);
00518                 GetManualViewBaseContour()->UpdateViewPoint(id);
00519         }
00520 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualContourBaseControler::SetPointZ ( int  id,
int  z 
) [inherited]

Definition at line 522 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_manContModel, manualContourModel::GetManualPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualPoint::SetPointZ(), manualViewBaseContour::TransfromCoordViewWorld(), and manualViewBaseContour::UpdateViewPoint().

00522                                                           {
00523         if ((GetManualViewBaseContour()!=NULL) && (id>=0)){
00524                 double xx = 0;
00525                 double yy = 0;
00526                 double zz = z;
00527                 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz);
00528                 manualPoint             *mp             = _manContModel->GetManualPoint(id);
00529                 mp->SetPointZ(zz);
00530                 GetManualViewBaseContour()->UpdateViewPoint(id);
00531         }
00532 }

Here is the call graph for this function:

void manualContourBaseControler::Magnet ( int  x,
int  y 
) [inherited]

Definition at line 417 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_manViewBaseCont, manualContourBaseControler::_state, manualContourModel::GetIdPoint(), manualViewBaseContour::GetIdPoint(), manualContourBaseControler::GetManualContourModel(), manualContourModel::GetManualPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualContourBaseControler::GetZ(), manualContourBaseControler::IsEditable(), manualPoint::SetPoint(), and manualViewBaseContour::TransfromCoordViewWorld().

Referenced by manualContourBaseControler::OnChar().

00418 {
00419         if( IsEditable())
00420         {
00421                 /*int id= */ _manViewBaseCont->GetIdPoint(x,y,GetZ()); // JPRx
00422                 if (GetManualContourModel()!=NULL){
00423                         double  xx      = x;
00424                         double  yy      = y;
00425                         double  zz      = GetZ();
00426                         GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz);
00427                         int                     id      = GetManualContourModel()->GetIdPoint(xx,yy,zz,32000,-1);
00428                         if (id!=-1)
00429                         {
00430                                 manualPoint     *mp     = GetManualContourModel()->GetManualPoint(id);
00431                                 mp->SetPoint(xx,yy,zz);
00432                         }
00433         //              GetManualViewBaseContour()->UpdateViewPoint(id);
00434                 }
00435                 _state = 0;
00436         }
00437 }

Here is the call graph for this function:

Here is the caller graph for this function:

bool InteractorStyleMaracas::OnRightDClick (  )  [virtual, inherited]

Definition at line 87 of file InteractorStyleMaracas.cxx.

Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().

00088 {
00089         return true;
00090 }

Here is the caller graph for this function:

bool InteractorStyleMaracas::OnMiddleDClick (  )  [virtual, inherited]

Definition at line 72 of file InteractorStyleMaracas.cxx.

00073 {
00074         return true;
00075 }

bool InteractorStyleMaracas::OnMouseWheel (  )  [virtual, inherited]

Definition at line 92 of file InteractorStyleMaracas.cxx.

Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().

00093 {
00094         return true;
00095 }

Here is the caller graph for this function:

void InteractorStyleMaracas::SetVtkInteractorStyleBaseView ( vtkInteractorStyleBaseView _vtkInteractorStyleBaseView  )  [inherited]

Definition at line 99 of file InteractorStyleMaracas.cxx.

References InteractorStyleMaracas::_vtkInteractorStyleBaseView.

Referenced by vtkInteractorStyleBaseView::AddInteractorStyleMaracas(), and vtkInteractorStyleBaseView::InsertInteractorStyleMaracas().

00100 {
00101         _vtkInteractorStyleBaseView = vtkInteractorStyleBaseView;
00102 }

Here is the caller graph for this function:

void InteractorStyleMaracas::RemoveVtkInteractorStyleBaseView (  )  [inherited]

Definition at line 106 of file InteractorStyleMaracas.cxx.

References InteractorStyleMaracas::_vtkInteractorStyleBaseView.

Referenced by vtkInteractorStyleBaseView::RemoveInteractorStyleMaracas().

00107 {
00108         _vtkInteractorStyleBaseView = NULL;
00109 }

Here is the caller graph for this function:

void InteractorStyleMaracas::SetActive ( bool  active  )  [inherited]

Definition at line 111 of file InteractorStyleMaracas.cxx.

References InteractorStyleMaracas::_active.

Referenced by wxWidgetMesure2D::ActiveMessureTool(), wxWidgetMesure2D::ConfigureA(), wxEmptyPanel_3_Widget::ConfigureVTK(), ContourVOIWidget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), wxImageViewerWidget::ConstructVTK(), InteractorStyleMaracas::CopyAttributesTo(), manualContourContainer::createLumenContour(), wxImageViewerWidget::CreateNewManualContour(), manualContourContainer::createWallContour(), wxMaracasImageBrowser02::LoadData(), wxMaracasImageBrowser02::OnBtnResetRoi(), manualContourContainer::refreshLumen(), manualContourContainer::refreshWall(), manualContourContainer::restartLumenContour(), manualContourContainer::restartWallContour(), vtkInteractorStyleBaseView::SetActiveAllInteractors(), and wxMaracasImageBrowser02::SetROI().

00112 {
00113         _active = active;
00114 }

Here is the caller graph for this function:

bool InteractorStyleMaracas::GetActive (  )  [inherited]

Definition at line 116 of file InteractorStyleMaracas.cxx.

References InteractorStyleMaracas::_active.

Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().

00117 {
00118         return _active;
00119 }

Here is the caller graph for this function:


Member Data Documentation

bool manualContourPerpPlaneControler::_flagMouseMove [private]

Definition at line 40 of file manualContourPerpPlaneControler.h.

Referenced by manualContourPerpPlaneControler(), MouseMove(), and OnMouseMove().

bool manualContourPerpPlaneControler::_flagMouseDClick [private]

Definition at line 41 of file manualContourPerpPlaneControler.h.

Referenced by MouseDLeft(), and OnLeftDClick().

InteractorStyleMaracas* manualContourPerpPlaneControler::_vtkinteractorstyleplane2D [private]

Definition at line 42 of file manualContourPerpPlaneControler.h.

Referenced by GetVtkInteractorStylePlane2D(), MouseDLeft(), and SetVtkInteractorStylePlane2D().

vtkMPRBaseData* manualContourPerpPlaneControler::_vtkmprbasedata [protected]

Definition at line 45 of file manualContourPerpPlaneControler.h.

Referenced by GetVtkMPRBaseData(), ResetOrientationPlane(), and SetVtkMPRBaseData().

manualContour3VControler* manualContourPerpPlaneControler::_manualcontour3Vcontroler [protected]

Definition at line 46 of file manualContourPerpPlaneControler.h.

Referenced by AddPoint(), DeleteActualMousePoint(), GetManualContour3VControler(), InsertPoint(), MouseMove(), OnChar(), ResetContour(), and SetManualContour3VControler().

int manualContourControler::_bakIdPoint [protected, inherited]

Definition at line 28 of file manualContourControler.h.

Referenced by manualContourControler::MouseClickLeft(), and manualContourControler::MouseMove().

vtkInteractorStyleBaseView* InteractorStyleMaracas::_vtkInteractorStyleBaseView [protected, inherited]

Definition at line 45 of file InteractorStyleMaracas.h.

Referenced by manualContour3VControler::AddPoint_Others(), manualContour3VControler::DeleteActualMousePoint_Others(), manualContour3VControler::InsertPoint_Others(), InteractorStyleMaracas::InteractorStyleMaracas(), manualContourControler::MouseClickLeft(), manualContour3DControler::MouseClickLeft(), MouseDLeft(), manualContourControler::MouseDLeft(), MouseMove(), manualContourControler::MouseMove(), manualContour3V3DControler::MouseMove(), manualContour3VControler::MouseMove_Others(), manualContourBaseControler::OnChar(), manualContour3DControler::OnChar(), manualContour3VControler::OnChar_Others(), vtkInteractorStyleSphere::OnLeftButtonDown(), vtkInteractorStylePlane2D::OnLeftButtonDown(), vtkInteractorStyleMPRView::OnLeftButtonDown(), manualContourBaseControler::OnLeftButtonDown(), manualContour3DControler::OnLeftButtonDown(), vtkInteractorStyleSphere::OnLeftButtonUp(), vtkInteractorStylePlane2D::OnLeftButtonUp(), manualContourBaseControler::OnLeftButtonUp(), vtkInteractorStylePlane2D::OnLeftDClick(), vtkInteractorStyleMPRView::OnLeftDClick(), manualContourBaseControler::OnLeftDClick(), manualInteractorWindowLevel::OnMiddleButtonDown(), manualContourBaseControler::OnMiddleButtonDown(), vtkInteractorStyleSphere::OnMouseMove(), vtkInteractorStylePlane2D::OnMouseMove(), vtkInteractorStyleMPRView::OnMouseMove(), vtkInteractorScrollZ::OnMouseMove(), vtkInfoTextImageInteractorPlane2D::OnMouseMove(), vtkInfoTextImageInteractor::OnMouseMove(), manualInteractorWindowLevel::OnMouseMove(), manualContourBaseControler::OnMouseMove(), vtkInteractorStyleSphere::OnRightButtonDown(), vtkInteractorScrollZ::OnRightButtonDown(), manualContourBaseControler::OnRightButtonDown(), vtkInteractorStyleSphere::OnRightButtonUp(), InteractorStyleMaracas::RemoveVtkInteractorStyleBaseView(), vtkInteractorStyle3DView::SelectMarchibCubePoint(), and InteractorStyleMaracas::SetVtkInteractorStyleBaseView().


The documentation for this class was generated from the following files:
Generated on Wed Jul 29 16:35:49 2009 for creaMaracasVisu_lib by  doxygen 1.5.3