X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomData%2FGeomData_Point.cpp;h=8f5923df1a85b469687b7ca81f2c807f018f0543;hb=b5893b0a30fac08134c24de4565cb513a43affa6;hp=f6becd98da1e7c418eecb0e0b61df4396371cb88;hpb=ba08b49c900003e00c5fdb67d80d1a9bb8134358;p=modules%2Fshaper.git diff --git a/src/GeomData/GeomData_Point.cpp b/src/GeomData/GeomData_Point.cpp index f6becd98d..8f5923df1 100644 --- a/src/GeomData/GeomData_Point.cpp +++ b/src/GeomData/GeomData_Point.cpp @@ -20,6 +20,15 @@ GeomData_Point::GeomData_Point() myIsInitialized = false; } +void GeomData_Point::reinit() +{ + myIsInitialized = true; + for (int aComponent = 0; aComponent < NUM_COMPONENTS; ++aComponent) { + myExpression[aComponent]->reinit(); + myIsInitialized = myIsInitialized && myExpression[aComponent]->isInitialized(); + } +} + void GeomData_Point::setCalculatedValue(const double theX, const double theY, const double theZ) { if (!myIsInitialized || x() != theX || y() != theY || z() != theZ) { @@ -116,7 +125,8 @@ std::string GeomData_Point::expressionError(int theComponent) return myExpression[theComponent]->error(); } -void GeomData_Point::setUsedParameters(int theComponent, const std::set& theUsedParameters) +void GeomData_Point::setUsedParameters(int theComponent, + const std::set& theUsedParameters) { assert(theComponent >= 0 && theComponent < NUM_COMPONENTS); myExpression[theComponent]->setUsedParameters(theUsedParameters);