-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2911993
commit 341e6f3
Showing
4 changed files
with
61 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
worldwind/src/commonMain/kotlin/earth/worldwind/layer/graticule/LineStyle.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package earth.worldwind.layer.graticule | ||
|
||
/** | ||
* A line stipple pattern. | ||
* | ||
* @param factor specifies the number of times each bit in the pattern is repeated before the next bit is used. For | ||
* example, if the factor is 3, each bit is repeated three times before using the next bit. The | ||
* specified factor must be either zero or an integer greater than 0. A factor of 0 indicates no | ||
* stippling. | ||
* @param pattern specifies a number whose lower 16 bits define a pattern of which pixels in the image are white and | ||
* which are transparent. Each bit corresponds to a pixel, and the pattern repeats after every n*16 | ||
* pixels, where n is the factor. For example, if the factor is 3, each bit in the pattern is | ||
* repeated three times before using the next bit. | ||
*/ | ||
enum class LineStyle(val factor: Int, val pattern: Short) { | ||
SOLID(0, 0x0000), | ||
DASHED(1, 0xFFE0.toShort()), | ||
DOTTED(2, 0xCCCC.toShort()), | ||
DASH_DOTTED(2, 0xFFCC.toShort()) | ||
} |