Cruisers & Sailing Forums (http://www.cruisersforum.com/forums/)
-   OpenCPN (http://www.cruisersforum.com/forums/f134/)
-   -   Modifying ship representation in OpenCPN (http://www.cruisersforum.com/forums/f134/modifying-ship-representation-in-opencpn-160931.html)

egon.5004 09-02-2016 23:09

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

paulajayne 10-02-2016 00:20

Re: Modifying ship representation in OpenCPN
 
Contact:-

Cruisers & Sailing Forums - View Profile: bdbcat

On this forum

champ8242 10-02-2016 02:28

Re: Modifying ship representation in OpenCPN
 
Quote:

Originally Posted by paulajayne (Post 2041478)

I would just start @ OpenCPN | Official OpenCPN Homepage there is a lot to read and click

egon.5004 10-02-2016 02:33

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

CarCode 10-02-2016 02:50

Re: Modifying ship representation in OpenCPN
 
But you know the new settings in Options/Ships/AIS Targets introduced in OpenCPN version 4.2?

Gerhard

egon.5004 10-02-2016 02:57

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

CarCode 10-02-2016 03:06

Re: Modifying ship representation in OpenCPN
 
Quote:

Originally Posted by egon.5004 (Post 2041513)
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

egon.5004 10-02-2016 03:21

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

rgleason 10-02-2016 04:40

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.

bcn 10-02-2016 04:47

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.

egon.5004 10-02-2016 05:18

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

CarCode 10-02-2016 05:39

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

rgleason 10-02-2016 05:44

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.

egon.5004 10-02-2016 05:50

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?

CarCode 10-02-2016 06:11

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


All times are GMT -7. The time now is 04:48.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2019, vBulletin Solutions, Inc.


ShowCase vBulletin Plugins by Drive Thru Online, Inc.