Sha256: 218992a4a8c04f2a7626b243cdfb30c24e49abf6645a7dbbce1731386accb92d

Contents?: true

Size: 770 Bytes

Versions: 5

Compression:

Stored size: 770 Bytes

Contents

class Tracksperanto::Middleware::Base
  include Tracksperanto::Casts
  
  def initialize(exporter)
    @exporter = exporter
  end
  
  # Called on export start
  def start_export( img_width, img_height)
    @exporter.start_export(img_width, img_height)
  end
  
  # Called on export end
  def end_export
    @exporter.end_export
  end
  
  # Called on tracker start, one for each tracker. Start of the next tracker
  # signifies that the previous tracker has passed by
  def start_tracker_segment(tracker_name)
    @exporter.start_tracker_segment(tracker_name)
  end
  
  # Called for each tracker keyframe
  def export_point(at_frame_i, abs_float_x, abs_float_y, float_residual)
    @exporter.export_point(at_frame_i, abs_float_x, abs_float_y, float_residual)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tracksperanto-1.0.6 lib/middleware/base.rb
tracksperanto-1.0.4 lib/middleware/base.rb
tracksperanto-1.0.2 lib/middleware/base.rb
tracksperanto-1.0.1 lib/middleware/base.rb
tracksperanto-1.0.0 lib/middleware/base.rb