]> Creatis software - creaContours.git/blobdiff - lib/kernel_ManagerContour_NDimensions/OutlineModelManager.cxx
no message
[creaContours.git] / lib / kernel_ManagerContour_NDimensions / OutlineModelManager.cxx
index 2c7d7033df0acd23ce3246e736f79bb6bbe88be8..89d0b6da6df88b33a53f905c56a10cce3ac0759b 100644 (file)
@@ -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 );
        bool OutlineModelManager :: addOutlinesGroup( std::string theOutlineName, OutlineGroup * theGroup )
        {
         outlineGroups.insert(std::pair <std::string, OutlineGroup *> ( theOutlineName, theGroup ));                            
-               std::map<std::string, OutlineGroup *> :: iterator iter = NULL;
+//             std::map<std::string, OutlineGroup *> :: iterator iter = NULL;
+               std::map<std::string, OutlineGroup *> :: iterator iter;
                iter = outlineGroups.find( theOutlineName );
                bool ifAdded = iter->first.compare( theOutlineName ) == 0;
                return ifAdded;
                updateToActualInstant();
        }
 
+       Instant* OutlineModelManager :: getInstant()
+       {
+               return actualInstant;
+       }
+
        /*
        * Gets the an axe with a given keyName
        * @axeKName The axe keyName for searching in the axes environment