Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 19-07-2015, 03:23   #151
bcn
Registered User

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

From here:
Steve Dashew
SetSail » Blog Archive » Marine Electronics: The Correct Blend of Capabilities

this idea:
Quote:
In this same context one of the things we are looking for is the ability to add depth track data to charts on our own, without going through an online service. The dream system would entail surveying in the dinghy, with the position and depth data fed directly to the mothership.
What about to be able to "inject" or "import" drawn objects into the plug-in?
Or export those in order to share?
In SignalK format perhaps?

Just dreaming....

Hubert
__________________

__________________
bcn is offline   Reply With Quote
Old 19-07-2015, 07:58   #152
Registered User
 
rgleason's Avatar

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

Jon, tomorrow I be ashore and able to access my laptop with VS 2013 and Ocpn 4.1.602.

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
__________________

__________________
rgleason is offline   Reply With Quote
Old 19-07-2015, 18:37   #153
Registered User

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

Hi,
I have just put up the 0.4.0420 patch windows install file into git. This version does not fill boundaries on windows under opengl when there are more than four points. Still trying to figure that one out.

Jon
__________________
jongough is offline   Reply With Quote
Old 19-07-2015, 23:20   #154
Registered User

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

Hi,
There is a windows installable in the git repository, you will find it in the 'pre-release' 0420 tag.

Jon
__________________
jongough is offline   Reply With Quote
Old 20-07-2015, 02:51   #155
bcn
Registered User

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

Installed and works as announced.

There is something strange with the backgrounds - will not cover the complete text (depending on the font) on the right edge and the rounded corners do not adjust well (radius?)

This all with OpenGL enabled. As you already stated the text example for the default font does not show up at the font selector but once gone through the cycle it's allright.

Pretty good
Attached Thumbnails
Click image for larger version

Name:	Draw_PI_2015-07-20-0420-OpenCPN 4.1.602.png
Views:	73
Size:	6.6 KB
ID:	105665  
__________________
bcn is offline   Reply With Quote
Old 20-07-2015, 07:16   #156
bcn
Registered User

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

Modifying the font afterwards does not bring up the selected font. The old one stays and somehow the background gets touched. When switching back to the original font it's ok.

What is the reference point for placing the text? Botton and Top I would expect "horizontal centered" and in case of Left/Right "vertically centered". Another option for cartographers?
Attached Thumbnails
Click image for larger version

Name:	2015-07-20 16_05_07 0420-OpenCPN 4.1.602.png
Views:	64
Size:	20.1 KB
ID:	105670  
Attached Images
  
__________________
bcn is offline   Reply With Quote
Old 20-07-2015, 14:02   #157
Registered User

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

Hi,
The text top left corner is the reference point. I only provided 4 locations to make the initial implementation easier, so you have:
  • Top: which puts the text over the top of the point aligned to the left edge of the icon with the bottom just clear of the icon
  • Bottom: which puts the top edge just underneath the point aligned to the left edge of the icon. If you displace the point name the text should drop enough to show it
  • Left: which puts the top edge aligned with the top of the icon, the text to the left of the icon with the right hand end of the text box just clear of the icon
  • Right: which puts the top edge aligned with the top of the icon, the left hand edge of the text just clear of the right hand side of the icon
The amount the box edge is offset is controlled by 8 settings in the opencpn ini/conf file. You will find them called:
DefaultTextTopOffsetX, DefaultTextTopOffsetY
DefaultTextBottomOffsetX, DefaultTextBottomOffsetY
DefaultTextRightOffsetX, DefaultTextRightOffsetY
DefaultTextLeftOffsetX, DefaultTextLeftOffsetY

I was not sure if I should make them adjustable on the properties panel or not.

I will look at adding horizontal and vertically centred as an option.

Changing the font in the properties box does not apply the font until the OK button is pressed on the properties box. The word 'Example' should change to show you the font selected.

I will look and see if I can make the background box a little bigger. The information for the size of the box is obtained from the system depending on the font used, so I may have to make that an attribute of either the font (may be difficult) or of the point itself.

