vtkInteractorStylePlane2D Class Reference

#include <vtkInteractorStylePlane2D.h>

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

List of all members.

Public Member Functions

 vtkInteractorStylePlane2D ()
 ~vtkInteractorStylePlane2D ()
virtual bool OnLeftButtonDown ()
virtual bool OnLeftButtonUp ()
virtual bool OnMouseMove ()
virtual bool OnRightButtonUp ()
virtual bool OnLeftDClick ()
bool GetStateRotate ()
virtual InteractorStyleMaracasClone ()
void CopyAttributesTo (InteractorStyleMaracas *cloneObject)
virtual bool OnChar ()
virtual bool OnMiddleButtonDown ()
virtual bool OnMiddleButtonUp ()
virtual bool OnRightButtonDown ()
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

bool _stateRotate
int _fordwareX
int _fordwareY

Detailed Description

Definition at line 6 of file vtkInteractorStylePlane2D.h.


Constructor & Destructor Documentation

vtkInteractorStylePlane2D::vtkInteractorStylePlane2D (  ) 

Definition at line 6 of file vtkInteractorStylePlane2D.cxx.

References _stateRotate.

00007 {
00008         _stateRotate=false;
00009 }

vtkInteractorStylePlane2D::~vtkInteractorStylePlane2D (  ) 

Definition at line 11 of file vtkInteractorStylePlane2D.cxx.

00012 {
00013 }


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 vtkInteractorStylePlane2D::GetStateRotate (  ) 

Definition at line 16 of file vtkInteractorStylePlane2D.cxx.

References _stateRotate.

Referenced by vtkPlane2DView::ExtractPlane().

00017 {
00018         return _stateRotate;
00019 }

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 vtkInteractorStylePlane2D::OnLeftButtonDown (  )  [virtual]

Reimplemented from InteractorStyleMaracas.

Definition at line 22 of file vtkInteractorStylePlane2D.cxx.

References _fordwareX, _fordwareY, _stateRotate, InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), and vtkPlane2DView::RotationStart().

00023 {
00024         _stateRotate = true;
00025         _fordwareX = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0];
00026         _fordwareY = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1];
00027         vtkPlane2DView *vtkplane2Dview = (vtkPlane2DView*)(_vtkInteractorStyleBaseView->GetWxVtk2DBaseView());
00028         vtkplane2Dview->RotationStart();
00029 
00030         return true;
00031 }

Here is the call graph for this function:

bool vtkInteractorStylePlane2D::OnLeftButtonUp (  )  [virtual]

Reimplemented from InteractorStyleMaracas.

Definition at line 34 of file vtkInteractorStylePlane2D.cxx.

References _stateRotate, InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), and vtkPlane2DView::ResetBack().

00035 {
00036         if (_stateRotate==true)
00037         {
00038                 _stateRotate = false;
00039                 vtkPlane2DView *vtkplane2Dview = (vtkPlane2DView*)(_vtkInteractorStyleBaseView->GetWxVtk2DBaseView());
00040                 vtkplane2Dview->ResetBack();
00041 //              this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting();
00042         }
00043 
00044         return true;
00045 }

Here is the call graph for this function:

bool vtkInteractorStylePlane2D::OnLeftDClick (  )  [virtual]

Reimplemented from InteractorStyleMaracas.

Definition at line 85 of file vtkInteractorStylePlane2D.cxx.

References InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkPlane2DView::GetVtkmprbasedata(), vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), vtkInteractorStyleBaseView::SetParent_refresh_waiting(), vtkMPRBaseData::SetX(), vtkMPRBaseData::SetY(), vtkBaseData::SetZ(), and vtkPlane2DView::TransfromCoordViewWorld2().

00086 {
00087         int fx = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0];
00088         int fy = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1];
00089         double xx=fx;
00090         double yy=fy;
00091         double zz=0;
00092 
00093         vtkPlane2DView *vtkplane2Dview = (vtkPlane2DView*)(_vtkInteractorStyleBaseView->GetWxVtk2DBaseView());
00094         vtkMPRBaseData *vtkmprbasedata = vtkplane2Dview->GetVtkmprbasedata();
00095 
00096         vtkplane2Dview->TransfromCoordViewWorld2(xx,yy,zz);
00097 
00098         vtkmprbasedata->SetX( xx );
00099         vtkmprbasedata->SetY( yy );
00100         vtkmprbasedata->SetZ( zz );
00101         this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting();
00102 
00103         return true;
00104 }

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 vtkInteractorStylePlane2D::OnMouseMove (  )  [virtual]

Reimplemented from InteractorStyleMaracas.

Definition at line 62 of file vtkInteractorStylePlane2D.cxx.

References _fordwareX, _fordwareY, _stateRotate, InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), vtkPlane2DView::RotationDrag(), and vtkInteractorStyleBaseView::SetParent_refresh_waiting().

00063 {
00064         bool ok_v, ok_ang;
00065         if (_stateRotate==true){
00066                 ok_v=false;
00067                 ok_ang=false;
00068                 if (_vtkInteractorStyleBaseView->GetInteractor()->GetControlKey()==1)
00069                 {
00070                         ok_v=true;
00071                 }
00072                 if (_vtkInteractorStyleBaseView->GetInteractor()->GetShiftKey()==1)
00073                 {
00074                         ok_ang=true;
00075                 }
00076             int fx = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0];
00077         int fy = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1];
00078                 vtkPlane2DView *vtkplane2Dview = (vtkPlane2DView*)(_vtkInteractorStyleBaseView->GetWxVtk2DBaseView());
00079                 vtkplane2Dview->RotationDrag( fx - _fordwareX , fy - _fordwareY , ok_v , ok_ang);
00080                 this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting();
00081         } 
00082         return true;
00083 }

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 vtkInteractorStylePlane2D::OnRightButtonUp (  )  [virtual]

Reimplemented from InteractorStyleMaracas.

Definition at line 48 of file vtkInteractorStylePlane2D.cxx.

References _stateRotate.

00049 {
00050         if (_stateRotate==true){
00051                 //vtkPlane2DView *vtkplane2Dview = (vtkPlane2DView*)(_vtkInteractorStyleBaseView->GetWxVtk2DBaseView()); // JPRx
00052 
00053 // EED Borrame
00054 //              vtkplane2Dview->RotationEnd();
00055 
00056                 _stateRotate = false;
00057         }
00058 
00059         return true;
00060 }

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 21 of file vtkInteractorStylePlane2D.h.

Referenced by OnLeftButtonDown(), and OnMouseMove().

Definition at line 22 of file vtkInteractorStylePlane2D.h.

Referenced by OnLeftButtonDown(), and OnMouseMove().

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


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

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1