Radial Layout

Share your advanced PureBasic knowledge/code with the community.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Radial Layout

Post by netmaestro »

Not a huge deal. With PB v4.40 you can no longer plot outside the image bounds with ImageOutput(). A tweak here or there would set it right.
BERESHEIT
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Radial Layout

Post by Kwai chang caine »

; left mouse click - move selected node To center
; right mouse click - add child To selected node
Just for information i obtain that
Image
And nothing move with left or right click
W2000 PRO SP4 v4.40
ImageThe happiness is a road...
Not a destination
Fred
Administrator
Administrator
Posts: 18249
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Radial Layout

Post by Fred »

The same bug than jpg decoder.
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Re: Radial Layout

Post by JCV »

cool! :D

[Registered PB User since 2006]
[PureBasic 6.20][SpiderBasic 2.2]
[RP4 x64][Win 11 x64][Ubuntu x64]
peterb
User
User
Posts: 60
Joined: Sun Oct 02, 2005 8:55 am
Location: Czech Republic
Contact:

Re: Radial Layout

Post by peterb »

EDIT: added feature for checking objects outside the image bounds

updated code in first post
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Re: Radial Layout

Post by SFSxOI »

I have a stupid question. It's all neat and everything, and maybe i'm a little dense this morning (ok, no comments :) ), but what would be a practical application of this ?
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
peterb
User
User
Posts: 60
Joined: Sun Oct 02, 2005 8:55 am
Location: Czech Republic
Contact:

Re: Radial Layout

Post by peterb »

it's for visual exploration of relations between nodes. it's usefull for viewing network topology, partnerships, etc..
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Re: Radial Layout

Post by Foz »

SFSxOI wrote:I have a stupid question. It's all neat and everything, and maybe i'm a little dense this morning (ok, no comments :) ), but what would be a practical application of this ?
The "Oooh pretty!" factor.

Enterprise level systems sell over things like that.
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: Radial Layout

Post by Rook Zimbabwe »

SFSxOI wrote:I have a stupid question. It's all neat and everything, and maybe i'm a little dense this morning (ok, no comments :) ), but what would be a practical application of this ?
THIS morning??? :wink: You and I are the founders of the Dense in the AM club! :D

If you could link nodes to other already existing nodes you would have a tool like the FBI uses to build relationship maps between gang members /terror suspects / innocent citizens! 8)
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
Arctic Fox
Enthusiast
Enthusiast
Posts: 609
Joined: Sun Dec 21, 2008 5:02 pm
Location: Aarhus, Denmark

Re: Radial Layout

Post by Arctic Fox »

Very impressive! :o

There still seem to be an error with this line (about line 400)

Code: Select all

plot_color = ColorBlending ( Color, Point ( X + n * SensX, Y + nn * SensY ), Application )
Try adding nine consecutive nodes, move node four to the center and add twelve consecutive nodes after this node. Remember to turn on the debugger :)
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Re: Radial Layout

Post by SFSxOI »

Rook Zimbabwe wrote:
SFSxOI wrote:I have a stupid question. It's all neat and everything, and maybe i'm a little dense this morning (ok, no comments :) ), but what would be a practical application of this ?
THIS morning??? :wink: You and I are the founders of the Dense in the AM club! :D

If you could link nodes to other already existing nodes you would have a tool like the FBI uses to build relationship maps between gang members /terror suspects / innocent citizens! 8)

LoL :)

Nodes might be OK for hardware or even virtual network or networking topology (both human and virtual) to show a basic picture, but for stuff like the relationships you mentioned you need interactive relational vectors and not just nodes to show ancillary and associated involvement/interaction as it occurs to get a clear picture. So for something like the relationships you mentioned its not suitable.
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: Radial Layout

Post by Rook Zimbabwe »

Yep... true... butthat gives him somewhere to go with it if he wants! 8)
SFSxOI wrote:
Rook Zimbabwe wrote:
SFSxOI wrote:I have a stupid question. It's all neat and everything, and maybe i'm a little dense this morning (ok, no comments :) ), but what would be a practical application of this ?
THIS morning??? :wink: You and I are the founders of the Dense in the AM club! :D

If you could link nodes to other already existing nodes you would have a tool like the FBI uses to build relationship maps between gang members /terror suspects / innocent citizens! 8)

LoL :)

Nodes might be OK for hardware or even virtual network or networking topology (both human and virtual) to show a basic picture, but for stuff like the relationships you mentioned you need interactive relational vectors and not just nodes to show ancillary and associated involvement/interaction as it occurs to get a clear picture. So for something like the relationships you mentioned its not suitable.
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Fred
Administrator
Administrator
Posts: 18249
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Radial Layout

Post by Fred »

Awesome.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: Radial Layout

Post by blueznl »

Fred wrote: Awesome.
Yeah.

I have to agree with Fred.

I didn't understand half of Rook's words either...

:mrgreen:
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: Radial Layout

Post by gnozal »

I just tried the code (edited version with bound checking) with PB 4.41 RC 1 and NT4 : it's better (it can see the circles and the first point) but it still crashes (invalid memory access at line 609 [EndProcedure]).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply