1 /*# ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
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
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.
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
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 # ------------------------------------------------------------------------ */
27 * @file imageDequeUR.h
28 * @brief This file contains the Image3DDequeUR class. -- Abstract class
30 * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
37 #include "imageInfoUR.h"
41 //#include <vtkImageData.h>
42 //#include <vtkSmartPointer.h>
43 //#include "imageModificationManager.h"
45 /*! @class ImageDequeUR imageDequeUR.h "imageDequeUR.cxx"
46 * @brief This class contains the management of the undo/redo - Abstract Class
51 // ----------------------------------------------------------------------------------
52 /*! @typedef vtkSmartPointer<vtkImageData> VTKImageDataPointerType;
53 * @brief Defines the pointer of vtkImageDate type.
55 typedef vtkSmartPointer<vtkImageData> VTKImageDataPointerType;
56 // ----------------------------------------------------------------------------------
57 /*! @typedef std::string StringType;
58 * @brief Redefinition of the string type.
60 typedef std::string StringType;
61 // ----------------------------------------------------------------------------------
62 /*! @typedef ImageMManager ImageMManagerType;
63 * @brief Definition of the ImageMManager type.
65 typedef ImageMManager ImageMManagerType;
66 // ----------------------------------------------------------------------------------
68 // ----------------------------------------------------------------------------------
69 /*! @fn ImageDequeUR();
70 * @brief This is the default constructor.
73 // ----------------------------------------------------------------------------------
74 /*! @fn virtual ~ImageDequeUR();
75 * @brief This is the destructor.
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.
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.
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.
99 virtual void ManageMemory();
100 // ----------------------------------------------------------------------------------
101 /*! @fn virtual ImageInfoUR* Undo();
102 * @brief This method is the undo action.
105 virtual ImageInfoUR* Undo();
106 // ----------------------------------------------------------------------------------
107 /*! @fn virtual ImageInfoUR* Redo();
108 * @brief This method is the redo action.
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.
119 #endif /* IMAGEDEQUE_H_ */