Class: Tracksperanto::Export::FlameStabilizerCornerpin

Inherits:
FlameStabilizer show all
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

#io

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from FlameStabilizer

#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



5
6
7
# File 'lib/export/flame_stabilizer_cornerpin.rb', line 5

def self.desc_and_extension
  "flame_cornerpin.stabilizer"
end

.human_nameObject



9
10
11
# File 'lib/export/flame_stabilizer_cornerpin.rb', line 9

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



75
76
77
78
# File 'lib/export/flame_stabilizer_cornerpin.rb', line 75

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

Instance Method Details

#end_tracker_segmentObject



101
102
103
104
# File 'lib/export/flame_stabilizer_cornerpin.rb', line 101

def end_tracker_segment
  return if @skip
  super
end

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



96
97
98
99
# File 'lib/export/flame_stabilizer_cornerpin.rb', line 96

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



83
84
85
86
# File 'lib/export/flame_stabilizer_cornerpin.rb', line 83

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

#start_tracker_segment(tracker_name) ⇒ Object



88
89
90
91
92
93
94
# File 'lib/export/flame_stabilizer_cornerpin.rb', line 88

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