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
72 73 74 75 |
# File 'lib/export/flame_stabilizer_cornerpin.rb', line 72 def self.new(*arguments) object = super Sorter.new(object) end |
Instance Method Details
#end_tracker_segment ⇒ Object
98 99 100 101 |
# File 'lib/export/flame_stabilizer_cornerpin.rb', line 98 def end_tracker_segment return if @skip super end |
#export_point(frame, abs_float_x, abs_float_y, float_residual) ⇒ Object
93 94 95 96 |
# File 'lib/export/flame_stabilizer_cornerpin.rb', line 93 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
80 81 82 83 |
# File 'lib/export/flame_stabilizer_cornerpin.rb', line 80 def prefix(tracker_channel) tracker_name = CORNERPIN_NAMING[@counter] [tracker_name, tracker_channel].join("/") end |
#start_tracker_segment(tracker_name) ⇒ Object
85 86 87 88 89 90 91 |
# File 'lib/export/flame_stabilizer_cornerpin.rb', line 85 def start_tracker_segment(tracker_name) if (@counter == 4) @skip = true else super end end |