25 #include "g-map-vertex.hh"
30 using namespace GMap3d;
43 s<<
"Selection level number: "<<ALevel + 1;
76 FMap->negateMaskMark(mark);
99 CDynamicCoverageAll it(
FMap);
102 bool t =
FMap->isMarked(*it, mark1);
103 FMap->setMarkTo(*it, mark1,
FMap->isMarked(*it, mark2));
104 FMap->setMarkTo(*it, mark2, t);
109 FParameterSelection->
swapLevels(ALevel1, ALevel2);
113 s<<
"Swap selection levels "<<ALevel1<<
" and "<<ALevel2;
142 assert(0 <= ADimension && ADimension <= 3);
151 "-borders incident to selected darts marked");
172 setMessage(
"Borders incident to selected darts marked");
235 if (!((1 <= AInitialDim && AInitialDim <= 3) &&
236 (0 <= AFinalDim && AFinalDim <= 2) &&
237 (AInitialDim != AFinalDim)))
239 setMessage(
"Selection of the intersection not possible");
245 int markR =
FMap->getNewMark();
247 TOrbit orbit1 = ORBIT_CELL[AInitialDim];
248 TOrbit orbit2 = ORBIT_CELL[AFinalDim ];
251 FMap->markIntersection(mark1, mark2, orbit1, orbit2, markR,
true);
252 FMap->markCopy(markR, mark1);
268 if (!motif.importOff(AFilename))
274 int index = motif.findMotif(
FMap);
278 setMessage(
"Motif not founded in the current map");
282 for (CDynamicCoverageAll it(&motif); it.cont(); ++it)
284 assert(motif.getDirectInfo(*it, index) != NULL);
285 FMap->setMark(motif.getDirectInfoAsDart(*it, index),
288 motif.freeDirectInfo(index);
301 TSaveFormat format = CGMapVertex::getFileFormat(AFilename);
302 if (motif.load(AFilename, format)==NULL)
308 int index = motif.findMotif(
FMap);
312 setMessage(
"Motif not founded in the current map");
316 for (CDynamicCoverageAll it(&motif); it.cont(); ++it)
318 assert(motif.getDirectInfo(*it, index) != NULL);
319 FMap->setMark(motif.getDirectInfoAsDart(*it, index),
322 motif.freeDirectInfo(index);
335 TSaveFormat format = CGMapVertex::getFileFormat(AFilename);
336 if (motif.load(AFilename, format)==NULL)
342 unsigned int res = motif.countNumberOfMotifs(
FMap);
346 setMessage(
"Motif not founded in the current map");
349 setMessage(
"Motif founded ", res, (res>1?
"times":
"time"));
361 if (!motif.importOff(AFilename))
367 unsigned int res = motif.countNumberOfMotifs(
FMap);
371 setMessage(
"Motif not founded in the current map");
374 setMessage(
"Motif founded ", res, (res>1?
"times":
"time"));