Pencil2D Animation
Download
Community
News
Docs
Contribute
API Documentation
5eeebd3c7472c3c2e6618ff9a94eca7af8af593e
Main Page
Related Pages
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
Properties
Pages
app
src
commandlineexporter.h
1
/*
2
3
Pencil2D - Traditional Animation Software
4
Copyright (C) 2005-2007 Patrick Corrieri & Pascal Naidon
5
Copyright (C) 2012-2020 Matthew Chiawen Chang
6
7
This program is free software; you can redistribute it and/or
8
modify it under the terms of the GNU General Public License
9
as published by the Free Software Foundation; version 2 of the License.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
*/
17
18
#ifndef COMMANDLINEEXPORTER_H
19
#define COMMANDLINEEXPORTER_H
20
21
#include <QTextStream>
22
23
class
LayerCamera
;
24
class
MainWindow2
;
25
29
class
CommandLineExporter
:
QObject
30
{
31
Q_OBJECT
32
33
public
:
39
explicit
CommandLineExporter
(
MainWindow2
*mainWindow);
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
64
private
:
65
MainWindow2
*mMainWindow;
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::CommandLineExporter
CommandLineExporter(MainWindow2 *mainWindow)
Creates a new exporter instance.
Definition:
commandlineexporter.cpp:32
LayerCamera
Definition:
layercamera.h:25
CommandLineExporter
Handles command line export jobs.
Definition:
commandlineexporter.h:29
QTextStream
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject
QString
QStringList
MainWindow2
Definition:
mainwindow2.h:54
QSize
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:40
Generated on Sun Dec 20 2020 16:19:57 for Pencil2D by
1.8.6