00001
00002
00003
00004
00005
00006
00007 #include "CoordSystemContext.h"
00008 #include "EngaugeAssert.h"
00009 #include "Logger.h"
00010
00011 const CoordSystemIndex DEFAULT_COORD_SYSTEM_INDEX = 0;
00012
00013 CoordSystemContext::CoordSystemContext() :
00014 m_coordSystemIndex (DEFAULT_COORD_SYSTEM_INDEX)
00015 {
00016 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::CoordSystemContext";
00017 }
00018
00019 CoordSystemContext::~CoordSystemContext()
00020 {
00021 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::~CoordSystemContext";
00022
00023 for (int i = 0; i < m_coordSystems.count(); i++) {
00024 CoordSystem *coordSystem = m_coordSystems.at (i);
00025 delete coordSystem;
00026 }
00027
00028 m_coordSystems.clear ();
00029 m_coordSystemIndex = 0;
00030 }
00031
00032 void CoordSystemContext::addCoordSystems(DocumentAxesPointsRequired documentAxesPointsRequired,
00033 unsigned int numberCoordSystemToAdd)
00034 {
00035 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::addCoordSystems"
00036 << " numberToAdd=" << numberCoordSystemToAdd;
00037
00038
00039 for (unsigned int i = 0; i < numberCoordSystemToAdd; i++) {
00040 m_coordSystems.push_back (new CoordSystem (documentAxesPointsRequired));
00041 }
00042 }
00043
00044 void CoordSystemContext::addGraphCurveAtEnd (const QString &curveName)
00045 {
00046 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::addGraphCurveAtEnd";
00047
00048 m_coordSystems [m_coordSystemIndex]->addGraphCurveAtEnd(curveName);
00049 }
00050
00051 void CoordSystemContext::addPointAxisWithGeneratedIdentifier (const QPointF &posScreen,
00052 const QPointF &posGraph,
00053 QString &identifier,
00054 double ordinal,
00055 bool isXOnly)
00056 {
00057 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::addPointAxisWithGeneratedIdentifier";
00058
00059 m_coordSystems [m_coordSystemIndex]->addPointAxisWithGeneratedIdentifier(posScreen,
00060 posGraph,
00061 identifier,
00062 ordinal,
00063 isXOnly);
00064 }
00065
00066 void CoordSystemContext::addPointAxisWithSpecifiedIdentifier (const QPointF &posScreen,
00067 const QPointF &posGraph,
00068 const QString &identifier,
00069 double ordinal,
00070 bool isXOnly)
00071 {
00072 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::addPointAxisWithSpecifiedIdentifier";
00073
00074 m_coordSystems [m_coordSystemIndex]->addPointAxisWithSpecifiedIdentifier(posScreen,
00075 posGraph,
00076 identifier,
00077 ordinal,
00078 isXOnly);
00079 }
00080
00081 void CoordSystemContext::addPointGraphWithGeneratedIdentifier (const QString &curveName,
00082 const QPointF &posScreen,
00083 QString &generatedIdentifier,
00084 double ordinal)
00085 {
00086 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::addPointGraphWithGeneratedIdentifier";
00087
00088 m_coordSystems [m_coordSystemIndex]->addPointGraphWithGeneratedIdentifier(curveName,
00089 posScreen,
00090 generatedIdentifier,
00091 ordinal);
00092 }
00093
00094 void CoordSystemContext::addPointGraphWithSpecifiedIdentifier (const QString &curveName,
00095 const QPointF &posScreen,
00096 const QString &identifier,
00097 double ordinal)
00098 {
00099 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::addPointGraphWithSpecifiedIdentifier";
00100
00101 m_coordSystems [m_coordSystemIndex]->addPointGraphWithSpecifiedIdentifier(curveName,
00102 posScreen,
00103 identifier,
00104 ordinal);
00105 }
00106
00107 void CoordSystemContext::addPointsInCurvesGraphs (CurvesGraphs &curvesGraphs)
00108 {
00109 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::addPointsInCurvesGraphs";
00110
00111 m_coordSystems [m_coordSystemIndex]->addPointsInCurvesGraphs(curvesGraphs);
00112 }
00113
00114 void CoordSystemContext::checkAddPointAxis (const QPointF &posScreen,
00115 const QPointF &posGraph,
00116 bool &isError,
00117 QString &errorMessage,
00118 bool isXOnly)
00119 {
00120 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::checkAddPointAxis";
00121
00122 m_coordSystems [m_coordSystemIndex]->checkAddPointAxis(posScreen,
00123 posGraph,
00124 isError,
00125 errorMessage,
00126 isXOnly);
00127 }
00128
00129 void CoordSystemContext::checkEditPointAxis (const QString &pointIdentifier,
00130 const QPointF &posScreen,
00131 const QPointF &posGraph,
00132 bool &isError,
00133 QString &errorMessage)
00134 {
00135 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::checkEditPointAxis";
00136
00137 m_coordSystems [m_coordSystemIndex]->checkEditPointAxis(pointIdentifier,
00138 posScreen,
00139 posGraph,
00140 isError,
00141 errorMessage);
00142 }
00143
00144 const CoordSystem &CoordSystemContext::coordSystem () const
00145 {
00146 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::coordSystem";
00147
00148 return *(m_coordSystems [m_coordSystemIndex]);
00149 }
00150
00151 unsigned int CoordSystemContext::coordSystemCount() const
00152 {
00153 return m_coordSystems.count();
00154 }
00155
00156 CoordSystemIndex CoordSystemContext::coordSystemIndex () const
00157 {
00158 return m_coordSystemIndex;
00159 }
00160
00161 const Curve &CoordSystemContext::curveAxes () const
00162 {
00163 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::curveAxes";
00164
00165 return m_coordSystems [m_coordSystemIndex]->curveAxes();
00166 }
00167
00168 Curve *CoordSystemContext::curveForCurveName (const QString &curveName)
00169 {
00170 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::curveForCurveName";
00171
00172 return m_coordSystems [m_coordSystemIndex]->curveForCurveName(curveName);
00173 }
00174
00175 const Curve *CoordSystemContext::curveForCurveName (const QString &curveName) const
00176 {
00177 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::curveForCurveName";
00178
00179 return m_coordSystems [m_coordSystemIndex]->curveForCurveName(curveName);
00180 }
00181
00182 const CurvesGraphs &CoordSystemContext::curvesGraphs () const
00183 {
00184 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::curvesGraphs";
00185
00186 return m_coordSystems [m_coordSystemIndex]->curvesGraphs();
00187 }
00188
00189 QStringList CoordSystemContext::curvesGraphsNames () const
00190 {
00191 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::curvesGraphsNames";
00192
00193 return m_coordSystems [m_coordSystemIndex]->curvesGraphsNames();
00194 }
00195
00196 int CoordSystemContext::curvesGraphsNumPoints (const QString &curveName) const
00197 {
00198 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::curvesGraphsNumPoints";
00199
00200 return m_coordSystems [m_coordSystemIndex]->curvesGraphsNumPoints(curveName);
00201 }
00202
00203 void CoordSystemContext::editPointAxis (const QPointF &posGraph,
00204 const QString &identifier)
00205 {
00206 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::editPointAxis";
00207
00208 m_coordSystems [m_coordSystemIndex]->editPointAxis(posGraph,
00209 identifier);
00210 }
00211
00212 void CoordSystemContext::editPointGraph (bool isX,
00213 bool isY,
00214 double x,
00215 double y,
00216 const QStringList &identifiers,
00217 const Transformation &transformation)
00218 {
00219 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::editPointGraph";
00220
00221 m_coordSystems [m_coordSystemIndex]->editPointGraph (isX,
00222 isY,
00223 x,
00224 y,
00225 identifiers,
00226 transformation);
00227 }
00228
00229 bool CoordSystemContext::isXOnly (const QString &pointIdentifier) const
00230 {
00231 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::isXOnly";
00232
00233 return m_coordSystems [m_coordSystemIndex]->isXOnly (pointIdentifier);
00234 }
00235
00236 void CoordSystemContext::iterateThroughCurvePointsAxes (const Functor2wRet<const QString &, const Point &, CallbackSearchReturn> &ftorWithCallback)
00237 {
00238 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::iterateThroughCurvePointsAxes";
00239
00240 m_coordSystems [m_coordSystemIndex]->iterateThroughCurvePointsAxes(ftorWithCallback);
00241 }
00242
00243 void CoordSystemContext::iterateThroughCurvePointsAxes (const Functor2wRet<const QString &, const Point &, CallbackSearchReturn> &ftorWithCallback) const
00244 {
00245 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::iterateThroughCurvePointsAxes";
00246
00247 m_coordSystems [m_coordSystemIndex]->iterateThroughCurvePointsAxes(ftorWithCallback);
00248 }
00249
00250 void CoordSystemContext::iterateThroughCurveSegments (const QString &curveName,
00251 const Functor2wRet<const Point &, const Point &, CallbackSearchReturn> &ftorWithCallback) const
00252 {
00253 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::iterateThroughCurveSegments";
00254
00255 m_coordSystems [m_coordSystemIndex]->iterateThroughCurveSegments(curveName,
00256 ftorWithCallback);
00257 }
00258
00259 void CoordSystemContext::iterateThroughCurvesPointsGraphs (const Functor2wRet<const QString &, const Point &, CallbackSearchReturn> &ftorWithCallback)
00260 {
00261 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::iterateThroughCurvesPointsGraphs";
00262
00263 m_coordSystems [m_coordSystemIndex]->iterateThroughCurvesPointsGraphs(ftorWithCallback);
00264 }
00265
00266 void CoordSystemContext::iterateThroughCurvesPointsGraphs (const Functor2wRet<const QString &, const Point &, CallbackSearchReturn> &ftorWithCallback) const
00267 {
00268 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::iterateThroughCurvesPointsGraphs";
00269
00270 m_coordSystems [m_coordSystemIndex]->iterateThroughCurvesPointsGraphs(ftorWithCallback);
00271 }
00272
00273 bool CoordSystemContext::loadCurvesFile (const QString &curvesFile)
00274 {
00275 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::loadCurvesFile";
00276
00277 return m_coordSystems [m_coordSystemIndex]->loadCurvesFile (curvesFile);
00278 }
00279
00280 void CoordSystemContext::loadPreVersion6 (QDataStream &str,
00281 double version)
00282 {
00283 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::loadPreVersion6";
00284
00285 m_coordSystems [m_coordSystemIndex]->loadPreVersion6 (str,
00286 version);
00287 }
00288
00289 void CoordSystemContext::loadVersion6 (QXmlStreamReader &reader)
00290 {
00291 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::loadVersion6";
00292
00293 m_coordSystems [m_coordSystemIndex]->loadVersion6 (reader);
00294 }
00295
00296 void CoordSystemContext::loadVersions7AndUp (QXmlStreamReader &reader,
00297 DocumentAxesPointsRequired documentAxesPointsRequired)
00298 {
00299 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::loadVersion7AndUp";
00300
00301 int indexLast = m_coordSystems.count() - 1;
00302 m_coordSystems [indexLast]->loadVersions7AndUp (reader,
00303 documentAxesPointsRequired);
00304 }
00305
00306 DocumentModelAxesChecker CoordSystemContext::modelAxesChecker() const
00307 {
00308 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelAxesChecker";
00309
00310 return m_coordSystems [m_coordSystemIndex]->modelAxesChecker();
00311 }
00312
00313 DocumentModelColorFilter CoordSystemContext::modelColorFilter() const
00314 {
00315 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelColorFilter";
00316
00317 return m_coordSystems [m_coordSystemIndex]->modelColorFilter();
00318 }
00319
00320 DocumentModelCoords CoordSystemContext::modelCoords () const
00321 {
00322 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelCoords";
00323
00324 return m_coordSystems [m_coordSystemIndex]->modelCoords();
00325 }
00326
00327 CurveStyles CoordSystemContext::modelCurveStyles() const
00328 {
00329 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelCurveStyles";
00330
00331 return m_coordSystems [m_coordSystemIndex]->modelCurveStyles();
00332 }
00333
00334 DocumentModelDigitizeCurve CoordSystemContext::modelDigitizeCurve() const
00335 {
00336 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelDigitizeCurve";
00337
00338 return m_coordSystems [m_coordSystemIndex]->modelDigitizeCurve();
00339 }
00340
00341 DocumentModelExportFormat CoordSystemContext::modelExport() const
00342 {
00343 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelExport";
00344
00345 return m_coordSystems [m_coordSystemIndex]->modelExport();
00346 }
00347
00348 DocumentModelGeneral CoordSystemContext::modelGeneral() const
00349 {
00350 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelGeneral";
00351
00352 return m_coordSystems [m_coordSystemIndex]->modelGeneral();
00353 }
00354
00355 DocumentModelGridDisplay CoordSystemContext::modelGridDisplay() const
00356 {
00357 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelGridDisplay";
00358
00359 return m_coordSystems [m_coordSystemIndex]->modelGridDisplay();
00360 }
00361
00362 DocumentModelGridRemoval CoordSystemContext::modelGridRemoval() const
00363 {
00364 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelGridRemoval";
00365
00366 return m_coordSystems [m_coordSystemIndex]->modelGridRemoval();
00367 }
00368
00369 DocumentModelPointMatch CoordSystemContext::modelPointMatch() const
00370 {
00371 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelPointMatch";
00372
00373 return m_coordSystems [m_coordSystemIndex]->modelPointMatch();
00374 }
00375
00376 DocumentModelSegments CoordSystemContext::modelSegments() const
00377 {
00378 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelSegments";
00379
00380 return m_coordSystems [m_coordSystemIndex]->modelSegments();
00381 }
00382
00383 void CoordSystemContext::movePoint (const QString &pointIdentifier,
00384 const QPointF &deltaScreen)
00385 {
00386 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::movePoint";
00387
00388 return m_coordSystems [m_coordSystemIndex]->movePoint(pointIdentifier,
00389 deltaScreen);
00390 }
00391
00392 int CoordSystemContext::nextOrdinalForCurve (const QString &curveName) const
00393 {
00394 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::nextOrdinalForCurve";
00395
00396 return m_coordSystems [m_coordSystemIndex]->nextOrdinalForCurve(curveName);
00397 }
00398
00399 QPointF CoordSystemContext::positionGraph (const QString &pointIdentifier) const
00400 {
00401 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::positionGraph";
00402
00403 return m_coordSystems [m_coordSystemIndex]->positionGraph(pointIdentifier);
00404 }
00405
00406 QPointF CoordSystemContext::positionScreen (const QString &pointIdentifier) const
00407 {
00408 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::addGraphCurveAtEnd";
00409
00410 return m_coordSystems [m_coordSystemIndex]->positionScreen(pointIdentifier);
00411 }
00412
00413 void CoordSystemContext::print () const
00414 {
00415 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::print";
00416
00417 return m_coordSystems [m_coordSystemIndex]->print();
00418 }
00419
00420 void CoordSystemContext::printStream (QString indentation,
00421 QTextStream &str) const
00422 {
00423 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::printStream";
00424
00425 m_coordSystems [m_coordSystemIndex]->printStream(indentation,
00426 str);
00427 }
00428
00429 QString CoordSystemContext::reasonForUnsuccessfulRead () const
00430 {
00431 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::reasonForUnsuccessfulRead";
00432
00433 return m_coordSystems [m_coordSystemIndex]->reasonForUnsuccessfulRead();
00434 }
00435
00436 void CoordSystemContext::removePointAxis (const QString &identifier)
00437 {
00438 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::removePointAxis";
00439
00440 m_coordSystems [m_coordSystemIndex]->removePointAxis(identifier);
00441 }
00442
00443 void CoordSystemContext::removePointGraph (const QString &identifier)
00444 {
00445 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::removePointGraph";
00446
00447 m_coordSystems [m_coordSystemIndex]->removePointGraph(identifier);
00448 }
00449
00450 void CoordSystemContext::removePointsInCurvesGraphs (CurvesGraphs &curvesGraphs)
00451 {
00452 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::removePointsInCurvesGraphs";
00453
00454 m_coordSystems [m_coordSystemIndex]->removePointsInCurvesGraphs(curvesGraphs);
00455 }
00456
00457 void CoordSystemContext::saveXml (QXmlStreamWriter &writer) const
00458 {
00459 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::saveXml";
00460
00461 for (int index = 0; index < m_coordSystems.count(); index++) {
00462 m_coordSystems [index]->saveXml (writer);
00463 }
00464 }
00465
00466 QString CoordSystemContext::selectedCurveName () const
00467 {
00468 return m_coordSystems [m_coordSystemIndex]->selectedCurveName();
00469 }
00470
00471 void CoordSystemContext::setCoordSystemIndex(CoordSystemIndex coordSystemIndex)
00472 {
00473 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setCoordSystemIndex"
00474 << " index=" << coordSystemIndex;
00475
00476 ENGAUGE_ASSERT(coordSystemIndex < (unsigned int) m_coordSystems.count());
00477
00478 m_coordSystemIndex = coordSystemIndex;
00479 }
00480
00481 void CoordSystemContext::setCurveAxes (const Curve &curveAxes)
00482 {
00483 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setCurveAxes";
00484
00485 m_coordSystems [m_coordSystemIndex]->setCurveAxes(curveAxes);
00486 }
00487
00488 void CoordSystemContext::setCurvesGraphs (const CurvesGraphs &curvesGraphs)
00489 {
00490 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setCurvesGraphs";
00491
00492 m_coordSystems [m_coordSystemIndex]->setCurvesGraphs(curvesGraphs);
00493 }
00494
00495 void CoordSystemContext::setModelAxesChecker(const DocumentModelAxesChecker &modelAxesChecker)
00496 {
00497 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelAxesChecker";
00498
00499 m_coordSystems [m_coordSystemIndex]->setModelAxesChecker(modelAxesChecker);
00500 }
00501
00502 void CoordSystemContext::setModelColorFilter(const DocumentModelColorFilter &modelColorFilter)
00503 {
00504 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelColorFilter";
00505
00506 m_coordSystems [m_coordSystemIndex]->setModelColorFilter(modelColorFilter);
00507 }
00508
00509 void CoordSystemContext::setModelCoords (const DocumentModelCoords &modelCoords)
00510 {
00511 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelCoords";
00512
00513 m_coordSystems [m_coordSystemIndex]->setModelCoords(modelCoords);
00514 }
00515
00516 void CoordSystemContext::setModelCurveStyles(const CurveStyles &modelCurveStyles)
00517 {
00518 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelCurveStyles";
00519
00520 m_coordSystems [m_coordSystemIndex]->setModelCurveStyles(modelCurveStyles);
00521 }
00522
00523 void CoordSystemContext::setModelDigitizeCurve (const DocumentModelDigitizeCurve &modelDigitizeCurve)
00524 {
00525 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelDigitizeCurve";
00526
00527 m_coordSystems [m_coordSystemIndex]->setModelDigitizeCurve(modelDigitizeCurve);
00528 }
00529
00530 void CoordSystemContext::setModelExport(const DocumentModelExportFormat &modelExport)
00531 {
00532 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelExport";
00533
00534 m_coordSystems [m_coordSystemIndex]->setModelExport (modelExport);
00535 }
00536
00537 void CoordSystemContext::setModelGeneral (const DocumentModelGeneral &modelGeneral)
00538 {
00539 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelGeneral";
00540
00541 m_coordSystems [m_coordSystemIndex]->setModelGeneral(modelGeneral);
00542 }
00543
00544 void CoordSystemContext::setModelGridDisplay(const DocumentModelGridDisplay &modelGridDisplay)
00545 {
00546 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelGridDisplay";
00547
00548 m_coordSystems [m_coordSystemIndex]->setModelGridDisplay(modelGridDisplay);
00549 }
00550
00551 void CoordSystemContext::setModelGridRemoval(const DocumentModelGridRemoval &modelGridRemoval)
00552 {
00553 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelGridRemoval";
00554
00555 m_coordSystems [m_coordSystemIndex]->setModelGridRemoval(modelGridRemoval);
00556 }
00557
00558 void CoordSystemContext::setModelPointMatch(const DocumentModelPointMatch &modelPointMatch)
00559 {
00560 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelPointMatch";
00561
00562 m_coordSystems [m_coordSystemIndex]->setModelPointMatch(modelPointMatch);
00563 }
00564
00565 void CoordSystemContext::setModelSegments(const DocumentModelSegments &modelSegments)
00566 {
00567 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelSegments";
00568
00569 m_coordSystems [m_coordSystemIndex]->setModelSegments(modelSegments);
00570 }
00571
00572 void CoordSystemContext::setSelectedCurveName(const QString &selectedCurveName)
00573 {
00574 m_coordSystems [m_coordSystemIndex]->setSelectedCurveName(selectedCurveName);
00575 }
00576
00577 bool CoordSystemContext::successfulRead () const
00578 {
00579 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::successfulRead";
00580
00581 return m_coordSystems [m_coordSystemIndex]->successfulRead();
00582 }
00583
00584 void CoordSystemContext::updatePointOrdinals (const Transformation &transformation)
00585 {
00586 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::updatePointOrdinals";
00587
00588 m_coordSystems [m_coordSystemIndex]->updatePointOrdinals(transformation);
00589 }