]> Creatis software - creaContours.git/blobdiff - lib/kernel_ManagerContour_NDimensions/OutlineModelManager.cxx
Changes with manualBaseModel. It improves the functionality with the new
[creaContours.git] / lib / kernel_ManagerContour_NDimensions / OutlineModelManager.cxx
index 89d0b6da6df88b33a53f905c56a10cce3ac0759b..c2301ce8fb3ebfd906c169e98781f643b350404e 100644 (file)
                * @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<int> theInstantData, std::string aName)
+       std::string  OutlineModelManager :: createOutline(manualBaseModel * model, std::vector<int> theInstantData, std::string aName)
        {
                ContourThing * theOutline = new ContourThing ( model );
                theOutline->setName(aName);             
 
        std::string OutlineModelManager :: createCopyContourOf( std::string anExistingKName, std::vector<int> &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 );
                fprintf(pFile,"\n");
                ContourThing *contourthing = *outlinesEnvironment->getThingByName(nameThing);
                contourthing->getModel()->Save(pFile);
+               contourthing->getModel()->SaveData(pFileData);
        }