On Wed, 20 Nov 2013 22:07:36 +0000 Thomas Strobel <ts...@cam.ac.uk> said:
> On Wed, 2013-11-20 at 11:51 +1000, David Seikel wrote: > > On Wed, 20 Nov 2013 09:15:01 +0900 Carsten Haitzler (The Rasterman) > > <ras...@rasterman.com> wrote: > > > > > On Tue, 19 Nov 2013 15:20:01 +0000 Thomas Strobel <ts...@cam.ac.uk> > > > said: > > > > > > > Hi all, > > > > > > > > I was wondering which constraint solver is being used in EFL for > > > > placing evas objects relatively to each other? Especially for edje, > > > > can anyone point me to a research paper or similar which describes > > > > the algorithm being used? > > > > > > nope. can't. it's just math man. math. there is no "constraint > > > solver" at all. it's just calculate your coords - if you are relative > > > TO something else... your coords depend on its coords - so go > > > calculate what you depend on first... and repeat (recurse). it's just > > > inside edje. simple basic logic+math > > Well, I guessed it was related to math. ;) > > > > > Or to put it another way, there are no constraints, it's not that sort > > of system. Things are placed relative to other things, at a fixed > > fraction of the size of the thing it is relative to. > > Thank you very much for clarifying how it works. I just didn't want to > work through the source immediately, searching for a constraint solver's > implementation like Cassowary. you won't find one. :) you will find edje_calc.c :) it's in there. it's just a dependency tree. technically its not a strict tree. it can be a graph. and then x and y dimensions can be separate graphs. sometimes x depends on y (or y depends on x) when aspect ratio hints and/or textblock stuff is there. then you get crossover. the code leaves breadcrumbs as it recurses down the graph to detect cycles and aborts the recursing if it detects a cycle (an infinite loop) at runtime. it's just purpose built for edje. in fact.. edc is nothing more that providing the input parameters to this calc func. edc is really raw input to this code. edc was never designed as an abstract description itself. it's pretty raw nuts and bolts. > > > > On the other hand, there is also ephysics, which can be used to make > > graphics objects react to other objects in a 2D plane using the bullet > > physics library. You can ask the bullet library authors about their > > algorithms. > > > > ------------------------------------------------------------------------------ > > Shape the Mobile Experience: Free Subscription > > Software experts and developers: Be at the forefront of tech innovation. > > Intel(R) Software Adrenaline delivers strategic insight and game-changing > > conversations that shape the rapidly evolving mobile landscape. Sign up > > now. > > http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk > > _______________________________________________ enlightenment-devel mailing > > list enlightenment-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > > ------------------------------------------------------------------------------ > Shape the Mobile Experience: Free Subscription > Software experts and developers: Be at the forefront of tech innovation. > Intel(R) Software Adrenaline delivers strategic insight and game-changing > conversations that shape the rapidly evolving mobile landscape. Sign up now. > http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel