![]() |
|
|
#1 |
|
Junior Member
Join Date: Apr 2012
Posts: 20
![]() |
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? |
|
|
|
|
|
#2 |
|
WW Dev. Team
Join Date: Sep 2010
Location: Boston, MA, USA
Posts: 325
![]() |
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); |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Apr 2012
Posts: 20
![]() |
I'll be looking forward to that fix.
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Apr 2012
Posts: 20
![]() |
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?
|
|
|
|
|
|
#5 |
|
WW Dev. Team
Join Date: Sep 2010
Location: Boston, MA, USA
Posts: 325
![]() |
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);
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?) |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Apr 2012
Posts: 20
![]() |
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! |
|
|
|
|
|
#7 |
|
WW Dev. Team
Join Date: Sep 2010
Location: Boston, MA, USA
Posts: 325
![]() |
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.
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|