Re: Differentiating between Connectors and Objects

2008-07-09 Thread Lars Clausen
On Jul 9, 2008, at 8:59 PM, Fred Morcos wrote: Diagram Auto-Layouting [1], basically the "connections" act like springs and the "objects" act like repulsive charges. A simulation is ran and as the system approaches an equilibrium state, the diagram starts "looking good" and well "layouted". [1

Re: Differentiating between Connectors and Objects

2008-07-09 Thread loli
On Wed, 9 Jul 2008 20:59:10 +0200, Fred Morcos wrote > Diagram Auto-Layouting [1], basically the "connections" act like > springs and the "objects" act like repulsive charges. A simulation is > ran and as the system approaches an equilibrium state, the diagram > starts "looking good" and well "layo

Re: Differentiating between Connectors and Objects

2008-07-09 Thread Fred Morcos
Diagram Auto-Layouting [1], basically the "connections" act like springs and the "objects" act like repulsive charges. A simulation is ran and as the system approaches an equilibrium state, the diagram starts "looking good" and well "layouted". [1] http://en.wikipedia.org/wiki/Force_based_layout

Re: Differentiating between Connectors and Objects

2008-07-09 Thread Lars Clausen
On Jul 9, 2008, at 8:47 PM, Fred Morcos wrote: So basically I am stuck with string comparison of all shapes that were ever created, currently existing and ever to come? On Wed, Jul 9, 2008 at 8:34 PM, Lars Clausen <[EMAIL PROTECTED]> wrote: On Jul 9, 2008, at 7:50 PM, Fred Morcos wrote: Is

Re: Differentiating between Connectors and Objects

2008-07-09 Thread Fred Morcos
So basically I am stuck with string comparison of all shapes that were ever created, currently existing and ever to come? On Wed, Jul 9, 2008 at 8:34 PM, Lars Clausen <[EMAIL PROTECTED]> wrote: > > On Jul 9, 2008, at 7:50 PM, Fred Morcos wrote: > >> Is it possible to get the type of an object with

Re: Dia Shape Types

2008-07-09 Thread Marleine Daoud
On Thu, Jul 3, 2008 at 9:22 PM, Hans Breuer <[EMAIL PROTECTED]> wrote: > > For the standard objects there are some specialized 'constructors' in > http://svn.gnome.org/viewvc/dia/trunk/lib/create.h?view=markup > but that's the only thing special in there handling. > Thank you for your tip, it real

Re: Differentiating between Connectors and Objects

2008-07-09 Thread Lars Clausen
On Jul 9, 2008, at 7:50 PM, Fred Morcos wrote: Is it possible to get the type of an object without using a returned string (object_get_type)? I want to loop over all the selected objects and count the number of "connection objects" and the number of "other normal objects" without having to go t

Differentiating between Connectors and Objects

2008-07-09 Thread Fred Morcos
Is it possible to get the type of an object without using a returned string (object_get_type)? I want to loop over all the selected objects and count the number of "connection objects" and the number of "other normal objects" without having to go through this: (pseudo code) if (objtype == "Standar