Class: Tracksperanto::Import::Equalizer3

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

Overview

Imports 3D Equalizer's text files, version 3

Instance Attribute Summary

Attributes inherited from Base

#height, #io, #progress_block, #width

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

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

.autodetects_size?Boolean

Returns:

  • (Boolean)

8
9
10
# File 'lib/import/equalizer3.rb', line 8

def self.autodetects_size?
  true
end

.human_nameObject


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

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

Instance Method Details

#eachObject


12
13
14
15
16
# File 'lib/import/equalizer3.rb', line 12

def each
  io = Tracksperanto::ExtIO.new(@io)
  detect_format!(io)
  extract_trackers(io) {|t| yield(t) }
end