X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FInterface_ManagerContour_NDimensions%2FwxVtkBaseView_SceneManager.h;h=de1f2a08765528a62602cc8021e01778351a47a2;hb=ca87aceca009bafc9423f67bae0460f6ee86516b;hp=ecc6a5111afd3a193d295e287d3d212b35731495;hpb=a1a71313f5569279919f44fcc2a5ebbbea123057;p=creaContours.git diff --git a/lib/Interface_ManagerContour_NDimensions/wxVtkBaseView_SceneManager.h b/lib/Interface_ManagerContour_NDimensions/wxVtkBaseView_SceneManager.h index ecc6a51..de1f2a0 100644 --- a/lib/Interface_ManagerContour_NDimensions/wxVtkBaseView_SceneManager.h +++ b/lib/Interface_ManagerContour_NDimensions/wxVtkBaseView_SceneManager.h @@ -65,6 +65,7 @@ //------------------------------------------------------------------------------------------------------------ // Events declaration //------------------------------------------------------------------------------------------------------------ +/* EED 2022-09-30 BEGIN_DECLARE_EVENT_TYPES() DECLARE_EVENT_TYPE( wxEVT_START_CREATE_MULT_ROI, -1 ) DECLARE_EVENT_TYPE( wxEVT_STOP_CREATE_MULT_ROI, -1 ) @@ -83,6 +84,23 @@ BEGIN_DECLARE_EVENT_TYPES() DECLARE_EVENT_TYPE( wxEVT_UNSELECTED_ROI_POINT, -1 ) DECLARE_EVENT_TYPE( wxEVT_CHANGED_DEEP, -1 ) END_DECLARE_EVENT_TYPES() +*/ +wxDECLARE_EVENT(wxEVT_START_CREATE_MULT_ROI, wxCommandEvent); +wxDECLARE_EVENT(wxEVT_STOP_CREATE_MULT_ROI, wxCommandEvent); +wxDECLARE_EVENT(wxEVT_SELECTED_MULT_ROI, wxCommandEvent); +wxDECLARE_EVENT(wxEVT_START_CREATE_ROI, wxCommandEvent); +wxDECLARE_EVENT(wxEVT_STOP_CREATE_ROI, wxCommandEvent); +wxDECLARE_EVENT(wxEVT_DELETE_ROI, wxCommandEvent); +wxDECLARE_EVENT(wxEVT_SELECTED_ROI, wxCommandEvent); +wxDECLARE_EVENT(wxEVT_UNSLECTED_ROI, wxCommandEvent); +wxDECLARE_EVENT(wxEVT_MANUAL_HIDED_ROI, wxCommandEvent); +wxDECLARE_EVENT(wxEVT_MANUAL_SHOWED_ROI, wxCommandEvent); +wxDECLARE_EVENT(wxEVT_EDITING_ROI, wxCommandEvent); +wxDECLARE_EVENT(wxEVT_MOVING_ROI, wxCommandEvent); +wxDECLARE_EVENT(wxEVT_MOVING_ROI_POINT, wxCommandEvent); +wxDECLARE_EVENT(wxEVT_SELECTED_ROI_POINT, wxCommandEvent); +wxDECLARE_EVENT(wxEVT_UNSELECTED_ROI_POINT, wxCommandEvent); +wxDECLARE_EVENT(wxEVT_CHANGED_DEEP, wxCommandEvent); /** file wxVtkBaseView_SceneManager.h */ @@ -105,7 +123,6 @@ class wxVtkBaseView_SceneManager : public InteractorStyleMaracas { // Methods for capturing events //------------------------------------------------------------------------------------------------------------ - //------------------------------------------------------------------------------------------------------------ // Methods for sending events //------------------------------------------------------------------------------------------------------------ @@ -210,6 +227,7 @@ class wxVtkBaseView_SceneManager : public InteractorStyleMaracas { int GetImageDataSizeZ(); void GetImageDataRange( double *range ); void SetWidthContour(double width); + void SetShowTextContour(bool show); //JCP 21 - 09 - 08 bool isEditableCControler(std::string theKeyName); @@ -217,10 +235,13 @@ class wxVtkBaseView_SceneManager : public InteractorStyleMaracas { bool isCtrlPressed(); bool isShiftPressed(); char getLastKeyCode(); + void SetLabelNumberOfContours( std::string label ); + private: //------------------------------------------------------------------------------------------------------------ // Private methods //------------------------------------------------------------------------------------------------------------ + void configureTextNumberOfContour(); //------------------------------------------------------------------------------------------------------------ @@ -260,6 +281,8 @@ private: double _widthOfControlPoint; bool _ctrlKey; bool _shiftKey; + bool _showTextContour; + vtkTextActor *_numberOfContoursTextActor; }; #endif // __wxVtkBaseView_SceneManager_HEADER_FILE__