00001 00002 //---------------------------------------------------------------------------------------------------------------- 00003 // Class definition include 00004 //---------------------------------------------------------------------------------------------------------------- 00005 #include "ContourThing.h" 00006 00007 //---------------------------------------------------------------------------------------------------------------- 00008 // Class implementation 00009 //---------------------------------------------------------------------------------------------------------------- 00012 //------------------------------------------------------------------------------------------------------------ 00013 // Constructors & Destructors 00014 //------------------------------------------------------------------------------------------------------------ 00015 00016 /* 00017 * Creates a ContourThing 00018 */ 00019 ContourThing :: ContourThing(manualBaseModel * model) 00020 { 00021 setModel( model ); 00022 } 00023 00024 /* 00025 * Destroys a ContourThing 00026 */ 00027 ContourThing :: ~ContourThing() 00028 { 00029 00030 } 00031 00032 //------------------------------------------------------------------------------------------------------------ 00033 // Methods 00034 //------------------------------------------------------------------------------------------------------------ 00035 00036 /* 00037 * 00038 */ 00039 std::string ContourThing :: getName() 00040 { 00041 return outlineName; 00042 } 00043 00044 /* 00045 * 00046 */ 00047 void ContourThing :: setName(std::string aName) 00048 { 00049 outlineName = aName; 00050 } 00051 00052 manualBaseModel * ContourThing ::getModel() 00053 { 00054 return theModel; 00055 } 00056 00057 void ContourThing :: setModel(manualBaseModel * model) 00058 { 00059 theModel = model; 00060 } 00061 00062 /* 00063 * Executes the given command if posible and returns is posible or not 00064 * @param theSpecificCommand Is the specific command to execute 00065 * @return Returns if the command was successfuly executed 00066 */ 00067 bool ContourThing :: executeCommand (CommandObject * theSpecificCommand) 00068 { 00069 return true; 00070 } 00071 00072 /* 00073 * Interprets the given command and constructs the opposite command for returning it 00074 * @param theSpecificDOCommand Is the specific DO command 00075 * @return Returns the UNDO command of the given one 00076 */ 00077 CommandObject * ContourThing :: getUndoCommandOf(CommandObject * theSpecificDOCommand) 00078 { 00079 ExecutableCommand * unDOcommand = new ExecutableCommand("UNDO command"); 00080 return unDOcommand; 00081 } 00082 00083