manualContourBaseControler Class Reference

#include <manualContourBaseControler.h>

Inheritance diagram for manualContourBaseControler:

Inheritance graph
[legend]
Collaboration diagram for manualContourBaseControler:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 manualContourBaseControler ()
virtual ~manualContourBaseControler ()
virtual
manualContourBaseControler
Clone ()
void CopyAttributesTo (manualContourBaseControler *cloneObject)
virtual bool OnChar ()
virtual bool OnMouseMove ()
virtual bool OnLeftButtonDown ()
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 MouseClickLeft (int x, int y)
virtual void MouseClickRight (int x, int y)
virtual void MouseDLeft (int x, int y)
virtual void MouseMove (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 InsertPoint (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 void Configure ()
void CopyAttributesTo (InteractorStyleMaracas *cloneObject)
virtual bool OnRightDClick ()
virtual bool OnMiddleDClick ()
virtual bool OnMouseWheel ()
void SetVtkInteractorStyleBaseView (vtkInteractorStyleBaseView *_vtkInteractorStyleBaseView)
void RemoveVtkInteractorStyleBaseView ()
void SetActive (bool active)
bool GetActive ()

Protected Attributes

vtkInteractorStyleBaseView_vtkInteractorStyleBaseView

Private Attributes

manualViewBaseContour_manViewBaseCont
manualContourModel_manContModel
int _z
int _state
bool _editable
bool _posibleToMove
bool _moving
bool _created
bool _keyBoardMoving


Detailed Description

Definition at line 55 of file manualContourBaseControler.h.


Constructor & Destructor Documentation

manualContourBaseControler::manualContourBaseControler (  ) 

Definition at line 8 of file manualContourBaseControler.cpp.

References _created, _editable, _keyBoardMoving, _manContModel, _manViewBaseCont, _moving, _posibleToMove, _state, and _z.

Referenced by Clone().

00009 {
00010         _manViewBaseCont        = NULL;
00011         _manContModel           = NULL;
00012         _state                          = 0;
00013         _z                                      = 900;
00014         _editable                       = true;
00015         _posibleToMove          = true;
00016         _moving                         = false;
00017         _created                        = false;
00018         _keyBoardMoving         = false;
00019 }

Here is the caller graph for this function:

manualContourBaseControler::~manualContourBaseControler (  )  [virtual]

Definition at line 21 of file manualContourBaseControler.cpp.

00022 {
00023 }


Member Function Documentation

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

Reimplemented in manualContour3V3DControler, manualContour3VControler, and manualContourPerpPlaneControler.

Definition at line 449 of file manualContourBaseControler.cpp.

References manualViewBaseContour::AddPoint(), manualContourModel::AddPoint(), GetManualContourModel(), GetManualViewBaseContour(), and manualViewBaseContour::TransfromCoordViewWorld().

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

00450 {
00451         if (GetManualContourModel()!=NULL){
00452                 double  xx      = x;
00453                 double  yy      = y;
00454                 double  zz      = z;
00455                 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz);
00456                 /*int   id              =*/  GetManualContourModel()->AddPoint(xx,yy,zz);  // JPRx
00457                 GetManualViewBaseContour()->AddPoint();
00458 //              GetManualViewBaseContour()->UpdateViewPoint(id);
00459         }
00460 }

Here is the call graph for this function:

Here is the caller graph for this function:

manualContourBaseControler * manualContourBaseControler::Clone (  )  [virtual]

void manualContourBaseControler::Configure (  )  [virtual]

Reimplemented in manualCircleControler, manualContourControler, and manualRoiControler.

Definition at line 49 of file manualContourBaseControler.cpp.

00050 {
00051 }

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  ) 

Definition at line 35 of file manualContourBaseControler.cpp.

References GetIfCompleteCreation(), GetKeyBoardMoving(), GetPosibleToMove(), GetState(), GetZ(), IsEditable(), IsMoving(), SetCompleteCreation(), SetEditable(), SetKeyBoardMoving(), SetMoving(), SetPosibleToMove(), SetState(), and SetZ().

Referenced by Clone().

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 manualContourBaseControler::CreateNewManualContour (  ) 

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

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

