43 OutlineModelManager :: OutlineModelManager( SomeEnvironment<ImageSourceThing *> *imSourceEnv, SomeEnvironment<ImageSectionThing *> *imSectionEnv, SomeEnvironment<AxeThing *> *axesEnv, SomeEnvironment<ContourThing *> *contourEnv )
110 if(!fromRegistration)
125 bool executedCom =
true;
143 bool executedComs = executionQueue.size()>0 ?
true :
false;
144 while( executionQueue.size()>0 )
148 executionQueue.pop_front();
163 std::string::size_type equalIndex = conceptsScript.find(
"=", 0);
164 std::string::size_type nextIndex = 0;
165 while( equalIndex != std::string::npos && allOK)
168 std::string concept = conceptsScript.substr( 0, endSub );
169 conceptsScript.erase( 0, endSub+1 );
170 std::cout <<
"C: " << concept <<std::endl;
171 nextIndex = conceptsScript.find(
";", 0);
173 if(nextIndex != std::string::npos)
176 cSize = conceptsScript.substr( 0, endSub );
177 conceptsScript.erase( 0, endSub+1 );
181 endSub = conceptsScript.size();
182 cSize = conceptsScript.substr( 0, endSub );
183 conceptsScript.erase( 0, endSub );
185 int intReturn = atoi(cSize.c_str());
186 std::cout <<
"SZ: "<<intReturn <<std::endl;
187 equalIndex = conceptsScript.find(
"=", 0);
226 if (ispartofstaticlist==-1)
246 std::vector<std::string> kNamesVector;
247 std::vector<ContourThing **> outlinesVector;
252 for ( i=0 ; i<sizeStaticContourLst ; i++ )
255 outlinesVector.push_back( contourthing );
256 kNamesVector.push_back( (*contourthing)->getName() );
263 return outlinesVector;
269 std::vector<std::string> result;
271 for ( i=0 ; i<sizeStaticContourLst ; i++ )
274 result.push_back( (*contourthing)->getName() );
281 std::vector<std::string> kNamesVector;
282 std::vector<ContourThing **> outlinesVector;
284 int i,sizeLstInstants = lstInstants.size();
286 for ( i=0 ; i<sizeLstInstants ; i++ )
288 instant = lstInstants[i];
302 std::vector<ContourThing *> outlinesVector;
303 std::map< std::string,OutlineGroup * >::iterator iterP =
outlineGroups.find(aGroupName);
306 std::vector<std::string> kNamesVector = iterP->second->getGroupOutlinesNames();
307 for(
int i=0; i<kNamesVector.size();i++)
310 outlinesVector.push_back(outlineI);
313 return outlinesVector;
323 outlineGroups.insert(std::pair <std::string, OutlineGroup *> ( theOutlineName, theGroup ));
325 std::map<std::string, OutlineGroup *> :: iterator iter;
327 bool ifAdded = iter->first.compare( theOutlineName ) == 0;
370 return addOutline( theOutline,
new Instant( &theInstantData ) );
383 return addAxe(theAxe, theInstantData);
428 if( theOutline->
getName().compare(
"")==0 )
444 for( i=0 ; i<size ; i++ )
447 if ((*contourthing)->getName() == ss)
472 std::vector< ContourThing **> thingsVector;
474 int i,sizeThingVector = thingsVector.size();
475 for(i=0;i<sizeThingVector;i++)
493 added &=
axesEnvironment->addThingWithInstant(kName,theAxe, theInstantData);
543 for(
int i=0; i<kNamesVector.size(); i++)
772 int axeDepthC_size = INT_MAX;
798 std::vector< Instant * > *lstInstants;
800 Instant *instant = (*lstInstants)[0];
801 std::vector<int> *vecInst =instant->getInstant();
802 int i,sizeVecInst = vecInst->size();
803 fprintf(pFile,
"Instant ");
804 for ( i=0 ; i<sizeVecInst ; i++ )
806 fprintf(pFile,
"%d ",(*vecInst)[i]);
810 contourthing->
getModel()->Save(pFile);
811 contourthing->
getModel()->SaveData(pFileData);