|
|
09-02-2016, 23:09
|
#1
|
Registered User
Join Date: Feb 2016
Posts: 27
|
Modifying ship representation in OpenCPN
I need to modify the standard triangle representation of ships in OpenCPN
- for individual MMSIs
- for ship type/category
Can anybody tell me where to send my request
or where to start looking for an existing feature
or where to start looking for in the source code?
+++, Egon
|
|
|
10-02-2016, 00:20
|
#2
|
Registered User
Join Date: Sep 2015
Location: Essex, England
Boat: Hartley Tahitian 48
Posts: 394
|
Re: Modifying ship representation in OpenCPN
|
|
|
10-02-2016, 02:28
|
#3
|
Registered User
Join Date: Oct 2009
Location: Lelystad, The Netherlands
Boat: vd Stadt 44, Ben the Boat
Posts: 233
|
Re: Modifying ship representation in OpenCPN
Quote:
Originally Posted by paulajayne
|
I would just start @ OpenCPN | Official OpenCPN Homepage there is a lot to read and click
|
|
|
10-02-2016, 02:33
|
#4
|
Registered User
Join Date: Feb 2016
Posts: 27
|
Re: Modifying ship representation in OpenCPN
I have done so before.
Ships seem to be "generated" at runtime rather than being loaded from a bitmap.
So all of the info there does not apply.
Thanks anyway.
+++, Egon
|
|
|
10-02-2016, 02:50
|
#5
|
Registered User
Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
|
Re: Modifying ship representation in OpenCPN
But you know the new settings in Options/Ships/AIS Targets introduced in OpenCPN version 4.2?
Gerhard
|
|
|
10-02-2016, 02:57
|
#6
|
Registered User
Join Date: Feb 2016
Posts: 27
|
Re: Modifying ship representation in OpenCPN
I suppose you are referring to the "MMSI properties" - yes, I know about these and I already have defined an MMSI record. But there is no way to add any information of how to represent that ship by a user defined icon.
+++, Egon
|
|
|
10-02-2016, 03:06
|
#7
|
Registered User
Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
|
Re: Modifying ship representation in OpenCPN
Quote:
Originally Posted by egon.5004
I suppose you are referring to the "MMSI properties" - yes, I know about these and I already have defined an MMSI record. But there is no way to add any information of how to represent that ship by a user defined icon.
+++, Egon
|
No, not "MMSI Properties" but as I wrote: "AIS Targets". See the "Display" section there.
If you want more changes to the symbols get the OpenCPN sources and read the file ais.cpp where the symbols are drawn.
Gerhard
|
|
|
10-02-2016, 03:21
|
#8
|
Registered User
Join Date: Feb 2016
Posts: 27
|
Re: Modifying ship representation in OpenCPN
The options in the display section do not help me either - but the hint to ais.cpp looks promising.
The goal - I should have explained earlier - is to distinguisch members of different teams.
+++, Egon
|
|
|
10-02-2016, 04:40
|
#9
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,627
|
Re: Modifying ship representation in OpenCPN
Gerhard, I don't believe there is a way to assign a different target symbols to MMSI or Ship type/category.
Would this type of change really be permitted? It seems like the symbols are predetermined and specified.
|
|
|
10-02-2016, 04:47
|
#10
|
Registered User
Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,734
|
Re: Modifying ship representation in OpenCPN
Egon can do with the code what he likes or needs to do.
For instance placing a colored flag or needle for the different teams in addition to the standard symbol.
That this then might not getting back into mainstream is a different question.
|
|
|
10-02-2016, 05:18
|
#11
|
Registered User
Join Date: Feb 2016
Posts: 27
|
Re: Modifying ship representation in OpenCPN
Thanks to all of you.
Despite all standards there is no reason to disallow specific symbols for specific MMSI numbers. As I can declare specific targets as "buddies" or "followers" I really would appreciate the ability to tell OpenCPN how to represent specific targets.
The best place to do it would obviously be the "MMSI properties" tab - so that anyone could make use of that feature - if wanted, e.g. visually discern any competitor in a regatta. That would be a nice feature in general.
Right now I am trying to figure out which changes to apply to ais.cpp.
This will do for me right now.
Thanks again.
+++, Egon
|
|
|
10-02-2016, 05:39
|
#12
|
Registered User
Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
|
Re: Modifying ship representation in OpenCPN
As Hubert (bcn) pointed out already you can do with the software what you want. You can even try to sell your modified version as the main developer has done by himself already for an Android version...
Gerhard
|
|
|
10-02-2016, 05:44
|
#13
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,627
|
Re: Modifying ship representation in OpenCPN
Egon,
AIS must meet certain standards, ECDIS. Perhaps you should put this AIS -Feature Request in to Tracker. Register on tracker and then login and add a Task. Maybe someone will oblige, with enough votes.
|
|
|
10-02-2016, 05:50
|
#14
|
Registered User
Join Date: Feb 2016
Posts: 27
|
Re: Modifying ship representation in OpenCPN
rgleason
That sounds like a good idea to me - alas, I do not know what "tracker" is nor how to register for it. Can you give me a link?
|
|
|
10-02-2016, 06:11
|
#15
|
Registered User
Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
|
Re: Modifying ship representation in OpenCPN
Rick,
as you well know such extensions never follow the ECDIS standards and you have pointed out this already yourself above here there is no need to make a request in the Tracker. Sometimes it is very hard to follow your thoughts...
Gerhard
|
|
|
|
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
Advertise Here
Recent Discussions |
|
|
|
|
|
|
|
|
|
|
|
|
Vendor Spotlight |
|
|
|
|
|