// connect to this dimension object at this point, instead of just becoming
// detached.
#endif
+//actually not true, we know the object pointer and parameter!
+//actuall, the Object base class does this for us...!
+#if 0
+ std::vector<Connection>::iterator i;
+
+ for(i=connected.begin(); i!=connected.end(); i++)
+ {
+ (*i).object->Disconnect(this, (*i).t);
+ }
+#endif
}
if (selectionInProgress)
{
// Check for whether or not the rect contains this line
-#if 0
- if (selection.normalized().contains(Extents()))
-#else
-// if (selection.normalized().contains(position.x, position.y)
-// && selection.normalized().contains(endpoint.x, endpoint.y))
if (selection.contains(position.x, position.y)
&& selection.contains(endpoint.x, endpoint.y))
-#endif
state = OSSelected;
else
state = OSInactive;
{
if ((*i).object->type == OTLine)
((Line *)((*i).object))->MovePointAtParameter((*i).t, delta);
+ else if ((*i).object->type == OTDimension)
+ ((Dimension *)((*i).object))->MovePointAtParameter((*i).t, delta);
}
}
}
// Make sure the Dimension is connected to us...
Connect(dimension, 0);
Connect(dimension, 1.0);
+
+ dimension->position = position;
+ dimension->endpoint = endpoint;
}