Class: Tracksperanto::Export::FlameStabilizerCornerpin
- Inherits:
-
FlameStabilizer
- Object
- Base
- FlameStabilizer
- Tracksperanto::Export::FlameStabilizerCornerpin
- Defined in:
- lib/export/flame_stabilizer_cornerpin.rb
Overview
Exports setups with tracker naming that works with the Action bilinears
Defined Under Namespace
Classes: Sorter
Constant Summary collapse
- CORNERPIN_NAMING =
%w( none top_left top_right bottom_left bottom_right )
Constants inherited from FlameStabilizer
Tracksperanto::Export::FlameStabilizer::COLOR, Tracksperanto::Export::FlameStabilizer::DATETIME_FORMAT
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
- .desc_and_extension ⇒ Object
- .human_name ⇒ Object
-
.new(*arguments) ⇒ Object
Initialize the exporter with a preconfigured sorter around it.
Instance Method Summary collapse
- #end_tracker_segment ⇒ Object
- #export_point(frame, abs_float_x, abs_float_y, float_residual) ⇒ Object
-
#prefix(tracker_channel) ⇒ Object
Overridden to give the right names to trackers.
- #start_tracker_segment(tracker_name) ⇒ Object
Methods inherited from FlameStabilizer
Methods inherited from Base
#end_export, inherited, #initialize, #start_export
Methods included from ConstName
Methods included from SimpleExport
Constructor Details
This class inherits a constructor from Tracksperanto::Export::Base
Class Method Details
.desc_and_extension ⇒ Object
6 7 8 |
# File 'lib/export/flame_stabilizer_cornerpin.rb', line 6 def self.desc_and_extension "flame_cornerpin.stabilizer" end |
.human_name ⇒ Object
10 11 12 |
# File 'lib/export/flame_stabilizer_cornerpin.rb', line 10 def self.human_name "Flame/Smoke 2D Stabilizer setup for bilinear 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_cornerpin.rb', line 76 def self.new(*arguments) object = super Sorter.new(object) end |
Instance Method Details
#end_tracker_segment ⇒ Object
102 103 104 105 |
# File 'lib/export/flame_stabilizer_cornerpin.rb', line 102 def end_tracker_segment return if @skip super end |
#export_point(frame, abs_float_x, abs_float_y, float_residual) ⇒ Object
97 98 99 100 |
# File 'lib/export/flame_stabilizer_cornerpin.rb', line 97 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
84 85 86 87 |
# File 'lib/export/flame_stabilizer_cornerpin.rb', line 84 def prefix(tracker_channel) tracker_name = CORNERPIN_NAMING[@counter] [tracker_name, tracker_channel].join("/") end |
#start_tracker_segment(tracker_name) ⇒ Object
89 90 91 92 93 94 95 |
# File 'lib/export/flame_stabilizer_cornerpin.rb', line 89 def start_tracker_segment(tracker_name) if (@counter == 4) @skip = true else super end end |