Definition at line 402 of file manualContourBaseControler.cpp.

References _manContModel, _manViewBaseCont, _state, manualViewBaseContour::DeletePoint(), manualContourModel::DeletePoint(), manualViewBaseContour::GetIdPoint(), manualContourModel::GetSizeLstPoints(), and GetZ().

Referenced by wxImageViewerWidget::ExecuteEvent2(), and OnChar().

00403 {
00404         if ((_manContModel!=NULL) && (_manViewBaseCont!=NULL) )
00405         {
00406                 int id=_manViewBaseCont->GetIdPoint(x,y,GetZ());
00407                 if ((id!=-1) && (_manContModel->GetSizeLstPoints()>2) ){
00408                         _manContModel->DeletePoint(id);
00409                         _manViewBaseCont->DeletePoint(id);
00410                 }
00411         }
00412         _state = 0;
00413 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualContourBaseControler::DeleteContour (  ) 

Definition at line 397 of file manualContourBaseControler.cpp.

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

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

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

Here is the call graph for this function:

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(), and InteractorStyleMaracas::CopyAttributesTo().

00117 {
00118         return _active;
00119 }

Here is the caller graph for this function:

bool manualContourBaseControler::GetIfCompleteCreation (  ) 

Definition at line 358 of file manualContourBaseControler.cpp.

References _created.

Referenced by CopyAttributesTo(), and MouseReleaseLeft().

00359 {
00360         return _created;
00361 }

Here is the caller graph for this function:

bool manualContourBaseControler::GetKeyBoardMoving (  ) 

Definition at line 368 of file manualContourBaseControler.cpp.

References _keyBoardMoving.

Referenced by CopyAttributesTo(), and OnChar().

00369 {
00370         return _keyBoardMoving;
00371 }

Here is the caller graph for this function:

manualContourModel * manualContourBaseControler::GetManualContourModel (  ) 

manualViewBaseContour * manualContourBaseControler::GetManualViewBaseContour (  ) 

int manualContourBaseControler::GetNumberOfPointsManualContour (  ) 

Definition at line 377 of file manualContourBaseControler.cpp.

References _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 (  ) 

Definition at line 383 of file manualContourBaseControler.cpp.

References _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 (  ) 

Definition at line 333 of file manualContourBaseControler.cpp.

References _posibleToMove.

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

00334 {
00335         return _posibleToMove;
00336 }

Here is the caller graph for this function:

int manualContourBaseControler::GetState (  ) 

double * manualContourBaseControler::GetVectorPointsXManualContour (  ) 

double * manualContourBaseControler::GetVectorPointsYManualContour (  ) 

int manualContourBaseControler::GetZ (  )  [virtual]

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

Reimplemented in manualContour3DControler, manualContour3V3DControler, manualContour3VControler, and manualContourPerpPlaneControler.

Definition at line 462 of file manualContourBaseControler.cpp.

References manualViewBaseContour::AddPoint(), manualContourModel::AddPoint(), GetManualContourModel(), GetManualViewBaseContour(), manualViewBaseContour::InsertPoint(), manualContourModel::InsertPoint(), and manualViewBaseContour::TransfromCoordViewWorld().

Referenced by manualContourControler::MouseClickLeft().

00463 {
00464 //EEDzz
00465         int id=-1;
00466         if (GetManualContourModel()!=NULL){
00467                 double                          xx              = x;
00468                 double                          yy              = y;
00469                 double                          zz              = z;
00470                 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz);
00471                 if (GetManualContourModel()->GetSizeLstPoints()>1){
00472                         id = GetManualContourModel()->InsertPoint(xx,yy,zz);
00473                         GetManualViewBaseContour()->InsertPoint(id);
00474 //                      GetManualViewBaseContour()->UpdateViewPoint(id);
00475                 } else {
00476                         GetManualContourModel()->AddPoint(xx,yy,zz);
00477                         GetManualViewBaseContour()->AddPoint();
00478 //                      AddPoint(x,y,z);
00479 //                      GetManualViewBaseContour()->UpdateViewPoint(id);
00480                 }
00481         }
00482 }

Here is the call graph for this function:

Here is the caller graph for this function:

