guerilla-di/tracksperanto

View on GitHub
lib/export/pftrack_5.rb

Summary

Maintainability
A
0 mins
Test Coverage
# Export for PFTrack .2dt files for version 5
class Tracksperanto::Export::PFTrack5 < Tracksperanto::Export::PFMatchit
    
    def self.desc_and_extension
      "pftrack_v5.2dt"
    end
    
    def self.human_name
      "PFTrack v5 .2dt file (single camera)"
    end
    
    private
    
    def camera_name
      "Primary".inspect
    end
    
    # PFT5 frames are zero-based
    def frame_number(tracksperanto_frame)
      tracksperanto_frame
    end
    
    # PFT5 wants CRLF
    def linebreak
      "\r\n"
    end
end