Class: Tracksperanto::Middleware::Shift
- Defined in:
- lib/middleware/shift.rb
Overview
This middleware moves the keyframs by a preset number of pixels
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
Methods included from Parameters
included, #parameter, #parameters
Methods included from SimpleExport
Methods included from ConstName
Methods included from BlockInit
Methods included from Casts
#cast_to_float, #cast_to_int, #cast_to_string, included
Constructor Details
This class inherits a constructor from Tracksperanto::Middleware::Base
Class Method Details
.action_description ⇒ Object
8 9 10 |
# File 'lib/middleware/shift.rb', line 8 def self.action_description "Move all the trackers by a specified number of pixels" end |
Instance Method Details
#export_point(frame, float_x, float_y, float_residual) ⇒ Object
12 13 14 |
# File 'lib/middleware/shift.rb', line 12 def export_point(frame, float_x, float_y, float_residual) super(frame, float_x + @x_shift.to_f, float_y + @y_shift.to_f, float_residual) end |