bool manualContourBaseControler::IsEditable (  ) 

bool manualContourBaseControler::IsMoving (  ) 

Definition at line 343 of file manualContourBaseControler.cpp.

References _moving.

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

00344 {
00345         return _moving;
00346 }

Here is the caller graph for this function:

void manualContourBaseControler::Magnet ( int  x,
int  y 
)

Definition at line 416 of file manualContourBaseControler.cpp.

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

Referenced by 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 manualContourBaseControler::MouseClickLeft ( int  x,
int  y 
) [virtual]

Reimplemented in manualCircleControler, manualContour3DControler, manualContourControler, manualLineControler, and manualRoiControler.

Definition at line 255 of file manualContourBaseControler.cpp.

Referenced by OnLeftButtonDown().

00256 {
00257 
00258 }

Here is the caller graph for this function:

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

Definition at line 260 of file manualContourBaseControler.cpp.

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

Referenced by wxImageViewerWidget::ExecuteEvent2(), and 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 manualContourBaseControler::MouseDLeft ( int  x,
int  y 
) [virtual]

Reimplemented in manualContourControler, and manualContourPerpPlaneControler.

Definition at line 287 of file manualContourBaseControler.cpp.

References _editable, _state, GetManualViewBaseContour(), GetZ(), manualViewBaseContour::SelectPosibleContour(), and manualViewBaseContour::SelectPosiblePoint().

Referenced by OnLeftDClick().

00288 {
00289         if (_state==0)
00290         {
00291                 int z=GetZ();
00292                 GetManualViewBaseContour()->SelectPosibleContour(x,y,z);
00293                 GetManualViewBaseContour()->SelectPosiblePoint(x,y,z);
00294                 if ( GetManualViewBaseContour()->GetPosibleSelected() )
00295                 {
00296                         _editable = true;
00297                 }
00298         }
00299 }

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Definition at line 301 of file manualContourBaseControler.cpp.

Referenced by OnMouseMove().

00302 {
00303 }

Here is the caller graph for this function:

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

Definition at line 273 of file manualContourBaseControler.cpp.

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

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

bool manualContourBaseControler::OnChar (  )  [virtual]

Reimplemented from InteractorStyleMaracas.

Reimplemented in manualContour3DControler, manualContour3V3DControler, manualContour3VControler, and manualContourPerpPlaneControler.

Definition at line 54 of file manualContourBaseControler.cpp.

References InteractorStyleMaracas::_vtkInteractorStyleBaseView, DeleteActualMousePoint(), GetKeyBoardMoving(), GetManualViewBaseContour(), vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), IsEditable(), Magnet(), manualViewBaseContour::MoveContour(), manualViewBaseContour::Refresh(), SetKeyBoardMoving(), and vtkInteractorStyleBaseView::SetRefresh_waiting().

Referenced by manualContourPerpPlaneControler::OnChar().

