-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.h
96 lines (77 loc) · 1.93 KB
/
plugin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
//
// plugin.h
// yaluplug
//
// Created by Daniel Bui on 4/23/15.
//
//
#ifndef YALUX_PLUGIN_H
#define YALUX_PLUGIN_H
#include <QtCore/QProcess>
#include "dzoptionsframe.h"
#include "dzrendersettings.h"
#include "dzrenderoptions.h"
#include "dzprogress.h"
#include "dzrenderhandler.h"
#include "dznode.h"
#include <QtCore/QThread>
#include "dztexture.h"
#include "dztokenbuffer.h"
#include "utility_classes.h"
class QTextEdit;
class QTemporaryFile;
struct G
{
DzRenderHandler *handler; // is only alive during render() function
DzRenderSettings *settings; // used when calling node->render
DzRenderOptions options;
DzOptionsFrame *optFrame;
QFrame *logWindow;
QTextEdit *logText;
DzProgress *RenderProgress;
DzProgress *FrameProgress;
DzBackgroundProgress *backgroundProgress;
int numBackgroundThreads=0;
float currentBackgroundProgress=0;
DzNode *currentNode;
bool inProgress;
int totalFrames;
int frame_counter;
int activeFrame;
int endFrame;
bool bDefaultLightsOn;
bool bIsSpotRender;
QRect cropWindow;
QList<QTemporaryFile*> PLYgarbageCollectionList;
QString LuxExecPath;
QString CmdLineArgs;
bool bShowLuxRenderWindow;
int maxTextureSize;
bool bNetworkRenderOn;
QStringList slaveNodeList;
int renderMode;
QString customRenderString;
int debugLevel;
bool bSaveAlphaChannel;
int haltAtTime;
int haltAtSamplesPerPixel;
float haltAtThreshold;
float tonemapGamma;
float tonemapFstop;
float tonemapExposureTime;
int tonemapISO;
QString LuxToneMapper;
int specularMode;
QString cachePath;
QString tempPath;
QString tempFilenameBase;
QString workingRenderFilename;
QProcess *luxRenderProc;
bool bFrameisFinished;
bool bIsCancelled;
int tempCounter;
QStringList tokenList;
DzTokenBuffer tokenBuffer;
};
extern struct G YaLuxGlobal;
#endif // YALUX_PLUGIN_H