X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FInterface_ManagerContour_NDimensions%2FwxVtkBaseView_SceneManager.h;h=c1591b911d49dfbe94529f4385bccbd2dd78fad9;hb=refs%2Fheads%2Fvtk8itk4wx3-mingw64;hp=93a2d866cb62a8b492ecc9eee2473cac4c5fec53;hpb=14722b19e7d13b894d78ddca182c042a7ef5c6e6;p=creaContours.git diff --git a/lib/Interface_ManagerContour_NDimensions/wxVtkBaseView_SceneManager.h b/lib/Interface_ManagerContour_NDimensions/wxVtkBaseView_SceneManager.h index 93a2d86..c1591b9 100644 --- a/lib/Interface_ManagerContour_NDimensions/wxVtkBaseView_SceneManager.h +++ b/lib/Interface_ManagerContour_NDimensions/wxVtkBaseView_SceneManager.h @@ -1,3 +1,28 @@ +/*# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# ------------------------------------------------------------------------ */ + #ifndef __wxVtkBaseView_SceneManager_h_INCLUDED_H__ #define __wxVtkBaseView_SceneManager_h_INCLUDED_H__ @@ -80,7 +105,6 @@ class wxVtkBaseView_SceneManager : public InteractorStyleMaracas { // Methods for capturing events //------------------------------------------------------------------------------------------------------------ - //------------------------------------------------------------------------------------------------------------ // Methods for sending events //------------------------------------------------------------------------------------------------------------ @@ -184,7 +208,8 @@ class wxVtkBaseView_SceneManager : public InteractorStyleMaracas { 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); @@ -192,10 +217,13 @@ class wxVtkBaseView_SceneManager : public InteractorStyleMaracas { bool isCtrlPressed(); bool isShiftPressed(); char getLastKeyCode(); + void SetLabelNumberOfContours( std::string label ); + private: //------------------------------------------------------------------------------------------------------------ // Private methods //------------------------------------------------------------------------------------------------------------ + void configureTextNumberOfContour(); //------------------------------------------------------------------------------------------------------------ @@ -207,35 +235,36 @@ private: // Attributtes //------------------------------------------------------------------------------------------------------------ - std::map * _contours_ViewControl; - std::map * _sceneContours_ViewControl; - wxVtkBaseView *_wxVtk_BaseView; - wxEvtHandler *_eventHandler; - ContourWrap_ViewControl *_lastInteraction; - std::string _lastInteractionName; - std::map * _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 *_contours_ViewControl; + std::map *_sceneContours_ViewControl; + wxVtkBaseView *_wxVtk_BaseView; + wxEvtHandler *_eventHandler; + ContourWrap_ViewControl *_lastInteraction; + std::string _lastInteractionName; + std::map *_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__