X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fkernel_ManagerContour_NDimensions%2FOutlineModelManager.cxx;h=c2301ce8fb3ebfd906c169e98781f643b350404e;hb=532e76344aea0ee609187d05b871ddcb755f4d35;hp=44d91fa5f592521c68c2fb1dc8d76f5aed628ece;hpb=6e3c929c883c405e0075fa8df10b12a935979367;p=creaContours.git diff --git a/lib/kernel_ManagerContour_NDimensions/OutlineModelManager.cxx b/lib/kernel_ManagerContour_NDimensions/OutlineModelManager.cxx index 44d91fa..c2301ce 100644 --- a/lib/kernel_ManagerContour_NDimensions/OutlineModelManager.cxx +++ b/lib/kernel_ManagerContour_NDimensions/OutlineModelManager.cxx @@ -78,6 +78,7 @@ * @param theCommand Is the command to execute * @param fromRegistration Indicates if the execution is directed from the registration, by default comes from the GUI = false. */ + bool OutlineModelManager :: executeCommand_OutlineModel(std::string outKName, CommandObject * theCommand, bool fromRegistration) { ContourThing * theOutline = *outlinesEnvironment->getThingByName( outKName ); @@ -337,7 +338,7 @@ * @return Returns the key name of the created outline, or ""if it wasn't created */ // bool OutlineModelManager :: createOutline(std::string aName, ContourThing * &theOutline) - std::string OutlineModelManager :: createOutline(manualContourModel * model, std::vector theInstantData, std::string aName) + std::string OutlineModelManager :: createOutline(manualBaseModel * model, std::vector theInstantData, std::string aName) { ContourThing * theOutline = new ContourThing ( model ); theOutline->setName(aName); @@ -763,11 +764,11 @@ std::string OutlineModelManager :: createCopyContourOf( std::string anExistingKName, std::vector &instantNoTouchData ) { - manualContourModel * manModelContour = getOutlineByKeyName( anExistingKName )->getModel()->Clone(); + manualBaseModel * manModelContour = getOutlineByKeyName( anExistingKName )->getModel()->Clone(); return createOutline( manModelContour, instantNoTouchData ); } - void OutlineModelManager::SaveThingName( FILE *pFile, std::string nameThing ) + void OutlineModelManager::SaveThingName( FILE *pFile, FILE *pFileData, std::string nameThing ) { std::vector< Instant * > *lstInstants; lstInstants = outlinesEnvironment->getInstantsOfThing( nameThing ); @@ -782,5 +783,6 @@ fprintf(pFile,"\n"); ContourThing *contourthing = *outlinesEnvironment->getThingByName(nameThing); contourthing->getModel()->Save(pFile); + contourthing->getModel()->SaveData(pFileData); }