Class: Tracksperanto::Import::FlameStabilizer
- Defined in:
- lib/import/flame_stabilizer.rb
Defined Under Namespace
Classes: StabilizerParser
Instance Attribute Summary
Attributes inherited from Base
#height, #io, #progress_block, #width
Class Method Summary collapse
-
.autodetects_size? ⇒ Boolean
Flame setups contain clear size indications.
- .distinct_file_ext ⇒ Object
- .human_name ⇒ Object
Instance Method Summary collapse
Methods inherited from Base
inherited, known_snags, #report_progress
Methods included from BlockInit
Methods included from ZipTuples
Methods included from ConstName
Methods included from Safety
Methods included from Casts
#cast_to_bool, #cast_to_float, #cast_to_int, #cast_to_string, included
Class Method Details
.autodetects_size? ⇒ Boolean
Flame setups contain clear size indications
7 8 9 |
# File 'lib/import/flame_stabilizer.rb', line 7 def self.autodetects_size? true end |
.distinct_file_ext ⇒ Object
11 12 13 |
# File 'lib/import/flame_stabilizer.rb', line 11 def self.distinct_file_ext ".stabilizer" end |
.human_name ⇒ Object
15 16 17 |
# File 'lib/import/flame_stabilizer.rb', line 15 def self.human_name "Flame .stabilizer file" end |
Instance Method Details
#each ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/import/flame_stabilizer.rb', line 19 def each report_progress("Extracting setup size") self.width, self.height = extract_width_and_height_from_stream(@io) report_progress("Extracting all animation channels") channels, names = extract_channels_from_stream(@io) begin report_progress("Assembling tracker curves from channels") scavenge_trackers_from_channels(channels, names) {|t| yield(t) } ensure channels.clear end end |