[Ktechlab-devel] Adding nodes() to IDocumentModel ?

Julian Bäume julian at svg4all.de
Tue Aug 24 12:09:47 UTC 2010


Moin,

On Tuesday 24 August 2010 11:42:19 Zoltan Padrah wrote:
> As implementing the simulator, I've found a problem with the IDocumentModel
> interface: it doesn't expose the set of nodes, that don't belong to any
> component/element. This is a problem, because those nodes are needed by the
> connectors is some cases. When two connectors are connected, a new node is
> created at the connection point, and one connector is split in two, finally
> resulting in three connectors and one node. This way, in the model, a
> connector can always connect two nodes.
Yes, I’m facing this situation, too. So I would be fine with exposing this 
information from the IDocumentModel and sync to it, everytime something 
changes.

> As I've seen in the CircuitModel class, the nodes had to be inserted in
> that class, too.
It’s no problem to move this information one level higher into IDocumentModel.

> Theoretically it's possible to deduce all nodes from the end-node-id-s of
> the connectors, but I'm not sure if that is the best solution.
agreed!

> So should be the nodes exposed in IDocumentModel, or not? What is your
> opinion?
+1 from me

bye then
julian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/ktechlab-devel/attachments/20100824/16f94037/attachment.sig>


More information about the Ktechlab-devel mailing list