World Wind Forums

Go Back   World Wind Forums > Community > Add-ons & Scripts

Add-ons & Scripts Find add-ons, scripts, and utilities for World Wind.

Reply
 
Thread Tools Display Modes
Old 06-15-2005, 06:23 AM   #1
Dugrhill
Junior Member
 
Dugrhill's Avatar
 
Join Date: May 2005
Location: South Bend, IN
Posts: 16
Dugrhill
Default

Favorites Plugin: v1.0.2

This plugin adds a Favorites menu to your WorldWind main menu bar and allows you to create bookmarkable favorite spots.
Favorites will not work in WW1.3.1 and was created for the new version of WW with plugin support.

Just navigate to the desired location, Zoom, Altitude, Heading, Tilt, etc. Click Favorites -> Add This Spot, and then select a name for it.

When you click on saved favorites from this list you will be taken to the exact location, Zoom, Altitude, Heading, Tilt, etc. that you saved.

WorldWind 1.3.2 is still in alpha, as of this writting, so the favorites plugin may not work at some point and require an update.

Also, I am NOT a C# programmer. This code may not be pretty but it works. I will be adding functionality to it soon. if you would like a feature added to it let me know.

Also, if you find any bugs please let me know.

Download here:
http://www.powertise.com/TheHills/WW/ in the Plugins/Favorites directory. Save the favorites.cs file and install.

Enjoy!

Doug

PS - The Bookmarks plugin ShockFire and I were working on should be out soon. I'm having a hard time getting that version to save layers and camera tilt as my Favorites version does. In the mean time, this version works just fine.

v1.0.1 -
Fixed nested plugin directory structure bug.

v1.0.2-
Cleaned up the code a bit.
Plugin now creates a favorites.ini in the working directory if the file is not found.

{Edited 6/16/05}
__________________
Doug Hill

(Dugrhill on WW)
(Dugr on WW IRC Channels)
(Dugrhill on Skype) If you see me on Skype feel free to Skype me!
(Doug@powertise.com on Messenger)
Dugrhill is offline   Reply With Quote
Old 06-15-2005, 07:19 AM   #2
canosso
Senior Member
 
Join Date: Oct 2004
Location: Austria
Posts: 342
canosso
Default

Hello Doug,
I had a problem with the directory, the code was "\Plugins\Favorites\" which means the directory of Favorites.ini would be "World Wind\Plugins\Plugins\Favorites\". I changed it to only "\Favorites\" which works better to me.
The Plugin works fine.

canosso
__________________
My Plug-ins for World Wind
canosso is offline   Reply With Quote
Old 06-15-2005, 11:48 AM   #3
TomServo
God. Root. What is difference?
 
TomServo's Avatar
 
Join Date: Sep 2004
Location: Eastern Pennsylvania
Posts: 2,847
TomServo
Default

Works nice once I did this:

Took out /plugins from the path
and
moved the CS file outside of the Favorites folder.

Well, guess I won't do a plugin like this then B)
__________________


Earth is Square blog

PUBLIC NOTICE AS REQUIRED BY LAW: Any use of this forum post, in any manner whatsoever, will increase the amount of disorder in the universe. Although no liability is implied herein, the consumer is warned that this process will ultimately lead to the heat death of the universe.
TomServo is offline   Reply With Quote
Old 06-15-2005, 12:02 PM   #4
TomServo
God. Root. What is difference?
 
TomServo's Avatar
 
Join Date: Sep 2004
Location: Eastern Pennsylvania
Posts: 2,847
TomServo
Default

I Can see some stuff that will have to be added later.. like a folder structure... I can see people bookmarking EVERYTHING and then not finding stuff anymore

Want to help me work out the last bits of my plugin? Damn interactivity/filtering is killing me at my poor level of skill
__________________


Earth is Square blog

PUBLIC NOTICE AS REQUIRED BY LAW: Any use of this forum post, in any manner whatsoever, will increase the amount of disorder in the universe. Although no liability is implied herein, the consumer is warned that this process will ultimately lead to the heat death of the universe.
TomServo is offline   Reply With Quote
Old 06-15-2005, 04:16 PM   #5
5of0
Dabbling Geek
 
5of0's Avatar
 
Join Date: Jan 2005
Location: Washington State, USA
Posts: 1,623
5of0 is an unknown quantity at this point
Default

I'd enjoy working on it. But I guess I wouldn't add much skill, I've no clue of C# and a very small one in C. I'm a VB man. But I can try anyway, I've done plenty in VB. But I'm really bogged down tonight.
__________________
Note: The above statement is probably an educated guess, derived from much forum reading, IRC chatting, general curiosity, etc. Use at your own risk.
Before asking, check the FAQ or search, and Ask a good question.

