manualContour3DControler Class Reference

---------------------------------------------------------------------------- More...

#include <manualContour3DControler.h>

Inheritance diagram for manualContour3DControler:

Inheritance graph
[legend]
Collaboration diagram for manualContour3DControler:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 manualContour3DControler ()
virtual ~manualContour3DControler ()
virtual manualContour3DControlerClone ()
void CopyAttributesTo (manualContour3DControler *cloneObject)
virtual bool OnLeftButtonDown ()
virtual bool OnChar ()
virtual void InsertPoint (int x, int y, int z)
virtual void MouseClickLeft (int x, int y)
void ResetOrientationPlane ()
vtkMPRBaseDataGetVtkMPRBaseData ()
void SetVtkMPRBaseData (vtkMPRBaseData *vtkmprbasedata)
void CopyAttributesTo (manualContourControler *cloneObject)
void CopyAttributesTo (manualContourBaseControler *cloneObject)
void CopyAttributesTo (InteractorStyleMaracas *cloneObject)
virtual void MouseMove (int x, int y)
virtual void MouseDLeft (int x, int y)
void SetEasyCreation (bool easyCreation)
bool GetEasyCreation ()
virtual void Configure ()
virtual bool OnMouseMove ()
virtual bool OnLeftButtonUp ()
virtual bool OnLeftDClick ()
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 ()
virtual void DeleteActualMousePoint (int x, int y)
double * GetVectorPointsXManualContour ()
double * GetVectorPointsYManualContour ()
void SetZ (int z)
virtual int GetZ ()
virtual void AddPoint (int x, int y, int z)
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 void ResetContour ()
virtual bool OnRightDClick ()
virtual bool OnMiddleDClick ()
virtual bool OnMouseWheel ()
void SetVtkInteractorStyleBaseView (vtkInteractorStyleBaseView *_vtkInteractorStyleBaseView)
void RemoveVtkInteractorStyleBaseView ()
void SetActive (bool active)
bool GetActive ()

Protected Attributes

int _bakIdPoint
vtkInteractorStyleBaseView_vtkInteractorStyleBaseView

Private Attributes

vtkMPRBaseData_vtkmprbasedata


Detailed Description

----------------------------------------------------------------------------

Definition at line 11 of file manualContour3DControler.h.


Constructor & Destructor Documentation

manualContour3DControler::manualContour3DControler (  ) 

Definition at line 8 of file manualContour3DControler.cpp.

Referenced by Clone().

00009 {
00010 }

Here is the caller graph for this function:

manualContour3DControler::~manualContour3DControler (  )  [virtual]

Definition at line 12 of file manualContour3DControler.cpp.

00013 {
00014 }


Member Function Documentation

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

manualContour3DControler * manualContour3DControler::Clone (  )  [virtual]

Reimplemented from manualContourControler.

Reimplemented in manualContour3V3DControler.

Definition at line 16 of file manualContour3DControler.cpp.

References CopyAttributesTo(), and manualContour3DControler().

00017 {
00018         manualContour3DControler * clone = new manualContour3DControler();
00019         CopyAttributesTo(clone);
00020         return clone;
00021 }

Here is the call graph for this function:

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 }

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

Definition at line 27 of file InteractorStyleMaracas.cxx.

References InteractorStyleMaracas::GetActive(), and InteractorStyleMaracas::SetActive().

Referenced by InteractorStyleMaracas::Clone().

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 manualContourBaseControler::CopyAttributesTo ( manualContourBaseControler cloneObject  )  [inherited]

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

Definition at line 30 of file manualContourControler.cpp.

References manualContourControler::GetEasyCreation(), and manualContourControler::SetEasyCreation().

Referenced by manualContourControler::Clone().

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 manualContour3DControler::CopyAttributesTo ( manualContour3DControler cloneObject  ) 

Definition at line 24 of file manualContour3DControler.cpp.

References GetVtkMPRBaseData(), and SetVtkMPRBaseData().

Referenced by Clone().

