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 bool CoordSystemContext::isXOnly (const QString &pointIdentifier) const
00213 {
00214 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::isXOnly";
00215
00216 return m_coordSystems [m_coordSystemIndex]->isXOnly (pointIdentifier);
00217 }
00218
00219 void CoordSystemContext::iterateThroughCurvePointsAxes (const Functor2wRet<const QString &, const Point &, CallbackSearchReturn> &ftorWithCallback)
00220 {
00221 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::iterateThroughCurvePointsAxes";
00222
00223 m_coordSystems [m_coordSystemIndex]->iterateThroughCurvePointsAxes(ftorWithCallback);
00224 }
00225
00226 void CoordSystemContext::iterateThroughCurvePointsAxes (const Functor2wRet<const QString &, const Point &, CallbackSearchReturn> &ftorWithCallback) const
00227 {
00228 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::iterateThroughCurvePointsAxes";
00229
00230 m_coordSystems [m_coordSystemIndex]->iterateThroughCurvePointsAxes(ftorWithCallback);
00231 }
00232
00233 void CoordSystemContext::iterateThroughCurveSegments (const QString &curveName,
00234 const Functor2wRet<const Point &, const Point &, CallbackSearchReturn> &ftorWithCallback) const
00235 {
00236 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::iterateThroughCurveSegments";
00237
00238 m_coordSystems [m_coordSystemIndex]->iterateThroughCurveSegments(curveName,
00239 ftorWithCallback);
00240 }
00241
00242 void CoordSystemContext::iterateThroughCurvesPointsGraphs (const Functor2wRet<const QString &, const Point &, CallbackSearchReturn> &ftorWithCallback)
00243 {
00244 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::iterateThroughCurvesPointsGraphs";
00245
00246 m_coordSystems [m_coordSystemIndex]->iterateThroughCurvesPointsGraphs(ftorWithCallback);
00247 }
00248
00249 void CoordSystemContext::iterateThroughCurvesPointsGraphs (const Functor2wRet<const QString &, const Point &, CallbackSearchReturn> &ftorWithCallback) const
00250 {
00251 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::iterateThroughCurvesPointsGraphs";
00252
00253 m_coordSystems [m_coordSystemIndex]->iterateThroughCurvesPointsGraphs(ftorWithCallback);
00254 }
00255
00256 bool CoordSystemContext::loadCurvesFile (const QString &curvesFile)
00257 {
00258 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::loadCurvesFile";
00259
00260 return m_coordSystems [m_coordSystemIndex]->loadCurvesFile (curvesFile);
00261 }
00262
00263 void CoordSystemContext::loadPreVersion6 (QDataStream &str,
00264 double version)
00265 {
00266 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::loadPreVersion6";
00267
00268 m_coordSystems [m_coordSystemIndex]->loadPreVersion6 (str,
00269 version);
00270 }
00271
00272 void CoordSystemContext::loadVersion6 (QXmlStreamReader &reader)
00273 {
00274 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::loadVersion6";
00275
00276 m_coordSystems [m_coordSystemIndex]->loadVersion6 (reader);
00277 }
00278
00279 void CoordSystemContext::loadVersions7AndUp (QXmlStreamReader &reader,
00280 DocumentAxesPointsRequired documentAxesPointsRequired)
00281 {
00282 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::loadVersion7AndUp";
00283
00284 int indexLast = m_coordSystems.count() - 1;
00285 m_coordSystems [indexLast]->loadVersions7AndUp (reader,
00286 documentAxesPointsRequired);
00287 }
00288
00289 DocumentModelAxesChecker CoordSystemContext::modelAxesChecker() const
00290 {
00291 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelAxesChecker";
00292
00293 return m_coordSystems [m_coordSystemIndex]->modelAxesChecker();
00294 }
00295
00296 DocumentModelColorFilter CoordSystemContext::modelColorFilter() const
00297 {
00298 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelColorFilter";
00299
00300 return m_coordSystems [m_coordSystemIndex]->modelColorFilter();
00301 }
00302
00303 DocumentModelCoords CoordSystemContext::modelCoords () const
00304 {
00305 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelCoords";
00306
00307 return m_coordSystems [m_coordSystemIndex]->modelCoords();
00308 }
00309
00310 CurveStyles CoordSystemContext::modelCurveStyles() const
00311 {
00312 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelCurveStyles";
00313
00314 return m_coordSystems [m_coordSystemIndex]->modelCurveStyles();
00315 }
00316
00317 DocumentModelDigitizeCurve CoordSystemContext::modelDigitizeCurve() const
00318 {
00319 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelDigitizeCurve";
00320
00321 return m_coordSystems [m_coordSystemIndex]->modelDigitizeCurve();
00322 }
00323
00324 DocumentModelExportFormat CoordSystemContext::modelExport() const
00325 {
00326 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelExport";
00327
00328 return m_coordSystems [m_coordSystemIndex]->modelExport();
00329 }
00330
00331 DocumentModelGeneral CoordSystemContext::modelGeneral() const
00332 {
00333 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelGeneral";
00334
00335 return m_coordSystems [m_coordSystemIndex]->modelGeneral();
00336 }
00337
00338 DocumentModelGridDisplay CoordSystemContext::modelGridDisplay() const
00339 {
00340 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelGridDisplay";
00341
00342 return m_coordSystems [m_coordSystemIndex]->modelGridDisplay();
00343 }
00344
00345 DocumentModelGridRemoval CoordSystemContext::modelGridRemoval() const
00346 {
00347 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelGridRemoval";
00348
00349 return m_coordSystems [m_coordSystemIndex]->modelGridRemoval();
00350 }
00351
00352 DocumentModelPointMatch CoordSystemContext::modelPointMatch() const
00353 {
00354 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelPointMatch";
00355
00356 return m_coordSystems [m_coordSystemIndex]->modelPointMatch();
00357 }
00358
00359 DocumentModelSegments CoordSystemContext::modelSegments() const
00360 {
00361 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelSegments";
00362
00363 return m_coordSystems [m_coordSystemIndex]->modelSegments();
00364 }
00365
00366 void CoordSystemContext::movePoint (const QString &pointIdentifier,
00367 const QPointF &deltaScreen)
00368 {
00369 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::movePoint";
00370
00371 return m_coordSystems [m_coordSystemIndex]->movePoint(pointIdentifier,
00372 deltaScreen);
00373 }
00374
00375 int CoordSystemContext::nextOrdinalForCurve (const QString &curveName) const
00376 {
00377 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::nextOrdinalForCurve";
00378
00379 return m_coordSystems [m_coordSystemIndex]->nextOrdinalForCurve(curveName);
00380 }
00381
00382 QPointF CoordSystemContext::positionGraph (const QString &pointIdentifier) const
00383 {
00384 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::positionGraph";
00385
00386 return m_coordSystems [m_coordSystemIndex]->positionGraph(pointIdentifier);
00387 }
00388
00389 QPointF CoordSystemContext::positionScreen (const QString &pointIdentifier) const
00390 {
00391 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::addGraphCurveAtEnd";
00392
00393 return m_coordSystems [m_coordSystemIndex]->positionScreen(pointIdentifier);
00394 }
00395
00396 void CoordSystemContext::print () const
00397 {
00398 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::print";
00399
00400 return m_coordSystems [m_coordSystemIndex]->print();
00401 }
00402
00403 void CoordSystemContext::printStream (QString indentation,
00404 QTextStream &str) const
00405 {
00406 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::printStream";
00407
00408 m_coordSystems [m_coordSystemIndex]->printStream(indentation,
00409 str);
00410 }
00411
00412 QString CoordSystemContext::reasonForUnsuccessfulRead () const
00413 {
00414 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::reasonForUnsuccessfulRead";
00415
00416 return m_coordSystems [m_coordSystemIndex]->reasonForUnsuccessfulRead();
00417 }
00418
00419 void CoordSystemContext::removePointAxis (const QString &identifier)
00420 {
00421 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::removePointAxis";
00422
00423 m_coordSystems [m_coordSystemIndex]->removePointAxis(identifier);
00424 }
00425
00426 void CoordSystemContext::removePointGraph (const QString &identifier)
00427 {
00428 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::removePointGraph";
00429
00430 m_coordSystems [m_coordSystemIndex]->removePointGraph(identifier);
00431 }
00432
00433 void CoordSystemContext::removePointsInCurvesGraphs (CurvesGraphs &curvesGraphs)
00434 {
00435 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::removePointsInCurvesGraphs";
00436
00437 m_coordSystems [m_coordSystemIndex]->removePointsInCurvesGraphs(curvesGraphs);
00438 }
00439
00440 void CoordSystemContext::saveXml (QXmlStreamWriter &writer) const
00441 {
00442 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::saveXml";
00443
00444 for (int index = 0; index < m_coordSystems.count(); index++) {
00445 m_coordSystems [index]->saveXml (writer);
00446 }
00447 }
00448
00449 QString CoordSystemContext::selectedCurveName () const
00450 {
00451 return m_coordSystems [m_coordSystemIndex]->selectedCurveName();
00452 }
00453
00454 void CoordSystemContext::setCoordSystemIndex(CoordSystemIndex coordSystemIndex)
00455 {
00456 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setCoordSystemIndex"
00457 << " index=" << coordSystemIndex;
00458
00459 ENGAUGE_ASSERT(coordSystemIndex < (unsigned int) m_coordSystems.count());
00460
00461 m_coordSystemIndex = coordSystemIndex;
00462 }
00463
00464 void CoordSystemContext::setCurveAxes (const Curve &curveAxes)
00465 {
00466 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setCurveAxes";
00467
00468 m_coordSystems [m_coordSystemIndex]->setCurveAxes(curveAxes);
00469 }
00470
00471 void CoordSystemContext::setCurvesGraphs (const CurvesGraphs &curvesGraphs)
00472 {
00473 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setCurvesGraphs";
00474
00475 m_coordSystems [m_coordSystemIndex]->setCurvesGraphs(curvesGraphs);
00476 }
00477
00478 void CoordSystemContext::setModelAxesChecker(const DocumentModelAxesChecker &modelAxesChecker)
00479 {
00480 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelAxesChecker";
00481
00482 m_coordSystems [m_coordSystemIndex]->setModelAxesChecker(modelAxesChecker);
00483 }
00484
00485 void CoordSystemContext::setModelColorFilter(const DocumentModelColorFilter &modelColorFilter)
00486 {
00487 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelColorFilter";
00488
00489 m_coordSystems [m_coordSystemIndex]->setModelColorFilter(modelColorFilter);
00490 }
00491
00492 void CoordSystemContext::setModelCoords (const DocumentModelCoords &modelCoords)
00493 {
00494 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelCoords";
00495
00496 m_coordSystems [m_coordSystemIndex]->setModelCoords(modelCoords);
00497 }
00498
00499 void CoordSystemContext::setModelCurveStyles(const CurveStyles &modelCurveStyles)
00500 {
00501 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelCurveStyles";
00502
00503 m_coordSystems [m_coordSystemIndex]->setModelCurveStyles(modelCurveStyles);
00504 }
00505
00506 void CoordSystemContext::setModelDigitizeCurve (const DocumentModelDigitizeCurve &modelDigitizeCurve)
00507 {
00508 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelDigitizeCurve";
00509
00510 m_coordSystems [m_coordSystemIndex]->setModelDigitizeCurve(modelDigitizeCurve);
00511 }
00512
00513 void CoordSystemContext::setModelExport(const DocumentModelExportFormat &modelExport)
00514 {
00515 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelExport";
00516
00517 m_coordSystems [m_coordSystemIndex]->setModelExport (modelExport);
00518 }
00519
00520 void CoordSystemContext::setModelGeneral (const DocumentModelGeneral &modelGeneral)
00521 {
00522 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelGeneral";
00523
00524 m_coordSystems [m_coordSystemIndex]->setModelGeneral(modelGeneral);
00525 }
00526
00527 void CoordSystemContext::setModelGridDisplay(const DocumentModelGridDisplay &modelGridDisplay)
00528 {
00529 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelGridDisplay";
00530
00531 m_coordSystems [m_coordSystemIndex]->setModelGridDisplay(modelGridDisplay);
00532 }
00533
00534 void CoordSystemContext::setModelGridRemoval(const DocumentModelGridRemoval &modelGridRemoval)
00535 {
00536 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelGridRemoval";
00537
00538 m_coordSystems [m_coordSystemIndex]->setModelGridRemoval(modelGridRemoval);
00539 }
00540
00541 void CoordSystemContext::setModelPointMatch(const DocumentModelPointMatch &modelPointMatch)
00542 {
00543 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelPointMatch";
00544
00545 m_coordSystems [m_coordSystemIndex]->setModelPointMatch(modelPointMatch);
00546 }
00547
00548 void CoordSystemContext::setModelSegments(const DocumentModelSegments &modelSegments)
00549 {
00550 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelSegments";
00551
00552 m_coordSystems [m_coordSystemIndex]->setModelSegments(modelSegments);
00553 }
00554
00555 void CoordSystemContext::setSelectedCurveName(const QString &selectedCurveName)
00556 {
00557 m_coordSystems [m_coordSystemIndex]->setSelectedCurveName(selectedCurveName);
00558 }
00559
00560 bool CoordSystemContext::successfulRead () const
00561 {
00562 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::successfulRead";
00563
00564 return m_coordSystems [m_coordSystemIndex]->successfulRead();
00565 }
00566
00567 void CoordSystemContext::updatePointOrdinals (const Transformation &transformation)
00568 {
00569 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::updatePointOrdinals";
00570
00571 m_coordSystems [m_coordSystemIndex]->updatePointOrdinals(transformation);
00572 }