class Tracksperanto::Tool::Base

The base tool class works just like a Tracksperanto::Export::Base, but it only wraps another exporting object and does not get registered on it's own as an export format. Tool can be used to massage the tracks being exported in various interesting ways - like moving the coordinates, clipping the keyframes, scaling the whole export or even reversing the trackers to go backwards

Public Class Methods

action_description() click to toggle source

Returns the human name of the action that the tool will perform. The action is the in infinitive form, like “Remove all the invalid keyframes”, “Crop the image” and so on

# File lib/tools/base.rb, line 25
def self.action_description
  "Base tool class"
end
inherited(by) click to toggle source

Used to automatically register your tool in Tracksperanto.tools Normally you wouldn't need to override this

Calls superclass method
# File lib/tools/base.rb, line 18
def self.inherited(by)
  Tracksperanto.tools.push(by)
  super
end
new(*exporter_and_args_for_block_init) click to toggle source

Constructor accepts the exporter that will be wrapped, followed by the optional options hash and the optional block that yields self

Calls superclass method Tracksperanto::BlockInit::new
# File lib/tools/base.rb, line 31
def initialize(*exporter_and_args_for_block_init)
  @exporter = exporter_and_args_for_block_init.shift
  super
end