Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 28-08-2015, 18:56   #271
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 872
Re: Ocpn-Draw and Boundary

Hubert,
Patch 504 fixes the properties dialog not keeping your changes. The global settings are available through 'Options/Plugins/ocpn_draw_pi/preferences' . I have put up a linux executable of 504 on GitHub.

Please continue to play!

Jon

Quote:
Originally Posted by bcn View Post
Jon,

playing with the EBL/VRM I noticed that the line style will not change from solid to anything. One can select but the selection gets reverted to solid.

And I discovered that it has not been necessary to loop through the preferences to enable the VRM for one EBL - the settings pop-up double clicking the EBL has all the necessary entries.
And preferences are really global preferences - correct.

You are absolutely right that we should now encourage to use the existing tools in order to learn about the usage and the UI.
Can you put the .503 executables on GitHub?

Great job

Hubert
__________________

__________________
jongough is offline   Reply With Quote
Old 29-08-2015, 16:33   #272
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 872
Re: Ocpn-Draw and Boundary

Hi,
Patch 506 fixes some issues with path properties and saving OD objects created after an EBL.

Jon
__________________

__________________
jongough is offline   Reply With Quote
Old 01-09-2015, 04:58   #273
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,259
Re: Ocpn-Draw and Boundary

Uploaded ocpn_draw compiled 9-1-2015
OpenCPN Beta Windows Plugins

Give it a try, its working very nicely. Requires Opencpn 4.1.818 9-1-2015 version (uploaded too).
__________________
rgleason is offline   Reply With Quote
Old 01-09-2015, 05:30   #274
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 2,609
Re: Ocpn-Draw and Boundary

Quote:
Originally Posted by rgleason View Post
Uploaded ocpn_draw compiled 9-1-2015
OpenCPN Beta Windows Plugins

Give it a try, its working very nicely. Requires Opencpn 4.1.818 9-1-2015 version (uploaded too).
Installed it under 4.1.602, the official beta and seems to work.
So even easier to try it out. Jon needs feedback.
__________________
bcn is online now   Reply With Quote
Old 01-09-2015, 06:11   #275
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,825
Re: Ocpn-Draw and Boundary

