]> Creatis software - creaContours.git/blob - lib/kernel_ManagerContour_NDimensions/ContourThing.h
Changes with manualBaseModel. It improves the functionality with the new
[creaContours.git] / lib / kernel_ManagerContour_NDimensions / ContourThing.h
1 #ifndef __CONTOUR_THING__
2 #define __CONTOUR_THING__
3
4
5
6 //------------------------------------------------------------------------------------------------------------
7 // Includes
8 //------------------------------------------------------------------------------------------------------------
9 #include <iostream>
10 #include "CommandObject.h"
11 #include "ExecutableCommand.h"
12 #include "ComposedCommand.h"
13 #include "manualContourModel.h"
14
15 class ContourThing{
16
17 //------------------------------------------------------------------------------------------------------------
18 // Constructors & Destructors
19 //------------------------------------------------------------------------------------------------------------
20 public:
21
22         /*
23         * Creates a ContourThing 
24         */
25         ContourThing(manualBaseModel * model);
26
27         /*
28         * Destroys a ContourThing 
29         */
30         ~ContourThing();
31 //------------------------------------------------------------------------------------------------------------
32 // Methods
33 //------------------------------------------------------------------------------------------------------------
34
35         /*
36         * 
37         */
38         std::string getName();
39
40         /*
41         *
42         */
43         void setName(std::string  aName);
44
45         
46         manualBaseModel * getModel();
47
48         void setModel(manualBaseModel * model);
49
50         /*
51         * Executes the given command if posible and returns is posible or not
52         * @param theSpecificCommand Is the specific command to execute
53         * @return Returns if the command was successfuly executed
54         */
55         bool executeCommand (CommandObject * theSpecificCommand);
56
57         /*
58         * Interprets the given command and constructs the opposite command for returning it
59         * @param theSpecificDOCommand Is the specific DO command 
60         * @return Returns the UNDO command of the given one
61         */
62         CommandObject * getUndoCommandOf(CommandObject * theSpecificDOCommand);
63
64
65 //------------------------------------------------------------------------------------------------------------
66 // Constants
67 //------------------------------------------------------------------------------------------------------------
68
69 private:        
70 //------------------------------------------------------------------------------------------------------------
71 // Attributes
72 //------------------------------------------------------------------------------------------------------------
73
74         std::string outlineName;
75
76         manualBaseModel * theModel;
77 };
78 #endif