Salome HOME
Meet the coding style (line length <= 100)
[modules/shaper.git] / src / GeomData / GeomData_Point.cpp
index f6becd98da1e7c418eecb0e0b61df4396371cb88..8f5923df1a85b469687b7ca81f2c807f018f0543 100644 (file)
@@ -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<std::string>& theUsedParameters)
+void GeomData_Point::setUsedParameters(int theComponent,
+                                       const std::set<std::string>& theUsedParameters)
 {
   assert(theComponent >= 0 && theComponent < NUM_COMPONENTS);
   myExpression[theComponent]->setUsedParameters(theUsedParameters);