]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/imageUndoRedo/imageDequeUR.h
121b37f01364c496eea46597210128ecf221b607
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / imageUndoRedo / imageDequeUR.h
1 /*# ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4 #                        pour la Sant�)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
8 #
9 #  This software is governed by the CeCILL-B license under French law and
10 #  abiding by the rules of distribution of free software. You can  use,
11 #  modify and/ or redistribute the software under the terms of the CeCILL-B
12 #  license as circulated by CEA, CNRS and INRIA at the following URL
13 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 #  or in the file LICENSE.txt.
15 #
16 #  As a counterpart to the access to the source code and  rights to copy,
17 #  modify and redistribute granted by the license, users are provided only
18 #  with a limited warranty  and the software's author,  the holder of the
19 #  economic rights,  and the successive licensors  have only  limited
20 #  liability.
21 #
22 #  The fact that you are presently reading this means that you have had
23 #  knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
25
26 /*!
27  * @file        imageDequeUR.h
28  * @brief       This file contains the Image3DDequeUR class. -- Abstract class
29  * @author      Info-Dev
30  * @author      Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
31  * @date        2011-11-15
32  */
33
34 #ifndef IMAGEDEQUE_H_
35 #define IMAGEDEQUE_H_
36
37 #include "imageInfoUR.h"
38
39 //#include <iostream>
40 //#include <string>
41 //#include <vtkImageData.h>
42 //#include <vtkSmartPointer.h>
43 //#include "imageModificationManager.h"
44
45 /*! @class ImageDequeUR imageDequeUR.h "imageDequeUR.cxx"
46  *      @brief This class contains the management of the undo/redo - Abstract Class
47  */
48 class ImageDequeUR {
49 public:
50         //typedef definition
51         // ----------------------------------------------------------------------------------
52         /*!     @typedef vtkSmartPointer<vtkImageData> VTKImageDataPointerType;
53          *      @brief Defines the pointer of vtkImageDate type.
54          */
55         typedef vtkSmartPointer<vtkImageData> VTKImageDataPointerType;
56         // ----------------------------------------------------------------------------------
57         /*!     @typedef std::string StringType;
58          *      @brief Redefinition of the string type.
59          */
60         typedef std::string StringType;
61         // ----------------------------------------------------------------------------------
62         /*!     @typedef ImageMManager ImageMManagerType;
63          *      @brief Definition of the ImageMManager type.
64          */
65         typedef ImageMManager ImageMManagerType;
66         // ----------------------------------------------------------------------------------
67 public:
68         // ----------------------------------------------------------------------------------
69         /*! @fn ImageDequeUR();
70          * @brief This is the default constructor.
71          */
72         ImageDequeUR();
73         // ----------------------------------------------------------------------------------
74         /*! @fn virtual ~ImageDequeUR();
75          * @brief This is the destructor.
76          */
77         virtual ~ImageDequeUR();
78         // ----------------------------------------------------------------------------------
79         /*! @fn virtual void AddImagesToURContainer(VTKImageDataPointerType imgUndo,
80          VTKImageDataPointerType imgRedo, ImageMManager* imMManager);
81          * @brief This method adds the images for undo and redo in a container
82          * @param imgUndo The undoImage cropped.
83          * @param imgRedo The redoImage cropped.
84          * @param imManager The image manager.
85          */
86         virtual void AddImagesToURContainer(VTKImageDataPointerType imgUndo,
87                         VTKImageDataPointerType imgRedo, ImageMManager* imMManager);
88         // ----------------------------------------------------------------------------------
89         /*! @fn virtual void CleanURContainerFromIndex(const int& index);
90          * @brief This method allows to clean the container from a given index.
91          * @param index The index.
92          */
93         virtual void CleanURContainerFromIndex(const int& index);
94         // ----------------------------------------------------------------------------------
95         /*! @fn virtual void ManageMemory();
96          * @brief This method cleans the memory.
97          * @details This method cleans the principal memory when the images are not in use.
98          */
99         virtual void ManageMemory();
100         // ----------------------------------------------------------------------------------
101         /*! @fn virtual ImageInfoUR* Undo();
102          * @brief This method is the undo action.
103          * @return
104          */
105         virtual ImageInfoUR* Undo();
106         // ----------------------------------------------------------------------------------
107         /*! @fn virtual ImageInfoUR* Redo();
108          * @brief This method is the redo action.
109          * @return
110          */
111         virtual ImageInfoUR* Redo();
112         // ----------------------------------------------------------------------------------
113         /*! @fn void SetGlobalPath(const StringType& globalPath);
114          * @brief This method sets the global path where the temporary files will be stored.
115          * @param globalPath The String with the path.
116          */
117 };
118
119 #endif /* IMAGEDEQUE_H_ */