Pencil2D Animation
Download Community News Docs Contribute
  • Overview
  • Articles
  • Code
  •  
  • Class List
  • Class Index
  • Class Hierarchy
  • Class Members
  • File List
Loading...
Searching...
No Matches
  • app
  • src
commandlineexporter.h
1/*
2
3Pencil2D - Traditional Animation Software
4Copyright (C) 2005-2007 Patrick Corrieri & Pascal Naidon
5Copyright (C) 2012-2020 Matthew Chiawen Chang
6
7This program is free software; you can redistribute it and/or
8modify it under the terms of the GNU General Public License
9as published by the Free Software Foundation; version 2 of the License.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16*/
17
18#ifndef COMMANDLINEEXPORTER_H
19#define COMMANDLINEEXPORTER_H
20
21#include <QTextStream>
22
23class Editor;
24class LayerCamera;
25
29class CommandLineExporter : QObject
30{
31 Q_OBJECT
32
33public:
39 explicit CommandLineExporter(Editor *editor);
40
55 bool process(const QString &inputPath,
56 const QStringList &outputPaths,
57 const QString &camera,
58 int width,
59 int height,
60 int startFrame,
61 int endFrame,
62 bool transparency);
63
64private:
65 Editor *mEditor;
66 QTextStream mOut;
67 QTextStream mErr;
68 void exportMovie(const QString &outputPath,
69 const LayerCamera *cameraLayer,
70 const QSize &exportSize,
71 int startFrame,
72 int endFrame,
73 bool transparency);
74 void exportImageSequence(const QString &outputPath,
75 const QString &format,
76 const LayerCamera *cameraLayer,
77 const QSize &exportSize,
78 int startFrame,
79 int endFrame,
80 bool transparency);
81};
82
83#endif // COMMANDLINEEXPORTER_H
CommandLineExporter
Handles command line export jobs.
Definition: commandlineexporter.h:30
CommandLineExporter::process
bool process(const QString &inputPath, const QStringList &outputPaths, const QString &camera, int width, int height, int startFrame, int endFrame, bool transparency)
Exports a Pencil2D file according to the specified options.
Definition: commandlineexporter.cpp:46
Editor
Definition: editor.h:71
LayerCamera
Definition: layercamera.h:30
QObject
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QSize
QString
QStringList
QTextStream
Generated on Thu May 8 2025 04:47:53 for Pencil2D by doxygen 1.9.6 based on revision 4513250b1d5b1a3676ec0e67b06b7a885ceaae39