manualContour3V3DControler Class Reference

#include <manualContour3V3DControler.h>

Inheritance diagram for manualContour3V3DControler:
Inheritance graph
[legend]
Collaboration diagram for manualContour3V3DControler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 manualContour3V3DControler ()
virtual ~manualContour3V3DControler ()
virtual
manualContour3V3DControler
Clone ()
void CopyAttributesTo (manualContour3V3DControler *cloneObject)
void SetManualContour3VControler (manualContour3VControler *manualcontour3Vcontroler)
manualContour3VControlerGetManualContour3VControler ()
virtual bool OnChar ()
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 ()
virtual bool OnLeftButtonDown ()
virtual void MouseClickLeft (int x, int y)
void ResetOrientationPlane ()
vtkMPRBaseDataGetVtkMPRBaseData ()
void SetVtkMPRBaseData (vtkMPRBaseData *vtkmprbasedata)
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 (manualBaseModel *manContModel, manualViewBaseContour *manViewBaseCont)
manualBaseModelGetManualContourModel ()
manualViewBaseContourGetManualViewBaseContour ()
virtual void MouseClickRight (int x, int y)
virtual void MouseReleaseLeft (int x, int y)
void SetState (int state)
int GetState ()
bool IsEditable ()
virtual 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

int _bakIdPoint
manualViewBaseContour_manViewBaseCont
manualBaseModel_manContModel
int _z
int _state
bool _editable
bool _posibleToMove
bool _moving
bool _created
bool _keyBoardMoving
vtkInteractorStyleBaseView_vtkInteractorStyleBaseView

Private Attributes

manualContour3VControler_manualcontour3Vcontroler

Detailed Description

Definition at line 11 of file manualContour3V3DControler.h.


Constructor & Destructor Documentation

manualContour3V3DControler::manualContour3V3DControler (  ) 

Definition at line 8 of file manualContour3V3DControler.cpp.

Referenced by Clone().

00009 {
00010 }

Here is the caller graph for this function:

manualContour3V3DControler::~manualContour3V3DControler (  )  [virtual]

Definition at line 12 of file manualContour3V3DControler.cpp.

00013 {
00014 }


Member Function Documentation

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

Reimplemented from manualContourBaseControler.

Definition at line 39 of file manualContour3V3DControler.cpp.

References _manualcontour3Vcontroler, and manualContour3VControler::AddPoint_Others().

Here is the call graph for this function:

manualContour3V3DControler * manualContour3V3DControler::Clone (  )  [virtual]

Reimplemented from manualContour3DControler.

Definition at line 17 of file manualContour3V3DControler.cpp.

References CopyAttributesTo(), and manualContour3V3DControler().

00018 {
00019         manualContour3V3DControler * clone = new manualContour3V3DControler();
00020         CopyAttributesTo(clone);
00021         return clone;
00022 }

Here is the call graph for this function:

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

Reimplemented from manualContourBaseControler.

Reimplemented in manualCircleControler, manualRoiControler, and manualRotationToolControler.

Definition at line 38 of file manualContourControler.cpp.

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

void manualContour3V3DControler::CopyAttributesTo ( manualContour3V3DControler cloneObject  ) 

Reimplemented from manualContour3DControler.

Definition at line 25 of file manualContour3V3DControler.cpp.

References GetManualContour3VControler(), and SetManualContour3VControler().

Referenced by Clone().

00026 {
00027         // Fathers object
00028         manualContour3DControler::CopyAttributesTo(cloneObject);
00029 
00030         cloneObject->SetManualContour3VControler( this->GetManualContour3VControler() );
00031 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualContourBaseControler::CreateNewManualContour (  )  [inherited]
void manualContour3V3DControler::DeleteActualMousePoint ( int  x,
int  y 
) [virtual]
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 362 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_created.

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

00363 {
00364         return _created;
00365 }

Here is the caller graph for this function:

bool manualContourBaseControler::GetKeyBoardMoving (  )  [inherited]

Definition at line 372 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_keyBoardMoving.

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

00373 {
00374         return _keyBoardMoving;
00375 }

Here is the caller graph for this function:

manualContour3VControler * manualContour3V3DControler::GetManualContour3VControler (  ) 

Definition at line 67 of file manualContour3V3DControler.cpp.

References _manualcontour3Vcontroler.

Referenced by CopyAttributesTo().

00068 {
00069         return _manualcontour3Vcontroler;
00070 }

Here is the caller graph for this function:

manualBaseModel * manualContourBaseControler::GetManualContourModel (  )  [inherited]
manualViewBaseContour * manualContourBaseControler::GetManualViewBaseContour (  )  [inherited]

Definition at line 251 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_manViewBaseCont.

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

int manualContourBaseControler::GetNumberOfPointsManualContour (  )  [inherited]

Definition at line 381 of file manualContourBaseControler.cpp.

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

Referenced by manualContourControler::MouseClickLeft().

00381                                                                   {
00382         return _manViewBaseCont->GetNumberOfPoints();
00383 }

Here is the call graph for this function:

Here is the caller graph for this function:

int manualContourBaseControler::GetNumberOfPointsSplineManualContour (  )  [inherited]

Definition at line 387 of file manualContourBaseControler.cpp.

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

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

00387                                                                         {
00388         //return _manViewBaseCont->GetNumberOfPointsSpline();
00389         return _manContModel->GetNumberOfPointsSpline();
00390 }

Here is the call graph for this function:

Here is the caller graph for this function:

bool manualContourBaseControler::GetPosibleToMove (  )  [inherited]

Definition at line 337 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_posibleToMove.

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

00338 {
00339         return _posibleToMove;
00340 }

Here is the caller graph for this function:

int manualContourBaseControler::GetState (  )  [inherited]
double * manualContourBaseControler::GetVectorPointsXManualContour (  )  [inherited]
double * manualContourBaseControler::GetVectorPointsYManualContour (  )  [inherited]
vtkMPRBaseData * manualContour3DControler::GetVtkMPRBaseData (  )  [inherited]
int manualContourBaseControler::GetZ (  )  [virtual, inherited]
void manualContour3V3DControler::InsertPoint ( int  x,
int  y,
int  z 
) [virtual]

Reimplemented from manualContour3DControler.

Definition at line 33 of file manualContour3V3DControler.cpp.

References _manualcontour3Vcontroler, and manualContour3VControler::InsertPoint_Others().

Here is the call graph for this function:

bool manualContourBaseControler::IsEditable (  )  [inherited]
bool manualContourBaseControler::IsMoving (  )  [inherited]

Definition at line 347 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_moving.

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

00348 {
00349         return _moving;
00350 }

Here is the caller graph for this function:

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

Definition at line 420 of file manualContourBaseControler.cpp.

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

Referenced by manualContourBaseControler::OnChar().

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

Here is the call graph for this function:

Here is the caller graph for this function:

void manualContour3DControler::MouseClickLeft ( int  x,
int  y 
) [virtual, inherited]
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 manualContourControler::MouseDLeft ( int  x,
int  y 
) [virtual, inherited]
void manualContour3V3DControler::MouseMove ( int  x,
int  y 
) [virtual]
void manualContourBaseControler::MouseReleaseLeft ( int  x,
int  y 
) [virtual, inherited]
bool manualContour3V3DControler::OnChar (  )  [virtual]

Reimplemented from manualContour3DControler.

Definition at line 72 of file manualContour3V3DControler.cpp.

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

00073 {
00074         if (manualContour3DControler::OnChar()==false )
00075         {
00076                 _manualcontour3Vcontroler->OnChar_Others();
00077         }
00078         return true;
00079 }

Here is the call graph for this function:

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

Reimplemented from manualContourBaseControler.

Definition at line 33 of file manualContour3DControler.cpp.

References InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk3DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), and manualContour3DControler::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 235 of file manualContourBaseControler.cpp.

