Class: Tracksperanto::Import::Equalizer4

Inherits:
Base
  • Object
show all
Defined in:
lib/import/equalizer4.rb

Overview

Imports 3D Equalizer's text files

Instance Attribute Summary

Attributes inherited from Base

#height, #io, #progress_block, #width

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

autodetects_size?, distinct_file_ext, inherited, known_snags, #report_progress

Methods included from BlockInit

#initialize

Methods included from ZipTuples

#zip_curve_tuples

Methods included from ConstName

#const_name

Methods included from Safety

#safe_reader

Methods included from Casts

#cast_to_bool, #cast_to_float, #cast_to_int, #cast_to_string

Class Method Details

.human_nameObject


4
5
6
# File 'lib/import/equalizer4.rb', line 4

def self.human_name
  "3DE v4 point export file"
end

Instance Method Details

#eachObject


8
9
10
11
12
# File 'lib/import/equalizer4.rb', line 8

def each
  io = Tracksperanto::ExtIO.new(@io)
  num_t = detect_num_of_points(io)
  num_t.times { yield(extract_tracker(io)) }
end