Jon
__________________
jongough is offline   Reply With Quote
Old 20-07-2015, 22:29   #158
bcn
Registered User

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

Quote:
Originally Posted by jongough View Post

Changing the font in the properties box does not apply the font until the OK button is pressed on the properties box. The word 'Example' should change to show you the font selected.

Jon
Jon,

the examples are after pressing ok
In the first case - this is a text marker from a former version - does not happen anything trying to change to the fancy font shown from the settings and in the second case just the size of the ox changes but nor the font of the text - tried several different fonts here.
__________________
bcn is offline   Reply With Quote
Old 21-07-2015, 00:52   #159
Registered User

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

Quote:
Originally Posted by bcn View Post
Jon,

the examples are after pressing ok
In the first case - this is a text marker from a former version - does not happen anything trying to change to the fancy font shown from the settings and in the second case just the size of the ox changes but nor the font of the text - tried several different fonts here.
Not sure what is going on here. If I display the font dialog and select a different font and press OK in the font dialog, the 'Example' text updates (sometimes badly, need to fix this). The text for the point stays the same. If I then press OK in the properties dialog the font for the text updates.

Example on my windows 7 system (running under latest virtualbox with 3D acceleration turned on to help with opengl debugging).

I will have a further look as soon as I can to see if I can find out what is happening.

Jon
Attached Thumbnails
Click image for larger version

Name:	Font change after properties OK-scaled.jpg
Views:	61
Size:	51.5 KB
ID:	105732   Click image for larger version

Name:	Font change before properties OK-scaled.jpg
Views:	59
Size:	84.3 KB
ID:	105733  

__________________
jongough is offline   Reply With Quote
Old 21-07-2015, 01:07   #160
Registered User

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

Hi,
I have put up the first version of the plugin that can handle JSON messages. Currently this is limited to finding a boundary that has a point (Lat/Lon) within it and responding to the originator (with a JSON message) saying if the point is in a boundary and supplying the GUID of the boundary if found. This is the very early version of this and is still subject to change. If anyone is developing a plugin and would like to try it out let me know.

Jon
__________________
jongough is offline   Reply With Quote
Old 21-07-2015, 01:10   #161
bcn
Registered User

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

First with OpenGL ON - wrongly applied , second OFF as described by you OK (Win 8.1)
Attached Thumbnails
Click image for larger version

Name:	2015-07-21 10_03_32-0420-OpenCPN 4.1.602.png
Views:	60
Size:	6.5 KB
ID:	105734   Click image for larger version

Name:	2015-07-21 10_05_50-0420-OpenCPN 4.1.602.png
Views:	56
Size:	5.5 KB
ID:	105735  

__________________
bcn is offline   Reply With Quote
Old 21-07-2015, 01:29   #162
Registered User

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

Quote:
Originally Posted by bcn View Post
First with OpenGL ON - wrongly applied , second OFF as described by you OK (Win 8.1)
I have found the text is not being updated properly in opengl. I will look into it further tomorrow.
__________________
jongough is offline   Reply With Quote
Old 21-07-2015, 02:17   #163
bcn
Registered User

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

Jon,

another idea: to change the icons of a boundary path you will have to go one-by-one. What about "apply to all"?

Hubert
__________________
bcn is offline   Reply With Quote
Old 21-07-2015, 22:54   #164
Registered User

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

Hubert,
I have put up a new version in git that fixes the text display and allows you to select whether to change all boundary icons when you change one. Also there are now a few more locations for the text for a textpoint, i.e. centre top, centre bottom and centre. I have put up a windows installer package. This is now patch 0450.

Jon
__________________
jongough is offline   Reply With Quote
Old 22-07-2015, 00:06   #165
bcn
Registered User

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

Jon,

works fine and you have as well solved the fonts issue in OpenGL, dont you?
One observation: the background on the right side of the text seems to go a bit too wide always as the radius ot the corners is bigger.

With the Json stuff I'm thinking how to test but this will take some time.

What's next? EBL/VRM?

Hubert
__________________

__________________
bcn 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 04:15.


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.