00025 {
00026         // Fathers object
00027         manualContourControler::CopyAttributesTo(cloneObject);
00028 
00029         cloneObject->SetVtkMPRBaseData( this->GetVtkMPRBaseData() );
00030 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualContourBaseControler::CreateNewManualContour (  )  [inherited]

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

void manualContourBaseControler::DeleteContour (  )  [inherited]

bool InteractorStyleMaracas::GetActive (  )  [inherited]

Definition at line 116 of file InteractorStyleMaracas.cxx.

References InteractorStyleMaracas::_active.

Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas(), and InteractorStyleMaracas::CopyAttributesTo().

00117 {
00118         return _active;
00119 }

Here is the caller graph for this function:

bool manualContourControler::GetEasyCreation (  )  [inherited]

Definition at line 160 of file manualContourControler.cpp.

References manualContourControler::_easyCreation.

Referenced by manualContourControler::CopyAttributesTo().

00161 {
00162         return _easyCreation;
00163 }

Here is the caller graph for this function:

bool manualContourBaseControler::GetIfCompleteCreation (  )  [inherited]

Definition at line 358 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_created.

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

00359 {
00360         return _created;
00361 }

Here is the caller graph for this function:

bool manualContourBaseControler::GetKeyBoardMoving (  )  [inherited]

Definition at line 368 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_keyBoardMoving.

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

00369 {
00370         return _keyBoardMoving;
00371 }

Here is the caller graph for this function:

manualContourModel * manualContourBaseControler::GetManualContourModel (  )  [inherited]

manualViewBaseContour * manualContourBaseControler::GetManualViewBaseContour (  )  [inherited]

Definition at line 250 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_manViewBaseCont.

Referenced by manualContourBaseControler::AddPoint(), manualContour3VControler::AddPoint(), manualContourPerpPlaneControler::DeleteActualMousePoint(), manualContour3VControler::DeleteActualMousePoint(), manualContour3V3DControler::DeleteActualMousePoint(), manualRoiControler::InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), manualContourBaseControler::InsertPoint(), manualContour3VControler::InsertPoint(), manualContourBaseControler::Magnet(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualContourPerpPlaneControler::MouseDLeft(), manualContourControler::MouseDLeft(), manualContourBaseControler::MouseDLeft(), manualRoiControler::MouseMove(), manualLineControler::MouseMove(), manualContourPerpPlaneControler::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().

00251 {
00252         return _manViewBaseCont;
00253 }

Here is the caller graph for this function:

int manualContourBaseControler::GetNumberOfPointsManualContour (  )  [inherited]

Definition at line 377 of file manualContourBaseControler.cpp.

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

Referenced by manualContourControler::MouseClickLeft().

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

Here is the call graph for this function:

Here is the caller graph for this function:

int manualContourBaseControler::GetNumberOfPointsSplineManualContour (  )  [inherited]

Definition at line 383 of file manualContourBaseControler.cpp.

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

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

bool manualContourBaseControler::GetPosibleToMove (  )  [inherited]

Definition at line 333 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_posibleToMove.

Referenced by manualContourBaseControler::CopyAttributesTo(), and manualContourControler::MouseMove().

00334 {
00335         return _posibleToMove;
00336 }

Here is the caller graph for this function:

int manualContourBaseControler::GetState (  )  [inherited]

double * manualContourBaseControler::GetVectorPointsXManualContour (  )  [inherited]

double * manualContourBaseControler::GetVectorPointsYManualContour (  )  [inherited]

vtkMPRBaseData * manualContour3DControler::GetVtkMPRBaseData (  ) 

Definition at line 92 of file manualContour3DControler.cpp.

References _vtkmprbasedata.

Referenced by CopyAttributesTo(), MouseClickLeft(), and ResetOrientationPlane().

00093 {
00094         return _vtkmprbasedata;
00095 }

Here is the caller graph for this function:

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

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

Reimplemented from manualContourBaseControler.

Reimplemented in manualContour3V3DControler.

Definition at line 98 of file manualContour3DControler.cpp.

References ResetOrientationPlane().

00099 {
00100         manualContourControler::InsertPoint(  x,  y,  z );
00101         ResetOrientationPlane();
00102 }

Here is the call graph for this function:

bool manualContourBaseControler::IsEditable (  )  [inherited]

bool manualContourBaseControler::IsMoving (  )  [inherited]

Definition at line 343 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_moving.

Referenced by manualContourBaseControler::CopyAttributesTo(), and manualContourControler::MouseMove().

00344 {
00345         return _moving;
00346 }

Here is the caller graph for this function:

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

Definition at line 416 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().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Definition at line 260 of file manualContourBaseControler.cpp.

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

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Reimplemented from manualContourBaseControler.

Reimplemented in manualCircleControler, manualContour3V3DControler, manualContour3VControler, manualContourPerpPlaneControler, manualLineControler, and manualRoiControler.

Definition at line 117 of file manualContourControler.cpp.

References manualContourControler::_bakIdPoint, InteractorStyleMaracas::_vtkInteractorStyleBaseView, manualContourBaseControler::GetManualViewBaseContour(), manualContourBaseControler::GetPosibleToMove(), manualContourBaseControler::GetState(), manualContourBaseControler::GetZ(), manualContourBaseControler::IsEditable(), manualContourBaseControler::IsMoving(), manualViewBaseContour::MoveContour(), manualViewBaseContour::Refresh(), manualViewBaseContour::RemoveControlPoints(), manualViewBaseContour::SelectPosibleContour(), manualViewBaseContour::SelectPosiblePoint(), manualContourBaseControler::SetPoint(), and vtkInteractorStyleBaseView::SetRefresh_waiting().

Referenced by wxImageViewerWidget::ExecuteEvent2().

00118 {
00119         int z=GetZ();
00120         GetManualViewBaseContour()->SelectPosiblePoint(x,y,z);
00121         GetManualViewBaseContour()->SelectPosibleContour(x,y,z);
00122         if (GetState()==1){     SetPoint( _bakIdPoint , x , y ,z); }
00123         if (GetState()==5){     SetPoint( _bakIdPoint , x , y ,z); }
00124         if ( GetState()==6 && !IsEditable() && GetPosibleToMove() &&IsMoving() )
00125         {
00126                 GetManualViewBaseContour()->MoveContour(x,y,z);
00127         }
00128         if (GetState()!=7 || GetManualViewBaseContour()->GetPosibleSelected() ){
00129                 GetManualViewBaseContour()->Refresh();
00130                 this->_vtkInteractorStyleBaseView->SetRefresh_waiting();
00131         }
00132         if (!IsEditable())
00133         {
00134                 GetManualViewBaseContour()->RemoveControlPoints();
00135 //              GetManualViewBaseContour()->RemoveTextActor();
00136                 GetManualViewBaseContour()->Refresh();
00137                 this->_vtkInteractorStyleBaseView->SetRefresh_waiting();
00138         }
00139 
00140 }

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]

