//------------------------------------------------------------------------------------------------------------
// 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 )
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 */
// Methods for capturing events
//------------------------------------------------------------------------------------------------------------
-
//------------------------------------------------------------------------------------------------------------
// Methods for sending events
//------------------------------------------------------------------------------------------------------------
int GetImageDataSizeZ();
void GetImageDataRange( double *range );
- void SetWidthContour(double width);
+ void SetWidthContour(double width);
+ void SetShowTextContour(bool show);
//JCP 21 - 09 - 08
bool isEditableCControler(std::string theKeyName);
bool isCtrlPressed();
bool isShiftPressed();
char getLastKeyCode();
+ void SetLabelNumberOfContours( std::string label );
+
private:
//------------------------------------------------------------------------------------------------------------
// Private methods
//------------------------------------------------------------------------------------------------------------
+ void configureTextNumberOfContour();
//------------------------------------------------------------------------------------------------------------
// Attributtes
//------------------------------------------------------------------------------------------------------------
- std::map<std::string, ContourWrap_ViewControl *> * _contours_ViewControl;
- std::map<std::string, ContourWrap_ViewControl *> * _sceneContours_ViewControl;
- wxVtkBaseView *_wxVtk_BaseView;
- wxEvtHandler *_eventHandler;
- ContourWrap_ViewControl *_lastInteraction;
- std::string _lastInteractionName;
- std::map<std::string, ContourWrap_ViewControl *> * _workingGroup;
- bool _creatingMULT_ROI;
- bool _editingROI;
- bool _toIncludeAtInteractionGroup;
- bool _waiting;
- bool _creatingROI;
- int _enventID;
- int _leftClickCount;
- int _rigthClickCount;
- int clickX;
- int clickY;
- char _lastKeyCode;
- long int onCharCallBackTimeEnd;
- long int onCharNeeded;
- bool _drawingSelectionROI;
- manualRoiControler *_controlerSelectionROI;
- manualViewRoi *_viewerSelectionROI;
- manualBaseModel *_modelSelectionROI;
- double _widthOfContour;
- double _widthOfControlPoint;
-
- bool _ctrlKey;
- bool _shiftKey;
+ std::map<std::string, ContourWrap_ViewControl *> *_contours_ViewControl;
+ std::map<std::string, ContourWrap_ViewControl *> *_sceneContours_ViewControl;
+ wxVtkBaseView *_wxVtk_BaseView;
+ wxEvtHandler *_eventHandler;
+ ContourWrap_ViewControl *_lastInteraction;
+ std::string _lastInteractionName;
+ std::map<std::string, ContourWrap_ViewControl *> *_workingGroup;
+ bool _creatingMULT_ROI;
+ bool _editingROI;
+ bool _toIncludeAtInteractionGroup;
+ bool _waiting;
+ bool _creatingROI;
+ int _enventID;
+ int _leftClickCount;
+ int _rigthClickCount;
+ int clickX;
+ int clickY;
+ char _lastKeyCode;
+ long int onCharCallBackTimeEnd;
+ long int onCharNeeded;
+ bool _drawingSelectionROI;
+ manualRoiControler *_controlerSelectionROI;
+ manualViewRoi *_viewerSelectionROI;
+ manualBaseModel *_modelSelectionROI;
+ double _widthOfContour;
+ double _widthOfControlPoint;
+ bool _ctrlKey;
+ bool _shiftKey;
+ bool _showTextContour;
+ vtkTextActor *_numberOfContoursTextActor;
};
#endif // __wxVtkBaseView_SceneManager_HEADER_FILE__