00055 {
00056         if ( _vtkInteractorStyleBaseView!=NULL )
00057         {
00058                 char keyCode = _vtkInteractorStyleBaseView->GetInteractor()-> GetKeyCode();
00059 
00060                 int X,Y;
00061                 wxVTKRenderWindowInteractor *_wxVTKiren;
00062                 _wxVTKiren= _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor();
00063                 _wxVTKiren->GetEventPosition(X, Y);
00064                 //int Z = GetZ(); // JPRx
00065                 // Delete Point
00066                 if ((keyCode==8) || (keyCode==127))
00067                 {
00068 
00069                         if (!GetManualViewBaseContour()->GetPosibleSelected()==true)
00070                         {
00071                                 DeleteActualMousePoint(X,Y);
00072                         }
00073                         GetManualViewBaseContour()->Refresh();
00074                         this->_vtkInteractorStyleBaseView->SetRefresh_waiting();
00075                 }
00076                 else
00077                 {
00078                         // Magnet
00079                         if (keyCode==32)
00080                         {
00081                                 Magnet(X,Y);
00082                                 GetManualViewBaseContour()->Refresh();
00083                                 this->_vtkInteractorStyleBaseView->SetRefresh_waiting();
00084                         }
00085                         else if( !IsEditable() )
00086                         {
00087                                 if ( keyCode == 'L' )
00088                                 {
00089                                         GetManualViewBaseContour()->MoveContour( -1, 0 );
00090                                         SetKeyBoardMoving( true );
00091                                 }
00092                                 else if ( keyCode == 'R' )
00093                                 {
00094                                         GetManualViewBaseContour()->MoveContour( 1, 0 );
00095                                         SetKeyBoardMoving( true );
00096                                 }
00097                                 else if ( keyCode == 'U' )
00098                                 {
00099                                         GetManualViewBaseContour()->MoveContour( 0, -1 );
00100                                         SetKeyBoardMoving( true );
00101                                 }
00102                                 else if ( keyCode == 'D' )
00103                                 {
00104                                         GetManualViewBaseContour()->MoveContour( 0, 1 );
00105                                         SetKeyBoardMoving( true );
00106                                 }
00107                                 else if ( keyCode == 'W' )//Diagonal left down
00108                                 {
00109                                         GetManualViewBaseContour()->MoveContour( -1, 1 );
00110                                         SetKeyBoardMoving( true );
00111                                 }
00112                                 else if ( keyCode == 'Q' )//Diagonal left up
00113                                 {
00114                                         GetManualViewBaseContour()->MoveContour( -1, -1 );
00115                                         SetKeyBoardMoving( true );
00116                                 }
00117                                 else if( keyCode == 'P' )//Diagonal right up
00118                                 {
00119                                         GetManualViewBaseContour()->MoveContour( 1, -1 );
00120                                         SetKeyBoardMoving( true );
00121                                 }
00122                                 else if( keyCode == 'M' )//Diagonal right down
00123                                 {
00124                                         GetManualViewBaseContour()->MoveContour( 1, 1 );
00125                                         SetKeyBoardMoving( true );
00126                                 }
00127                                 if( GetKeyBoardMoving() )
00128                                 {
00129                                         GetManualViewBaseContour()->Refresh();
00130                                         this->_vtkInteractorStyleBaseView->SetRefresh_waiting();
00131                                 }
00132                         }
00133                 }
00134         }
00135         return true;
00136 }

Here is the call graph for this function:

Here is the caller graph for this function:

bool manualContourBaseControler::OnLeftButtonDown (  )  [virtual]

Reimplemented from InteractorStyleMaracas.

Reimplemented in manualContour3DControler.

Definition at line 157 of file manualContourBaseControler.cpp.

References InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), MouseClickLeft(), and 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]

Reimplemented from InteractorStyleMaracas.

Definition at line 172 of file manualContourBaseControler.cpp.

References InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), and 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]

Reimplemented from InteractorStyleMaracas.

Reimplemented in manualContourPerpPlaneControler.

Definition at line 185 of file manualContourBaseControler.cpp.

References InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), and 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]

Reimplemented from InteractorStyleMaracas.

Definition at line 199 of file manualContourBaseControler.cpp.

References InteractorStyleMaracas::_vtkInteractorStyleBaseView, GetManualViewBaseContour(), vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), 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]

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]

Reimplemented from InteractorStyleMaracas.

Reimplemented in manualContourPerpPlaneControler.

Definition at line 138 of file manualContourBaseControler.cpp.

References InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), and 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]

Reimplemented from InteractorStyleMaracas.

Definition at line 218 of file manualContourBaseControler.cpp.

References InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), MouseClickRight(), SetCompleteCreation(), and 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                 MouseClickRight(X,Y);
00230         }
00231         return true;
00232 }

Here is the call graph for this function:

bool manualContourBaseControler::OnRightButtonUp (  )  [virtual]

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]

Reimplemented in manualContour3V3DControler, manualContour3VControler, and manualContourPerpPlaneControler.

Definition at line 533 of file manualContourBaseControler.cpp.

References manualViewBaseContour::CreateNewContour(), DeleteContour(), GetManualViewBaseContour(), and SetState().

00534 {
00535         this->DeleteContour();
00536         GetManualViewBaseContour()->CreateNewContour();
00537         this->SetState(0);
00538 }

Here is the call graph for this function:

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

