World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Symbology and Tactical Graphics

Reply
 
Thread Tools Display Modes
Old 05-18-2012, 08:16 PM   #1
KurtZachary
Junior Member
 
Join Date: Apr 2012
Posts: 20
KurtZachary is on a distinguished road
Default is the Alternate Operational Condition supported?

I'm trying to get the alternate operational condition to show up to no avail. I copied the TacticalSymbols class and modified it so that the AVList passed when creating the symbol object has the value set:

modifiers.setValue(SymbologyConstants.OP ERATIONAL_CONDITION_ALTERNATE, SymbologyConstants.OPERATIONAL_CONDITION _ALTERNATE_DAMAGED);

next I create the symbol object.

and then I make sure the modifiers will show up:
symbol.setShowGraphicModifiers(true);

and then I add the symbol object to the layer.


All of the other modifiers I set show up but the Alternate Operational Condition does not. Any ideas?
KurtZachary is offline   Reply With Quote
Old 05-21-2012, 11:51 PM   #2
pabercrombie
WW Dev. Team
 
Join Date: Sep 2010
Location: Boston, MA, USA
Posts: 325
pabercrombie is on a distinguished road
Default

There is a bug in the 1.3 release that prevents the alternate operational condition modifier from rendering. The bug was fixed in svn revision #601, and the fix will be available in the 5/22 build. See WWJ-285.

You can enable the alternate modifier like this:
Code:
symbol.setModifier(SymbologyConstants.OPERATIONAL_CONDITION_ALTERNATE, true);
pabercrombie is offline   Reply With Quote
Old 05-22-2012, 07:45 PM   #3
KurtZachary
Junior Member
 
Join Date: Apr 2012
Posts: 20
KurtZachary is on a distinguished road
Default Thanks for the quick response!

I'll be looking forward to that fix.
KurtZachary is offline   Reply With Quote
Old 05-25-2012, 02:26 PM   #4
KurtZachary
Junior Member
 
Join Date: Apr 2012
Posts: 20
KurtZachary is on a distinguished road
Default Is it really fixed?

I downloaded worldwind-daily-305.605.zip and tried to get the operational condition alternate to display but it isn't working. Is the fix in that daily build?
KurtZachary is offline   Reply With Quote
Old 05-25-2012, 05:52 PM   #5
pabercrombie
WW Dev. Team
 
Join Date: Sep 2010
Location: Boston, MA, USA
Posts: 325
pabercrombie is on a distinguished road
Default

Yes, it should work in that build. Here is an example of how to create a symbol using the alternate indicator:
Code:
TacticalSymbol symbol = new MilStd2525TacticalSymbol("SHGXUCFRMS----G", Position.fromDegrees(32.4014, 63.3894, 0));
symbol.setModifier(SymbologyConstants.OPERATIONAL_CONDITION_ALTERNATE, true);
Note that the operational condition is encoded in the SIDC. In the example above, the "X" in position 4 of the SIDC indicates that the entity has been destroyed.

Please try the code above. If it doesn't work for you, can you explain what happens? (Does the indicator not appear? Does it appear incorrectly?)
pabercrombie is offline   Reply With Quote
Old 05-25-2012, 08:02 PM   #6
KurtZachary
Junior Member
 
Join Date: Apr 2012
Posts: 20
KurtZachary is on a distinguished road
Default

It's Friday so my reading skills are challenged evidently. I was trying to use setValue and not setModifier and I didn't have the right SIDC. In looking at the code (in SymbologyConstants) it looks like it uses 2 characters to indicate the alternate operational condition and not just 1 but the SIDC only uses 1 character? Is the "P" portion of the 2 characters not used so the 4 possibilities for the SIDC are C, D, X, and F?

Thanks for the quick response!
KurtZachary is offline   Reply With Quote
Old 05-25-2012, 08:08 PM   #7
pabercrombie
WW Dev. Team
 
Join Date: Sep 2010
Location: Boston, MA, USA
Posts: 325
pabercrombie is on a distinguished road
Default

Yes, the "P" is ignored. The valid values in the SIDC are defined by the 2525 spec, and are slightly different for each appendix. For Appendix A (Warfighting symbology), the valid values are C, D, X, and F, as defined in Table A-I on pg 51 of MIL-STD-2525C.
pabercrombie is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may 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
Forum Jump


All times are GMT +1. The time now is 07:11 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.