open_toontown_panda3d/pandaapp/src/stitch/stitchCommandProgram.cxx

59 lines
2.0 KiB
C++

// Filename: stitchCommandProgram.cxx
// Created by: drose (16Mar00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
//
// All use of this software is subject to the terms of the Panda 3d
// Software license. You should have received a copy of this license
// along with this source code; you will also find a current copy of
// the license at http://etc.cmu.edu/panda3d/docs/license/ .
//
// To contact the maintainers of this program write to
// panda3d-general@lists.sourceforge.net .
//
////////////////////////////////////////////////////////////////////
#include "stitchCommandProgram.h"
#include "stitchImageCommandOutput.h"
////////////////////////////////////////////////////////////////////
// Function: StitchCommandProgram::Constructor
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
StitchCommandProgram::
StitchCommandProgram() {
set_program_description
("This program reads a stitch command file, performs processing on the "
"file (such as alignment of images according to points marked within a "
"stitch region), and writes the resulting command file to standard "
"output. It does not actually operate on any images.\n"
"The primary function of this program is to test the syntax of a "
"command file, or to preprocess a command file so that a series of "
"images (for instance, frames of a movie) may be easily transformed "
"by the exact same operation.");
}
////////////////////////////////////////////////////////////////////
// Function: StitchCommandProgram::run
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
void StitchCommandProgram::
run() {
StitchImageCommandOutput outputter;
_command_file.process(outputter);
}
int main(int argc, char *argv[]) {
StitchCommandProgram prog;
prog.parse_command_line(argc, argv);
prog.run();
return 0;
}