Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-02-2016, 00:09   #1
Registered User

Join Date: Feb 2016
Posts: 27
Question 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
__________________

__________________
egon.5004 is offline   Reply With Quote
Old 10-02-2016, 01:20   #2
Registered User

Join Date: Sep 2015
Location: Essex, England
Boat: Hartley Tahitian 48
Posts: 284
Re: Modifying ship representation in OpenCPN

Contact:-

Cruisers & Sailing Forums - View Profile: bdbcat

On this forum
__________________

__________________
paulajayne is offline   Reply With Quote
Old 10-02-2016, 03:28   #3
Registered User

Join Date: Oct 2009
Location: Lelystad, The Netherlands
Boat: vd Stadt 44, Ben the Boat
Posts: 195
Re: Modifying ship representation in OpenCPN

Quote:
Originally Posted by paulajayne View Post
I would just start @ OpenCPN | Official OpenCPN Homepage there is a lot to read and click
__________________
champ8242 is offline   Reply With Quote
Old 10-02-2016, 03: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
__________________
egon.5004 is offline   Reply With Quote
Old 10-02-2016, 03:50   #5
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,777
Re: Modifying ship representation in OpenCPN

But you know the new settings in Options/Ships/AIS Targets introduced in OpenCPN version 4.2?

Gerhard
__________________
CarCode is online now   Reply With Quote
Old 10-02-2016, 03: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
__________________
egon.5004 is offline   Reply With Quote
Old 10-02-2016, 04:06   #7
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,777
Re: Modifying ship representation in OpenCPN

Quote:
Originally Posted by egon.5004 View Post
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
__________________
CarCode is online now   Reply With Quote
Old 10-02-2016, 04: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
__________________
egon.5004 is offline   Reply With Quote
Old 10-02-2016, 05:40   #9
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,407
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.
__________________
rgleason is online now   Reply With Quote
Old 10-02-2016, 05:47   #10
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 2,766
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.
__________________
bcn is online now   Reply With Quote
Old 10-02-2016, 06: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
__________________
egon.5004 is offline   Reply With Quote
Old 10-02-2016, 06:39   #12
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,777
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
__________________
CarCode is online now   Reply With Quote
Old 10-02-2016, 06:44   #13
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,407
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.
__________________
rgleason is online now   Reply With Quote
Old 10-02-2016, 06: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?
__________________
egon.5004 is offline   Reply With Quote
Old 10-02-2016, 07:11   #15
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,777
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
__________________

__________________
CarCode is online now   Reply With Quote
Reply

Tags
enc, opencpn

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
Modifying a Snowgoose Joben Multihull Sailboats 3 17-12-2013 08:57
Repairing , Modifying & Painting the Deck of Windsong Beersmith Construction, Maintenance & Refit 33 10-05-2012 13:22
Modifying Privilege 39 gpalana Multihull Sailboats 8 02-10-2011 04:03
Ideas for Fixing / Modifying Saloon Table EllanVannin Construction, Maintenance & Refit 3 27-04-2010 00:30
Modifying the Boom - Need Suggestions Roy M Deck hardware: Rigging, Sails & Hoisting 5 08-02-2010 21:26



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 14:28.


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.