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