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