bool manualContour3DControler::OnChar (  )  [virtual]

Reimplemented from manualContourBaseControler.

Reimplemented in manualContour3V3DControler.

Definition at line 73 of file manualContour3DControler.cpp.

References InteractorStyleMaracas::_vtkInteractorStyleBaseView, ResetOrientationPlane(), and vtkInteractorStyleBaseView::SetRefresh_waiting().

Referenced by manualContour3V3DControler::OnChar().

00074 {
00075         bool ok=true;
00076         manualContourControler::OnChar();
00077         char keyCode = _vtkInteractorStyleBaseView->GetInteractor()-> GetKeyCode();
00078         if (keyCode==32){
00079                 ok=false;
00080                 ResetOrientationPlane();
00081                 this->_vtkInteractorStyleBaseView->SetRefresh_waiting();
00082         }
00083         return ok;
00084 }

Here is the call graph for this function:

Here is the caller graph for this function:

bool manualContour3DControler::OnLeftButtonDown (  )  [virtual]

Reimplemented from manualContourBaseControler.

Definition at line 33 of file manualContour3DControler.cpp.

References InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk3DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), and MouseClickLeft().

00034 {
00035         int X,Y;
00036         wxVTKRenderWindowInteractor *wxVTKiren;
00037         wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk3DBaseView()->GetWxVTKRenderWindowInteractor();
00038         wxVTKiren->GetEventPosition(X,Y);
00039         MouseClickLeft(X,Y);
00040         return true;
00041 }

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::OnLeftDClick (  )  [virtual, inherited]

Reimplemented from InteractorStyleMaracas.

Reimplemented in manualContourPerpPlaneControler.

Definition at line 185 of file manualContourBaseControler.cpp.

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

00186 {
00187         if ( _vtkInteractorStyleBaseView!=NULL )
00188         {
00189                 int X,Y;
00190                 wxVTKRenderWindowInteractor *wxVTKiren;
00191                 wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor();
00192                 wxVTKiren->GetEventPosition(X,Y);
00193 
00194                 this->MouseDLeft(X,Y);
00195         }
00196         return true;
00197 }

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 InteractorStyleMaracas::OnMiddleDClick (  )  [virtual, inherited]

