SightLine Applications Command, Control, and Script API
v3.6
|
Draw user specified overlay graphics on the screen.
NOTE: This replaces SLADrawObject_t
NOTE: For 3000 Picture in Picture, graphic objects are not drawn to the PIP window.
NOTE: To get all the object ids of current drawn objects use SLAGetParameters_t(DrawObject) with an object id of 0. To get the current object information use SLAGetParameters_t(DrawOverlay).
NOTE: Applied to the Command Camera or the camera index specified.
See Draw Order for additional drawing details.
Value | Description |
---|---|
0 | Circle |
1 | Rectangle |
2 | Line |
3 | Reserved |
4 | Filled Circle |
5 | Filled Rectangle |
6 | Text Extended |
7 | Reserved |
8 | KLV Field |
9 | Cross |
10 | Square |
11 | Filled Square |
12 to 254 | Reserved |
255 | Error or Object Not Found |
Object Type | a | b | c | d | e |
---|---|---|---|---|---|
Circle | Center X | Center Y | Radius | – | Line Thickness |
Filled Circle | Center X | Center Y | Radius | – | Line Thickness |
Rectangle | Upper left corner X | Upper left corner Y | Width | Height | Line Thickness |
Filled rectangle | Upper left corner X | Upper left corner Y | Width | Height | Line Thickness |
Line | End point 1 X | End point 1 Y | End point 2 X | End point 2 Y | Line Thickness |
Text Extended | Upper left X | Upper left Y | H Scaling | V Scaling | Font ID | Spacing | – |
KLV Field | Upper left X | Upper left Y | Scaling, Font | Field, Format | – |
Cross | Center X | Center Y | Width | — | Line Thickness |
Square | Center X | Center Y | Width/Height | Angle | Line Thickness |
Filled Square | Center X | Center Y | Width/Height | Angle | Line Thickness |
Horizontal/Vertical scale shifted left 5 (e.g. 32 means no scaling (= 100%). 0 is also interpreted as no scaling). Ignored by 1500/3000 for font ID 5 (Arial) .. 10 (Calibri Bold).
Using a scale other than 100% may result in blurred/smeared text drawing.
Pixels between a character to the next character. If 0, then uses the font's default spacing. For font ID 0 .. 10, this specifies the width of drawn fonts. For UserFont0..UserFont15, this specifies the extra space (padding) between fonts. Not used for font ID 5 .. 10 on 1500/3000.
Thickness of line strokes in pixels. 0 is same as 1.
Parameter | Bits | Description |
---|---|---|
c | 0-7 | Horizontal scaling is value of (Bits 0-7)/32, 0 = no scaling, not used for font ID 5..10 on 1500/3000 |
c | 8-15 | Vertical scaling is value of (Bits 8-15)/32, 0 = no scaling, not used for font ID 5..10 on 1500/3000 |
d | 0-4 | Font ID 0 = Courier, 1 = Courier bold, 5 = Arial, 6 = Arial Bold, 7 = Verdana, 8 = Verdana Bold, 9 = Calibri, 10 = Calibri Bold (17XX/4000 only) 16..31 = UserFont0..UserFont15 – SightLine provides default user fonts but any of them can be replaced by SLAUserFont_t. New 3.4 |
d | 5 | Enable fixed width – applicable to fonts with ID 5 .. 10, draw fonts with a predefined fixed width. |
d | 6 | Enable outline effect – applicable when background color set to transparent |
d | 7 | Enable shadow effect – applicable when background color set to transparent |
d | 8-15 | Pixels between a font to the next font; 0 = font default spacing |
e | 0-15 | Ignored, must be 0 |
Parameter | Bits | Description |
---|---|---|
c | 0-7 | Horizontal and Vertical scaling is value of (Bits 0-7)/32, 0 = no scaling, not used for font ID 5..10 on 1500/3000 |
c | 8-12 | Font ID 0 = Courier, 1 = Courier bold, 5 = Arial, 6 = Arial Bold, 7 = Verdana, 8 = Verdana Bold, 9 = Calibri, 10 = Calibri Bold (17XX/4000 only) 16..31 = UserFont0..UserFont15 – SightLine provides default user fonts but any of them can be replaced by SLAUserFont_t. New 3.4 |
c | 13 | Enable fixed width – applicable to fonts with ID 5 .. 10, draw fonts with a predefined fixed width. |
c | 14 | Enable outline effect – applicable when background color set to transparent |
c | 15 | Enable shadow effect – applicable when background color set to transparent |
d | 0-7 | KLV Field |
d | 8-15 | KLV Format |
e | 0-15 | Ignored, must be 0 |
Value | Field Name | KLV Format |
---|---|---|
0 | UTC Time | Time |
1 | Mission ID | N/A (Send 0) |
2 | Platform Heading | Angle |
3 | Platform Pitch | Angle |
4 | Platform Roll | Angle |
7 | Sensor Latitude | Position |
8 | Sensor Longitude | Position |
9 | Sensor Altitude | Distance |
10 | Sensor HFOV | Angle |
11 | Sensor VFOV | Angle |
12 | Sensor Relative Azimuth Angle | Angle |
13 | Sensor Relative Elevation Angle | Angle |
14 | Sensor Relative Roll Angle | Angle |
15 | Frame Center Latitude | Position |
16 | Frame Center Longitude | Position |
17 | Frame Center Elevation | Distance |
19 | Slant Range | Distance |
20 | Target Location Elevation | Distance |
21 | Target Location Latitude | Position |
22 | Target Location Longitude | Position |
Type | Values |
---|---|
Time | 0 = YYYY-MM-DD hh:mm:ss, 1 = DDMonthYYYY, 2 = HH:MM:SS, 3 = Month DD YYYY, 4 = MM/DD/YY, 5 = MM/DD/YYYY, 6 = DD HHMMZ MON YY (DTG), 7 = DDHHMMZMONYY (DTG - No Spaces) |
Angle | 0 = Degrees, 1 = Radians, 2 = Milliradians |
Distance | 0 = Meters, 1 = Feet |
Position | 0 = MGRS-10 (1 Meter), 1 = Decimal Degrees, 2 = Degrees Minutes Seconds, 3 = MGRS-8 (10 Meter) |
Value | Color | Value | Color |
---|---|---|---|
0 | White | 8 | Light Green |
1 | Black | 9 | Green |
2 | Light Gray | 10 | Dark Green |
3 | Gray | 11 | Red |
4 | Dark Gray | 12 | Orange |
5 | Light Blue | 13 | Yellow |
6 | Blue | 14 | Transparent |
7 | Dark Blue | 15 | Automatic |
Using automatic-color is not recommended on 17XX/4000 and future systems. It may be deprecated in the future on 17XX/4000. Due to the implementation of graphics drawing, using automatic-color may slow down processing speed.
Automatic color on 1500/3000 will continue to work.
NOTE: If automatic color is specified for a User Font (UserFont0 .. UserFont15), then it is ignored and treated as Transparent.
Message ID 0x9C
Byte Offset | Name | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | cameraIndex | Camera Index | |||||||||||||||||||||
5 | objId | Unique object ID - Maximum number of unique objects is 128
| |||||||||||||||||||||
6 | action |
| |||||||||||||||||||||
7 | propertyFlags |
| |||||||||||||||||||||
8 | type | Object Types | |||||||||||||||||||||
9-10 | a | Object Type Specific Parameters | |||||||||||||||||||||
11-12 | b | Object Type Specific Parameters | |||||||||||||||||||||
13-14 | c | Object Type Specific Parameters | |||||||||||||||||||||
15-16 | d | Object Type Specific Parameters | |||||||||||||||||||||
17 | backgroundColor | Object Color
| |||||||||||||||||||||
18 | text.len | string length | |||||||||||||||||||||
19-... | text.str | Text and KLV objects only: text string (64 characters max) For KLV objects use "%s" for time, mission ID, latitude, and longitudes and "%f" for all others. Example "Time: %s" Example "Slant Range: %05.0f (ft)" Example "HFOV: %2.1f (deg)" Example "Sensor Position: %s" Character Encoding: Depending on the font type, different character encodings are used: - Courier(default), Courier bold: ASCII (7bit, 0x20..0x7F) - Arial..Calibri Bold: ISO 8859-1 (8bit, 0x20..0xff, ASCII + additional characters such as European characters) - UserFont0..UserFont15: UTF-8 | |||||||||||||||||||||
varies | e | (Optional) Object Type Specific Parameters (2bytes) New 3.4 |