Having problems? Make sure you have Managed DirectX and .NET Framework.
Then check the Video Card Compatibility List


5of0 is offline   Reply With Quote
Old 06-16-2005, 12:50 AM   #6
Mashiharu
Member
 
Mashiharu's Avatar
 
Join Date: Jan 2005
Location: Trondheim, Norway
Posts: 94
Mashiharu
Default

I love it Dugrhill!
__________________
Bjørn Reppen
Developer on http://punt.sourceforge.net
mashi on #punt (irc.freenode.net)
Home: http://www.mashiharu.com
Mashiharu is offline   Reply With Quote
Old 06-16-2005, 02:13 AM   #7
Dugrhill
Junior Member
 
Dugrhill's Avatar
 
Join Date: May 2005
Location: South Bend, IN
Posts: 16
Dugrhill
Default

Mashi:

It gets better! ShockFire pretty much re-wrote the entire plugin today using URI and XML. I think it's MUCH better.

Should be up soon.

Doug


Quote:
Originally posted by Mashiharu@Jun 15 2005, 07:50 PM
I love it Dugrhill!
__________________
Doug Hill

(Dugrhill on WW)
(Dugr on WW IRC Channels)
(Dugrhill on Skype) If you see me on Skype feel free to Skype me!
(Doug@powertise.com on Messenger)
Dugrhill is offline   Reply With Quote
Old 06-16-2005, 04:35 AM   #8
aussiemac
Senior Member
 
Join Date: Dec 2004
Posts: 334
aussiemac
Default

Tom Servo,
I stuffed up trying to put the plug-in in the right directories
Now I've got favourites listed 5 time but still not working.
How do I erase four of them and get the plug-in working!
please.
I'll have to stop experimenting - and get a life!
aussiemac is offline   Reply With Quote
Old 06-16-2005, 02:15 PM   #9
TomServo
God. Root. What is difference?
 
TomServo's Avatar
 
Join Date: Sep 2004
Location: Eastern Pennsylvania
Posts: 2,847
TomServo
Default

Your asking me? Blah!
__________________


Earth is Square blog

PUBLIC NOTICE AS REQUIRED BY LAW: Any use of this forum post, in any manner whatsoever, will increase the amount of disorder in the universe. Although no liability is implied herein, the consumer is warned that this process will ultimately lead to the heat death of the universe.
TomServo is offline   Reply With Quote
Old 06-16-2005, 05:05 PM   #10
5of0
Dabbling Geek
 
5of0's Avatar
 
Join Date: Jan 2005
Location: Washington State, USA
Posts: 1,623
5of0 is an unknown quantity at this point
Default

Hm. Do you have any scripts running at startup?\
I'm not a C#'er, just trying to adapt my VB ideas to C# code. But in your script, try changing this:
Code:
 public override void Unload()
 {
 	// Clean up, remove menu item
 	ParentApplication.MainMenu.MenuItems.Remove(menuItem);

 	base.Unload ();
 }
to this:
Code:
 public override void Unload()
 {
 	// Clean up, remove *all favorites* menu items
 	foreach(MenuItem mnuThing in ParentApplication.MainMenu.MenuItems) {
  if(mnuThing.Text=="Favorites"){	
  	ParentApplication.MainMenu.MenuItems.Remove(mnuThing);
  }
 	} 
 	base.Unload ();
 }
Like I said, not 100% sure 'cause I can't test it right now, but it shouldn't break too much, the worst it could do is clear off your toolbar... :P
What favorites scripts do you have running? On startup? Does this happen only when the script runs (I hope so, otherwise there's something strange happening)? Maybe you could paste your scipt(s), something about them is cancerous.
__________________
Note: The above statement is probably an educated guess, derived from much forum reading, IRC chatting, general curiosity, etc. Use at your own risk.
Before asking, check the FAQ or search, and Ask a good question.

Having problems? Make sure you have Managed DirectX and .NET Framework.
Then check the Video Card Compatibility List


5of0 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin: My favorite Icons - Add Icons/Favorite canosso Add-ons & Scripts 26 03-02-2010 03:06 AM
stereo viewer plugin jumpjack Add-ons & Scripts 15 08-19-2005 09:48 PM
Favorites, bookmarks, etc anonymous banana Suggestion Box 3 03-03-2005 12:47 PM


All times are GMT +1. The time now is 10:25 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.