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) {
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);