Ticket #110 (closed defect: worksforme)

Opened 13 years ago

Last modified 13 years ago

Make invisible overlay objects automatically delete themselves

Reported by: sorber Owned by: sorber
Priority: major Milestone:
Component: visbio Severity:
Keywords: overlays Cc:
Blocked By: Blocking:


Invisible (zero area, zero length, or fewer than two nodes) should be automatically deleted. Right now, OverlayNodedObjects are automatically deleted, but the logic is divided between the corresponding tools and the OverlayNodedObject class. Invisible Boxes, Ovals, Lines, and Arrows should also be deleted.

  • OverlayTool subclasses should automatically delete an object if at mouseUp the object has zero area, zero length, or one or zero nodes.
  • To determine whether to delete an object, OverlayTool subclasses should call a method in OverlayObject subclasses which returns whether the object has a nonzero size, nonzero length, or more than one node.

Change History

comment:1 Changed 13 years ago by sorber

Accomplished both points above for all but OverlayNodedObjects.

comment:2 Changed 13 years ago by sorber

  • Status changed from new to closed
  • Resolution set to worksforme

My fix for this problem is a piecemeal solution: sometimes the objects remove themselves, sometimes the tools do. The solution design could be better encapsulated.

Note: See TracTickets for help on using tickets.