00236 {
00237         return true;
00238 }

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 manualContour3V3DControler::ResetContour (  )  [virtual]

Reimplemented from manualContourBaseControler.

Definition at line 82 of file manualContour3V3DControler.cpp.

References _manualcontour3Vcontroler, and manualContour3VControler::ResetContour_Others().

Here is the call graph for this function:

void manualContour3DControler::ResetOrientationPlane (  )  [inherited]

Definition at line 43 of file manualContour3DControler.cpp.

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

Referenced by manualContour3DControler::InsertPoint(), manualContour3DControler::MouseClickLeft(), and manualContour3DControler::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 357 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_created.

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

00358 {
00359         _created = condition;
00360 }

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

Definition at line 324 of file manualContourBaseControler.cpp.

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

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

00325 {
00326         if (GetManualViewBaseContour()!=NULL) {
00327                 if( !condition )
00328                 {
00329                         GetManualViewBaseContour()->RemoveControlPoints();
00330                 }
00331                 GetManualViewBaseContour()->SetSelected( condition );
00332         }
00333         _editable = condition;
00334 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualContourBaseControler::SetKeyBoardMoving ( bool  condition  )  [inherited]
void manualContour3V3DControler::SetManualContour3VControler ( manualContour3VControler manualcontour3Vcontroler  ) 

Definition at line 62 of file manualContour3V3DControler.cpp.

References _manualcontour3Vcontroler.

Referenced by CopyAttributesTo().

00063 {
00064         _manualcontour3Vcontroler = manualcontour3Vcontroler;
00065 }

Here is the caller graph for this function:

void manualContourBaseControler::SetModelView ( manualBaseModel manContModel,
manualViewBaseContour manViewBaseCont 
) [inherited]
void manualContourBaseControler::SetMoving ( bool  condition  )  [inherited]

Definition at line 352 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_moving.

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

00353 {
00354         _moving = condition;
00355 }

Here is the caller graph for this function:

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

Definition at line 501 of file manualContourBaseControler.cpp.

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

Referenced by manualRoiControler::MouseMove().

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

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

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

Referenced by manualRoiControler::MouseMove().

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

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

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

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

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  )  [inherited]

Definition at line 87 of file manualContour3DControler.cpp.

References manualContour3DControler::_vtkmprbasedata.

Referenced by manualContour3DControler::CopyAttributesTo().

00088 {
00089         _vtkmprbasedata=vtkmprbasedata;
00090 }

Here is the caller graph for this function:

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

Definition at line 443 of file manualContourBaseControler.cpp.

References manualContourBaseControler::_z.

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

00444 {
00445         _z=z;
00446 }

Here is the caller graph for this function:


Member Data Documentation

int manualContourControler::_bakIdPoint [protected, inherited]
bool manualContourBaseControler::_created [protected, inherited]
bool manualContourBaseControler::_editable [protected, inherited]
bool manualContourBaseControler::_keyBoardMoving [protected, inherited]
bool manualContourBaseControler::_moving [protected, inherited]
bool manualContourBaseControler::_posibleToMove [protected, inherited]
int manualContourBaseControler::_state [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(), manualContourPerpPlaneControler::MouseDLeft(), manualContourControler::MouseDLeft(), manualContourPerpPlaneControler::MouseMove(), manualContourControler::MouseMove(), 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().

int manualContourBaseControler::_z [protected, inherited]

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

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1