vtkInteractorStyleMPRView Class Reference

#include <vtkInteractorStyleMPRView.h>

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

List of all members.

Public Member Functions

 vtkInteractorStyleMPRView ()
 ~vtkInteractorStyleMPRView ()
virtual bool OnMouseMove ()
virtual bool OnLeftButtonDown ()
virtual bool OnLeftButtonUp ()
virtual bool OnLeftDClick ()
virtual InteractorStyleMaracasClone ()
void CopyAttributesTo (InteractorStyleMaracas *cloneObject)
virtual bool OnChar ()
virtual bool OnMiddleButtonDown ()
virtual bool OnMiddleButtonUp ()
virtual bool OnRightButtonDown ()
virtual bool OnRightButtonUp ()
virtual bool OnRightDClick ()
virtual bool OnMiddleDClick ()
virtual bool OnMouseWheel ()
void SetVtkInteractorStyleBaseView (vtkInteractorStyleBaseView *_vtkInteractorStyleBaseView)
void RemoveVtkInteractorStyleBaseView ()
void SetActive (bool active)
bool GetActive ()

Protected Attributes

bool _stateMoveAxisX
bool _stateMoveAxisY
bool _stateMoveAxisZ
vtkInteractorStyleBaseView_vtkInteractorStyleBaseView

Detailed Description

Definition at line 6 of file vtkInteractorStyleMPRView.h.


Constructor & Destructor Documentation

vtkInteractorStyleMPRView::vtkInteractorStyleMPRView (  ) 

Definition at line 5 of file vtkInteractorStyleMPRView.cxx.

References _stateMoveAxisX, _stateMoveAxisY, and _stateMoveAxisZ.

00006 {
00007         _stateMoveAxisX = false;
00008         _stateMoveAxisY = false;
00009         _stateMoveAxisZ = false;
00010 }

vtkInteractorStyleMPRView::~vtkInteractorStyleMPRView (  ) 

Definition at line 12 of file vtkInteractorStyleMPRView.cxx.

00013 {
00014 }


Member Function Documentation

InteractorStyleMaracas * InteractorStyleMaracas::Clone (  )  [virtual, inherited]
void InteractorStyleMaracas::CopyAttributesTo ( InteractorStyleMaracas cloneObject  )  [inherited]

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

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:

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

Reimplemented in manualContour3DControler, manualContour3V3DControler, manualContour3VControler, manualContourBaseControler, and manualContourPerpPlaneControler.

Definition at line 37 of file InteractorStyleMaracas.cxx.

Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().

00038 {
00039         return true;
00040 }

Here is the caller graph for this function:

bool vtkInteractorStyleMPRView::OnLeftButtonDown (  )  [virtual]

Reimplemented from InteractorStyleMaracas.

Definition at line 36 of file vtkInteractorStyleMPRView.cxx.

References _stateMoveAxisX, _stateMoveAxisY, _stateMoveAxisZ, InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkMPR2DView::IfMouseTouchX(), wxVtkMPR2DView::IfMouseTouchY(), wxVtkMPR2DView::IfMouseTouchZ(), and vtkInteractorStyleBaseView::TransformCoordinate().

00037 {
00038         wxVtkMPR2DView *wxvtkmpr2Dview = (wxVtkMPR2DView*)(_vtkInteractorStyleBaseView->GetWxVtk2DBaseView());
00039         double x        = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0];
00040         double y        = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1];
00041         double z        = 1;
00042         //double xx     = x;  // JPRx
00043         //double yy     = y;  // JPRx
00044         _vtkInteractorStyleBaseView->TransformCoordinate(x,y,z);            
00045 
00046 /*EED Borrame
00047         if ((_xBack==xx) && (_yBack==yy))
00048         {
00049                 wxvtkmpr2Dview->MoveX(x,y,z);
00050                 wxvtkmpr2Dview->MoveY(x,y,z);
00051                 wxvtkmpr2Dview->MoveZ(x,y,z);
00052                 wxCommandEvent newevent1(wxEVT_COMMAND_MENU_SELECTED,12121);  // Refresh
00053                 wxvtkmpr2Dview->GetWxVTKRenderWindowInteractor()->GetParent()->ProcessEvent(newevent1);
00054                 wxCommandEvent newevent2(wxEVT_COMMAND_MENU_SELECTED,12122);  // Doble click
00055                 wxvtkmpr2Dview->GetWxVTKRenderWindowInteractor()->GetParent()->ProcessEvent(newevent2);
00056         }
00057 
00058         _xBack=xx;      
00059         _yBack=yy;
00060 */
00061 
00062         _stateMoveAxisX = wxvtkmpr2Dview->IfMouseTouchX(x,y,z);
00063         _stateMoveAxisY = wxvtkmpr2Dview->IfMouseTouchY(x,y,z);
00064         _stateMoveAxisZ = wxvtkmpr2Dview->IfMouseTouchZ(x,y,z);
00065 
00066         return true;
00067 }

Here is the call graph for this function:

bool vtkInteractorStyleMPRView::OnLeftButtonUp (  )  [virtual]

Reimplemented from InteractorStyleMaracas.

Definition at line 69 of file vtkInteractorStyleMPRView.cxx.

References _stateMoveAxisX, _stateMoveAxisY, and _stateMoveAxisZ.

00070 {
00071         if (_stateMoveAxisX==true) 
00072         {
00073                 _stateMoveAxisX=false;
00074         }
00075         if (_stateMoveAxisY==true) 
00076         {
00077                 _stateMoveAxisY=false;
00078         }
00079         if (_stateMoveAxisZ==true) 
00080         {
00081                 _stateMoveAxisZ=false;
00082         }
00083         return true;
00084 }

