Class: Rozi::TrackProperties
- Inherits:
-
DataStruct
- Object
- DataStruct
- Rozi::TrackProperties
- Includes:
- Shared, Shared::DatumSetter
- Defined in:
- lib/rozi/tracks.rb
Overview
Represents the track properties at the top of an Ozi Explorer track file
Constant Summary collapse
- PROPERTIES =
[ :datum, :line_width, :color, :description, :skip_value, :type, :fill_style, :fill_color ]
Instance Method Summary collapse
- #color=(color) ⇒ Object
-
#initialize(*args, **kwargs) ⇒ TrackProperties
constructor
A new instance of TrackProperties.
Methods included from Shared::DatumSetter
Methods included from Shared
#datum_valid?, #escape_text, #interpret_color, #unescape_text
Constructor Details
#initialize(*args, **kwargs) ⇒ TrackProperties
Returns a new instance of TrackProperties.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/rozi/tracks.rb', line 63 def initialize(*args, **kwargs) update( datum: "WGS 84", line_width: 2, color: 255, description: "", skip_value: 1, type: 0, fill_style: 0, fill_color: 0 ) super end |
Instance Method Details
#color=(color) ⇒ Object
78 79 80 |
# File 'lib/rozi/tracks.rb', line 78 def color=(color) super interpret_color(color) end |