Class: Tracksperanto::Export::FlameStabilizer2014Cornerpin

Inherits:
FlameStabilizer2014 show all
Defined in:
lib/export/flame_stabilizer_2014_cornerpin.rb

Overview

Exports setups with tracker naming that works with the Action bilinears

Defined Under Namespace

Classes: Sorter

Constant Summary collapse

CORNERPIN_NAMING =

Now instead of names we got vague indices. YAY for Rue Duc!

%w( none tracker0_0 tracker0_1 tracker1_0 tracker1_1 )

Constants inherited from FlameStabilizer2014

Tracksperanto::Export::FlameStabilizer2014::COLOR, Tracksperanto::Export::FlameStabilizer2014::DATETIME_FORMAT

Instance Attribute Summary

Attributes inherited from Base

#io

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from FlameStabilizer2014

#end_export, #start_export

Methods inherited from Base

#end_export, #initialize, #start_export

Methods included from ConstName

#const_name

Methods included from SimpleExport

#just_export

Constructor Details

This class inherits a constructor from Tracksperanto::Export::Base

Class Method Details

.desc_and_extensionObject



4
5
6
# File 'lib/export/flame_stabilizer_2014_cornerpin.rb', line 4

def self.desc_and_extension
  "flamesmoke_2014_cornerpin.stabilizer"
end

.human_nameObject



8
9
10
# File 'lib/export/flame_stabilizer_2014_cornerpin.rb', line 8

def self.human_name
  "Flame/Smoke 2D Stabilizer setup (v. 2014 and above) for corner pins"
end

.new(*arguments) ⇒ Object

Initialize the exporter with a preconfigured sorter around it. When this object receives the commands they will come from the Sorter instead, and the trackers will already be in their Z-order



76
77
78
79
# File 'lib/export/flame_stabilizer_2014_cornerpin.rb', line 76

def self.new(*arguments)
  object = super
  Sorter.new(object)
end

Instance Method Details

#end_tracker_segmentObject



103
104
105
106
# File 'lib/export/flame_stabilizer_2014_cornerpin.rb', line 103

def end_tracker_segment
  return if @skip
  super
end

#export_point(frame, abs_float_x, abs_float_y, float_residual) ⇒ Object



98
99
100
101
# File 'lib/export/flame_stabilizer_2014_cornerpin.rb', line 98

def export_point(frame, abs_float_x, abs_float_y, float_residual)
  return if @skip
  super
end

#prefix(tracker_channel) ⇒ Object

Overridden to give the right names to trackers



85
86
87
88
# File 'lib/export/flame_stabilizer_2014_cornerpin.rb', line 85

def prefix(tracker_channel)
  tracker_name = CORNERPIN_NAMING[@counter]
  [tracker_name, tracker_channel].join("/")
end

#start_tracker_segment(tracker_name) ⇒ Object



90
91
92
93
94
95
96
# File 'lib/export/flame_stabilizer_2014_cornerpin.rb', line 90

def start_tracker_segment(tracker_name)
  if (@counter == 4)
    @skip = true
  else
    super
  end 
end