bool vtkInteractorStyleMPRView::OnLeftDClick (  )  [virtual]

Reimplemented from InteractorStyleMaracas.

Definition at line 18 of file vtkInteractorStyleMPRView.cxx.

References InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), wxVtkMPR2DView::MoveX(), wxVtkMPR2DView::MoveY(), wxVtkMPR2DView::MoveZ(), and vtkInteractorStyleBaseView::TransformCoordinate().

00019 {
00020         wxVtkMPR2DView *wxvtkmpr2Dview = (wxVtkMPR2DView*)(_vtkInteractorStyleBaseView->GetWxVtk2DBaseView());
00021         double x = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0];
00022         double y = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1];
00023         double z = 1;
00024         _vtkInteractorStyleBaseView->TransformCoordinate(x,y,z);            
00025         wxvtkmpr2Dview->MoveX(x,y,z);
00026         wxvtkmpr2Dview->MoveY(x,y,z);
00027         wxvtkmpr2Dview->MoveZ(x,y,z);
00028         wxCommandEvent newevent1(wxEVT_COMMAND_MENU_SELECTED,12121);  // Refresh
00029         wxvtkmpr2Dview->GetWxVTKRenderWindowInteractor()->GetParent()->ProcessEvent(newevent1);
00030         wxCommandEvent newevent2(wxEVT_COMMAND_MENU_SELECTED,12122);  // Doble click
00031         wxvtkmpr2Dview->GetWxVTKRenderWindowInteractor()->GetParent()->ProcessEvent(newevent2);
00032 
00033         return true;
00034 }

Here is the call graph for this function:

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

Reimplemented in manualContourBaseControler, and manualInteractorWindowLevel.

Definition at line 62 of file InteractorStyleMaracas.cxx.

Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().

00063 {
00064         return true;
00065 }

Here is the caller graph for this function:

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

Reimplemented in manualContourBaseControler, and manualInteractorWindowLevel.

Definition at line 67 of file InteractorStyleMaracas.cxx.

Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().

00068 {
00069         return true;
00070 }

Here is the caller graph for this function:

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

Definition at line 72 of file InteractorStyleMaracas.cxx.

00073 {
00074         return true;
00075 }

bool vtkInteractorStyleMPRView::OnMouseMove (  )  [virtual]

Reimplemented from InteractorStyleMaracas.

Definition at line 86 of file vtkInteractorStyleMPRView.cxx.

References _stateMoveAxisX, _stateMoveAxisY, _stateMoveAxisZ, InteractorStyleMaracas::_vtkInteractorStyleBaseView, wxVtkMPR2DView::ChangeAxisColor(), vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkMPR2DView::MoveY(), wxVtkMPR2DView::MoveZ(), vtkInteractorStyleBaseView::SetParent_refresh_waiting(), and vtkInteractorStyleBaseView::TransformCoordinate().

00087 {
00088         double x = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0];
00089         double y = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1];
00090 
00091         double z=1;
00092         _vtkInteractorStyleBaseView->TransformCoordinate(x,y,z);            
00093         wxVtkMPR2DView *wxvtkmpr2Dview = (wxVtkMPR2DView*)(_vtkInteractorStyleBaseView->GetWxVtk2DBaseView());
00094 //      wxvtkmpr2Dview->TransfromCoordViewWorld(x,y,z);     
00095 
00096         wxvtkmpr2Dview->ChangeAxisColor(x,y,z);
00097 
00098         if ((_stateMoveAxisX==true) || (_stateMoveAxisY==true)  || (_stateMoveAxisZ==true) )
00099         {
00100                 if (_stateMoveAxisX==true) 
00101                 {
00102                         wxvtkmpr2Dview-> MoveX(x,y,z);
00103                 }
00104                 if (_stateMoveAxisY==true) 
00105                 {
00106                         wxvtkmpr2Dview->MoveY(x,y,z);
00107                 }
00108                 if (_stateMoveAxisZ==true) 
00109                 {
00110                         wxvtkmpr2Dview->MoveZ(x,y,z);
00111                 }
00112 
00113                 this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting();
00114         }
00115         return true;
00116 }

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

Reimplemented in manualContourBaseControler, vtkInteractorScrollZ, and vtkInteractorStyleSphere.

Definition at line 77 of file InteractorStyleMaracas.cxx.

Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().

00078 {
00079         return true;
00080 }

Here is the caller graph for this function:

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

Reimplemented in manualContourBaseControler, vtkInteractorScrollZ, vtkInteractorStylePlane2D, and vtkInteractorStyleSphere.

Definition at line 82 of file InteractorStyleMaracas.cxx.

Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().

00083 {
00084         return true;
00085 }

Here is the caller graph for this function:

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

Definition at line 87 of file InteractorStyleMaracas.cxx.

Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().

00088 {
00089         return true;
00090 }

Here is the caller graph for this function:

void InteractorStyleMaracas::RemoveVtkInteractorStyleBaseView (  )  [inherited]

Definition at line 106 of file InteractorStyleMaracas.cxx.

References InteractorStyleMaracas::_vtkInteractorStyleBaseView.

Referenced by vtkInteractorStyleBaseView::RemoveInteractorStyleMaracas().

00107 {
00108         _vtkInteractorStyleBaseView = NULL;
00109 }

Here is the caller graph for this function:

void InteractorStyleMaracas::SetActive ( bool  active  )  [inherited]
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:


Member Data Documentation

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


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

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1