00001 00002 #include "InteractorStyleMaracas.h" 00003 //--------------------------------------------------------------------------- 00004 //--------------------------------------------------------------------------- 00005 //--------------------------------------------------------------------------- 00006 00007 InteractorStyleMaracas::InteractorStyleMaracas() 00008 { 00009 _active = true; 00010 _vtkInteractorStyleBaseView = NULL; 00011 } 00012 //--------------------------------------------------------------------------- 00013 InteractorStyleMaracas::~InteractorStyleMaracas() 00014 { 00015 } 00016 00017 // ---------------------------------------------------------------------------- 00018 InteractorStyleMaracas * InteractorStyleMaracas :: Clone() // virtual 00019 { 00020 InteractorStyleMaracas * clone = new InteractorStyleMaracas(); 00021 CopyAttributesTo(clone); 00022 return clone; 00023 } 00024 00025 // --------------------------------------------------------------------------- 00026 00027 void InteractorStyleMaracas::CopyAttributesTo( InteractorStyleMaracas * cloneObject) 00028 { 00029 // Fathers object 00030 //<FATHERCLASS>::CopyAttributesTo(cloneObject); 00031 00032 cloneObject->SetActive( this->GetActive() ); 00033 } 00034 00035 00036 //--------------------------------------------------------------------------- 00037 bool InteractorStyleMaracas::OnChar() 00038 { 00039 return true; 00040 } 00041 //--------------------------------------------------------------------------- 00042 bool InteractorStyleMaracas::OnMouseMove() 00043 { 00044 return true; 00045 } 00046 //--------------------------------------------------------------------------- 00047 bool InteractorStyleMaracas::OnLeftButtonDown() 00048 { 00049 return true; 00050 } 00051 //--------------------------------------------------------------------------- 00052 bool InteractorStyleMaracas::OnLeftButtonUp() 00053 { 00054 return true; 00055 } 00056 //--------------------------------------------------------------------------- 00057 bool InteractorStyleMaracas::OnLeftDClick() 00058 { 00059 return true; 00060 } 00061 //--------------------------------------------------------------------------- 00062 bool InteractorStyleMaracas::OnMiddleButtonDown() 00063 { 00064 return true; 00065 } 00066 //--------------------------------------------------------------------------- 00067 bool InteractorStyleMaracas::OnMiddleButtonUp() 00068 { 00069 return true; 00070 } 00071 //--------------------------------------------------------------------------- 00072 bool InteractorStyleMaracas::OnMiddleDClick() 00073 { 00074 return true; 00075 } 00076 //--------------------------------------------------------------------------- 00077 bool InteractorStyleMaracas::OnRightButtonDown() 00078 { 00079 return true; 00080 } 00081 //--------------------------------------------------------------------------- 00082 bool InteractorStyleMaracas::OnRightButtonUp() 00083 { 00084 return true; 00085 } 00086 //--------------------------------------------------------------------------- 00087 bool InteractorStyleMaracas::OnRightDClick() 00088 { 00089 return true; 00090 } 00091 //--------------------------------------------------------------------------- 00092 bool InteractorStyleMaracas::OnMouseWheel() 00093 { 00094 return true; 00095 } 00096 00097 //--------------------------------------------------------------------------- 00098 00099 void InteractorStyleMaracas::SetVtkInteractorStyleBaseView(vtkInteractorStyleBaseView* vtkInteractorStyleBaseView) 00100 { 00101 _vtkInteractorStyleBaseView = vtkInteractorStyleBaseView; 00102 } 00103 00104 00105 //--------------------------------------------------------------------------- 00106 void InteractorStyleMaracas::RemoveVtkInteractorStyleBaseView() 00107 { 00108 _vtkInteractorStyleBaseView = NULL; 00109 } 00110 //--------------------------------------------------------------------------- 00111 void InteractorStyleMaracas::SetActive(bool active) 00112 { 00113 _active = active; 00114 } 00115 //--------------------------------------------------------------------------- 00116 bool InteractorStyleMaracas::GetActive() 00117 { 00118 return _active; 00119 } 00120 00121