Definition at line 72 of file InteractorStyleMaracas.cxx.

00073 {
00074         return true;
00075 }

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

Reimplemented from InteractorStyleMaracas.

Reimplemented in manualContourPerpPlaneControler.

Definition at line 138 of file manualContourBaseControler.cpp.

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

00139 {
00140         
00141         if ( _vtkInteractorStyleBaseView!=NULL)
00142         {
00143                 int X,Y;
00144                 wxVTKRenderWindowInteractor *_wxVTKiren;
00145                 _wxVTKiren= _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor();
00146                 _wxVTKiren->GetEventPosition( X , Y );
00147 
00148 
00149                 if ( (_vtkInteractorStyleBaseView->GetInteractor()->GetControlKey()==0) &&
00150                         (_vtkInteractorStyleBaseView->GetInteractor()->GetShiftKey()==0) ) {
00151                         MouseMove(X,Y);
00152                 }
00153         }
00154         return true;
00155 }

Here is the call graph for this function:

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:

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

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

Reimplemented from InteractorStyleMaracas.

Definition at line 234 of file manualContourBaseControler.cpp.

00235 {
00236         return true;
00237 }

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:

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 manualContourBaseControler::ResetContour (  )  [virtual, inherited]

void manualContour3DControler::ResetOrientationPlane (  ) 

Definition at line 43 of file manualContour3DControler.cpp.

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

Referenced by InsertPoint(), MouseClickLeft(), and OnChar().

00044 {
00045         double p[3],rp[3],rn[3];
00046         p[0] = this->GetVtkMPRBaseData()->GetX(  );
00047         p[1] = this->GetVtkMPRBaseData()->GetY(  );
00048         p[2] = this->GetVtkMPRBaseData()->GetZ(  );
00049         this->GetManualContourModel()->GetNearestPointAndNormal(p,rp,rn);
00050         this->GetVtkMPRBaseData()->SetNormal(rn[0],rn[1],rn[2]);
00051 }

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Definition at line 353 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_created.

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

00354 {
00355         _created = condition;
00356 }

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:

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

Definition at line 320 of file manualContourBaseControler.cpp.

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

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

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

Definition at line 348 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_moving.

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

00349 {
00350         _moving = condition;
00351 }

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 485 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().

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

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 497 of file manualContourBaseControler.cpp.

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

Referenced by manualRoiControler::MouseMove().

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

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 509 of file manualContourBaseControler.cpp.

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

Referenced by manualRoiControler::MouseMove().

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

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 521 of file manualContourBaseControler.cpp.

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

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

Here is the call graph for this function:

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

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

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 manualContour3DControler::SetVtkMPRBaseData ( vtkMPRBaseData vtkmprbasedata  ) 

Definition at line 87 of file manualContour3DControler.cpp.

References _vtkmprbasedata.

Referenced by CopyAttributesTo().

00088 {
00089         _vtkmprbasedata=vtkmprbasedata;
00090 }

Here is the caller graph for this function:

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

Definition at line 439 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_z.

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

00440 {
00441         _z=z;
00442 }

Here is the caller graph for this function:


Member Data Documentation

int manualContourControler::_bakIdPoint [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(), MouseClickLeft(), manualContourPerpPlaneControler::MouseDLeft(), manualContourControler::MouseDLeft(), manualContourPerpPlaneControler::MouseMove(), manualContourControler::MouseMove(), manualContour3V3DControler::MouseMove(), manualContour3VControler::MouseMove_Others(), manualContourBaseControler::OnChar(), OnChar(), manualContour3VControler::OnChar_Others(), vtkInteractorStyleSphere::OnLeftButtonDown(), vtkInteractorStylePlane2D::OnLeftButtonDown(), vtkInteractorStyleMPRView::OnLeftButtonDown(), manualContourBaseControler::OnLeftButtonDown(), 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().

Definition at line 31 of file manualContour3DControler.h.

Referenced by GetVtkMPRBaseData(), and SetVtkMPRBaseData().


The documentation for this class was generated from the following files:

Generated on Fri Jun 12 00:08:38 2009 for creaMaracasVisu by  doxygen 1.5.7.1