- 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_Point::setValue(const boost::shared_ptr<GeomAPI_Pnt>& thePoint)
+{
+ setValue(thePoint->x(), thePoint->y(), thePoint->z());