Hi
I'm using WinXP and therefor forced to VC++2010. The "round" method seems not implemented there but gives an error.
Instead I successfully tried "floor". I'm not fully aware of the differences between the two methods, but please consider to use something else than "round" as long we shall support XP and VC2010
Code:
diff --git a/src/TextPoint.cpp b/src/TextPoint.cpp
index bc3962a..f0447ec 100644
--- a/src/TextPoint.cpp
+++ b/src/TextPoint.cpp
@@ -195,7 +195,7 @@ void TextPoint::Draw( ODDC& dc, wxPoint *rpn )
     if( m_TextPointText.Len() > 0 ) {
         CalculateTextExtents();
         int teX, teY;
-        int scalefactor = round(g_ocpn_draw_pi->m_chart_scale / m_natural_scale);
+        int scalefactor = floor(g_ocpn_draw_pi->m_chart_scale / m_natural_scale);

         if(m_natural_scale > (g_ocpn_draw_pi->m_chart_scale / 2) ) {
             teX = m_TextExtents.x;
@@ -276,7 +276,7 @@ void TextPoint::DrawGL( PlugIn_ViewPort &pivp )
     if( m_TextPointText.Len() > 0 ) {
         CalculateTextExtents();
         int teX, teY;
-        int scalefactor = round(g_ocpn_draw_pi->m_chart_scale / m_natural_scale);
+        int scalefactor = floor(g_ocpn_draw_pi->m_chart_scale / m_natural_scale);

         if(m_natural_scale > (g_ocpn_draw_pi->m_chart_scale / 2) ) {
             teX = m_TextExtents.x;
Thanks
Håkan
__________________
Hakan is offline   Reply With Quote
Old 01-09-2015, 06:26   #276
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 2,609
Re: Ocpn-Draw and Boundary

Code:
Basically explained:
 
- ROUND rounds down or up, e.g. 1.3 => 1 & 1.5 => 2 (+ROUND(A1,0)
- FLOOR rounds always down, e.g. 1.61 => 1.6 (=FLOOR(A1,0.1)
- CEILING rounds always up, eg. 1.61 => 1.7 (=CEILING(A1,0.1)
or
rounding - Where is Round() in C++? - Stack Overflow
__________________
bcn is online now   Reply With Quote
Old 01-09-2015, 09:25   #277
Registered User
 
AISEAG's Avatar

Join Date: May 2012
Location: Dahouet (Brittany)
Boat: BENETEAU
Posts: 386
Re: Ocpn-Draw and Boundary

hello,

A project has been created in Tracker/Flyspray, you will now be able to deposit bugs and request.

OpenCPN::Tracker Pi - OCPN_Draw: Tasklist

Serge
__________________
AISEAG is offline   Reply With Quote
Old 01-09-2015, 14:19   #278
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 872
Re: Ocpn-Draw and Boundary

I don't have access to my windows compile environment at the moment so cannot do anything with the round function. Is it possible to determine that vs2010 is being used in an #IFDEF statement? If so could we put in the round function for vs by enclosing the following code in an #ifdef?
Code:
double round(double num) {
    return (num > 0.0) ? floor(num + 0.5) : ceil(num - 0.5);
}
Jon
__________________
jongough is offline   Reply With Quote
Old 01-09-2015, 14:30   #279
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: Ocpn-Draw and Boundary

Jon...
You can use exactly the same as we already have in https://github.com/OpenCPN/OpenCPN/b...Dialog.cpp#L59
Or use wxRound()...

Pavel
__________________
nohal is offline   Reply With Quote
Old 01-09-2015, 15:52   #280
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 872
Re: Ocpn-Draw and Boundary

Håka,
I have applied the fix suggested by Pavel to the TextPoint.cpp code. It is patch 507. Can you give it a try and see if it works.

Ta Jon
__________________
jongough is offline   Reply With Quote
Old 02-09-2015, 11:12   #281
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,825
Re: Ocpn-Draw and Boundary

Jon..
Works very fine.
Thanks/
Håkan
__________________
Hakan is offline   Reply With Quote
Old 02-09-2015, 11:23   #282
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,825
Re: Ocpn-Draw and Boundary

Jon..
And many thanks for this plugin. I've now used it to mark a new mussel breeding where I use to sail. Very nice to have now when the darkness arrive and its unlit. It's not so nice to be entangled in drums and rope.
Håkan
__________________
Hakan is offline   Reply With Quote
Old 04-09-2015, 03:58   #283
Registered User

Join Date: Mar 2010
Location: Den Helder, the Netherlands
Boat: Drascombe Coaster (22ft) "Seanymph"
Posts: 103
Re: Ocpn-Draw and Boundary

EBL: possibility of range and bearing from EBL-point TO own ship?


What follows was posted earlier (and by mistake) in the "OpenCPN Beta Windows Plugins" thread. Per Rick's advice I copy it now under this thread (I don't know of any other method to transfer earlier posts to another thread).

-----***----

EBL: possibility of range and bearing from EBL-point TO own ship?

OpenCPN just gets better and better and the EBL in the Draw PI is a great feature. It gives the position of an EBL-point (other ships/objects) in relation to your own position. But I'm wondering.. is it possible (and useful) to add an option to turn it the other way round? I mean: to give my range and bearing FROM that other ship/object? (e.g. "This is Seanymph, my position bearing 123 degrees from buoy X, distance 3 miles"). After all, isn't that's (one of) the way(s) we are supposed to communicate our position?

Of course I can use Measure to give me the information but that won't update automatically as I move on.

Am I missing something?

Roel
------***-----

Rick, in that other thread you wrote "Can you help write the manual for the plugin?". I'm not sure what you mean with "the manual for the plugin" but if it has to do with programming I'm absolutely useless. The only thing I might be able to do is to translate text from English into Dutch but I doubt that's what the world is waiting for. That is apart from the fact that some people say I'm very capable of finding a problem to a solution....

Roel
__________________
Roel Smidt is offline   Reply With Quote
Old 04-09-2015, 04:55   #284
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,259
Re: Ocpn-Draw and Boundary

Roel, Your english is excellent better than my dutch. No programming needed. I just need someone to review and augment what I write about using the ocpn_draw plugin. Are you game? It is to help new users and answer questions. Look at the documentation on opencpn.org for weatherfax, weather_routing, chartdwnldr and celestial navigation. These are examples I've been involved in.
__________________
rgleason is offline   Reply With Quote
Old 04-09-2015, 06:42   #285
Registered User

Join Date: Mar 2010
Location: Den Helder, the Netherlands
Boat: Drascombe Coaster (22ft) "Seanymph"
Posts: 103
Re: Ocpn-Draw and Boundary

Hi Rick,

I'm very willing to help where possible. Just tell me what it is you want me to do and I'll give it my best shot. But as I said, I'm absolutely no programmer and my knowledge of the Android/Linux language is very, very basic

FYI, I'm toying with OpenCPN at home on my Desktop (Windows7) and on board with a Samsung GT-S7710 smrtphone (Android 4.1.2) and Samsung 7.7 Tablet (ICS). And I somehow got O up & running on a new toy (Raspberry Pi2 that maybe one day will evolve into my onboard computersystem) ...

Roel
__________________

__________________
Roel Smidt is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not 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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rookie questions - boundary circles; exporting options; GPX files fredgmeyer OpenCPN 5 23-05-2014 22:22
Buoys out in Boundary Bay, BC Carogan Liveaboard's Forum 0 27-08-2012 06:41
For Sale: Cascade Designs Seal Line Boundary 70 Dry Bag thesparrow Classifieds Archive 0 14-03-2011 15:27
Current draw and insulation of portable fridges troppo Plumbing Systems and Fixtures 6 06-03-2011 09:00
amperage draw for Garmin radar and MFD janders Marine Electronics 8 16-12-2008 17:00


Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 11:46.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.