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