void manualContourBaseControler::SetCompleteCreation ( bool  condition  ) 

Definition at line 353 of file manualContourBaseControler.cpp.

References _created.

Referenced by CopyAttributesTo(), and OnRightButtonDown().

00354 {
00355         _created = condition;
00356 }

Here is the caller graph for this function:

void manualContourBaseControler::SetEditable ( bool  condition  ) 

Definition at line 320 of file manualContourBaseControler.cpp.

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

Referenced by CopyAttributesTo(), MouseClickRight(), and 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  ) 

Definition at line 363 of file manualContourBaseControler.cpp.

References _keyBoardMoving.

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

00364 {
00365         _keyBoardMoving = condition;
00366 }

Here is the caller graph for this function:

void manualContourBaseControler::SetModelView ( manualContourModel manContModel,
manualViewBaseContour manViewBaseCont 
)

void manualContourBaseControler::SetMoving ( bool  condition  ) 

Definition at line 348 of file manualContourBaseControler.cpp.

References _moving.

Referenced by CopyAttributesTo(), manualContourControler::MouseClickLeft(), and 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]

Reimplemented in manualContour3VControler.

Definition at line 485 of file manualContourBaseControler.cpp.

References _manContModel, manualContourModel::GetManualPoint(), 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 
)

Definition at line 497 of file manualContourBaseControler.cpp.

References _manContModel, manualContourModel::GetManualPoint(), 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 
)

Definition at line 509 of file manualContourBaseControler.cpp.

References _manContModel, manualContourModel::GetManualPoint(), 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 
)

Definition at line 521 of file manualContourBaseControler.cpp.

References _manContModel, manualContourModel::GetManualPoint(), 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  ) 

Definition at line 338 of file manualContourBaseControler.cpp.

References _posibleToMove.

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

00339 {
00340         _posibleToMove = condition;
00341 }

Here is the caller graph for this function:

void manualContourBaseControler::SetState ( int  state  ) 

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 manualContourBaseControler::SetZ ( int  z  ) 

Definition at line 439 of file manualContourBaseControler.cpp.

References _z.

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

00440 {
00441         _z=z;
00442 }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 137 of file manualContourBaseControler.h.

Referenced by IsMoving(), manualContourBaseControler(), and SetMoving().

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(), manualContour3V3DControler::MouseMove(), manualContour3VControler::MouseMove_Others(), OnChar(), manualContour3DControler::OnChar(), manualContour3VControler::OnChar_Others(), vtkInteractorStyleSphere::OnLeftButtonDown(), vtkInteractorStylePlane2D::OnLeftButtonDown(), vtkInteractorStyleMPRView::OnLeftButtonDown(), OnLeftButtonDown(), manualContour3DControler::OnLeftButtonDown(), vtkInteractorStyleSphere::OnLeftButtonUp(), vtkInteractorStylePlane2D::OnLeftButtonUp(), OnLeftButtonUp(), vtkInteractorStylePlane2D::OnLeftDClick(), vtkInteractorStyleMPRView::OnLeftDClick(), OnLeftDClick(), manualInteractorWindowLevel::OnMiddleButtonDown(), OnMiddleButtonDown(), vtkInteractorStyleSphere::OnMouseMove(), vtkInteractorStylePlane2D::OnMouseMove(), vtkInteractorStyleMPRView::OnMouseMove(), vtkInteractorScrollZ::OnMouseMove(), vtkInfoTextImageInteractorPlane2D::OnMouseMove(), vtkInfoTextImageInteractor::OnMouseMove(), manualInteractorWindowLevel::OnMouseMove(), OnMouseMove(), vtkInteractorStyleSphere::OnRightButtonDown(), vtkInteractorScrollZ::OnRightButtonDown(), OnRightButtonDown(), vtkInteractorStyleSphere::OnRightButtonUp(), InteractorStyleMaracas::RemoveVtkInteractorStyleBaseView(), vtkInteractorStyle3DView::SelectMarchibCubePoint(), and InteractorStyleMaracas::SetVtkInteractorStyleBaseView().

Definition at line 133 of file manualContourBaseControler.h.

Referenced by GetZ(), manualContourBaseControler(), and SetZ().


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