- myCoords->SetValue(0, theX);
- myCoords->SetValue(1, theY);
- myCoords->SetValue(2, theZ);
+ if (!myIsInitialized || myCoords->Value(0) != theX || myCoords->Value(1) != theY
+ || myCoords->Value(2) != theZ) {
+ myCoords->SetValue(0, theX);
+ myCoords->SetValue(1, theY);
+ myCoords->SetValue(2, theZ);
+ owner()->data()->sendAttributeUpdated(this);
+ }
+}
+
+void GeomData_Dir::setValue(const std::shared_ptr<GeomAPI_Dir>& theDir)
+{
+ setValue(theDir->x(), theDir->y(), theDir->z());