- if (theLabel.FindAttribute(TDataStd_RealArray::GetID(), myCoords) != Standard_True) {
- // create attribute: not initialized by value yet, just zero
- myCoords = TDataStd_RealArray::Set(theLabel, 0, 1);
- myIsInitialized = false;
- }
- if (theLabel.FindAttribute(TDataStd_ExtStringArray::GetID(), myTextArray) != Standard_True) {
- // create attribute: not initialized by value yet, just zero
- myTextArray = TDataStd_ExtStringArray::Set(theLabel, 0, 1);
- myIsInitialized = false;
- }
- if (theLabel.FindAttribute(TDataStd_BooleanArray::GetID(), myExpressionInvalidArray) != Standard_True) {
- // create attribute: not initialized by value yet, just zero
- myExpressionInvalidArray = TDataStd_BooleanArray::Set(theLabel, 0, 1);
- myIsInitialized = false;
- }
+std::string GeomData_Point2D::expressionError(int theComponent)
+{
+ assert(theComponent >= 0 && theComponent < NUM_COMPONENTS);
+ return myExpression[theComponent]->error();
+}
+
+void GeomData_Point2D::setUsedParameters(int theComponent,
+ const std::set<std::string>& theUsedParameters)
+{
+ assert(theComponent >= 0 && theComponent < NUM_COMPONENTS);
+ myExpression[theComponent]->setUsedParameters(theUsedParameters);
+}
+
+std::set<std::string> GeomData_Point2D::usedParameters(int theComponent) const
+{
+ assert(theComponent >= 0 && theComponent < NUM_COMPONENTS);
+ return myExpression[theComponent]->usedParameters();