2014-07-08 03:11:14 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "FractoriumPch.h"
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// FractoriumSettings class.
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
#define EARLYCLIP "render/earlyclip"
|
2014-07-26 15:03:51 -04:00
|
|
|
#define YAXISUP "render/yaxisup"
|
2014-07-08 03:11:14 -04:00
|
|
|
#define TRANSPARENCY "render/transparency"
|
|
|
|
#define OPENCL "render/opencl"
|
|
|
|
#define DOUBLEPRECISION "render/dp64"
|
2014-07-26 15:03:51 -04:00
|
|
|
#define SHOWALLXFORMS "render/dragshowallxforms"
|
2014-07-08 03:11:14 -04:00
|
|
|
#define PLATFORMINDEX "render/platformindex"
|
|
|
|
#define DEVICEINDEX "render/deviceindex"
|
|
|
|
#define THREADCOUNT "render/threadcount"
|
|
|
|
#define CPUDEFILTER "render/cpudefilter"
|
|
|
|
#define OPENCLDEFILTER "render/opencldefilter"
|
|
|
|
#define CPUSUBBATCH "render/cpusubbatch"
|
|
|
|
#define OPENCLSUBBATCH "render/openclsubbatch"
|
|
|
|
|
|
|
|
#define FINALEARLYCLIP "finalrender/earlyclip"
|
2014-07-26 15:03:51 -04:00
|
|
|
#define FINALYAXISUP "finalrender/finalyaxisup"
|
2014-07-08 03:11:14 -04:00
|
|
|
#define FINALTRANSPARENCY "finalrender/transparency"
|
|
|
|
#define FINALOPENCL "finalrender/opencl"
|
|
|
|
#define FINALDOUBLEPRECISION "finalrender/dp64"
|
|
|
|
#define FINALSAVEXML "finalrender/savexml"
|
|
|
|
#define FINALDOALL "finalrender/doall"
|
|
|
|
#define FINALDOSEQUENCE "finalrender/dosequence"
|
|
|
|
#define FINALKEEPASPECT "finalrender/keepaspect"
|
|
|
|
#define FINALSCALE "finalrender/scale"
|
2014-10-14 11:53:15 -04:00
|
|
|
#define FINALEXT "finalrender/ext"
|
2014-07-08 03:11:14 -04:00
|
|
|
#define FINALPLATFORMINDEX "finalrender/platformindex"
|
|
|
|
#define FINALDEVICEINDEX "finalrender/deviceindex"
|
|
|
|
#define FINALTHREADCOUNT "finalrender/threadcount"
|
|
|
|
#define FINALQUALITY "finalrender/quality"
|
|
|
|
#define FINALTEMPORALSAMPLES "finalrender/temporalsamples"
|
|
|
|
#define FINALSUPERSAMPLE "finalrender/supersample"
|
2014-10-14 11:53:15 -04:00
|
|
|
#define FINALSTRIPS "finalrender/strips"
|
2014-07-08 03:11:14 -04:00
|
|
|
|
|
|
|
#define XMLWIDTH "xml/width"
|
|
|
|
#define XMLHEIGHT "xml/height"
|
|
|
|
#define XMLTEMPORALSAMPLES "xml/temporalsamples"
|
|
|
|
#define XMLQUALITY "xml/quality"
|
|
|
|
#define XMLSUPERSAMPLE "xml/supersample"
|
|
|
|
|
|
|
|
#define OPENFOLDER "path/open"
|
|
|
|
#define SAVEFOLDER "path/save"
|
|
|
|
|
|
|
|
#define OPENXMLEXT "file/openxmlext"
|
|
|
|
#define SAVEXMLEXT "file/savexmlext"
|
|
|
|
#define OPENIMAGEEXT "file/openimageext"
|
|
|
|
#define SAVEIMAGEEXT "file/saveimageext"
|
|
|
|
|
|
|
|
#define IDENTITYID "identity/id"
|
|
|
|
#define IDENTITYURL "identity/url"
|
|
|
|
#define IDENTITYNICK "identity/nick"
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Class for preserving various program options between
|
|
|
|
/// runs of Fractorium. Each of these generally corresponds
|
|
|
|
/// to items in the options dialog and the final render dialog.
|
|
|
|
/// </summary>
|
|
|
|
class FractoriumSettings : public QSettings
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
FractoriumSettings(QObject* parent);
|
|
|
|
void EnsureDefaults();
|
|
|
|
|
|
|
|
bool EarlyClip();
|
|
|
|
void EarlyClip(bool b);
|
2014-07-26 15:03:51 -04:00
|
|
|
|
|
|
|
bool YAxisUp();
|
|
|
|
void YAxisUp(bool b);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
|
|
|
bool Transparency();
|
|
|
|
void Transparency(bool b);
|
|
|
|
|
|
|
|
bool OpenCL();
|
|
|
|
void OpenCL(bool b);
|
|
|
|
|
|
|
|
bool Double();
|
|
|
|
void Double(bool b);
|
|
|
|
|
2014-07-26 15:03:51 -04:00
|
|
|
bool ShowAllXforms();
|
|
|
|
void ShowAllXforms(bool b);
|
|
|
|
|
2014-12-06 00:05:09 -05:00
|
|
|
uint PlatformIndex();
|
|
|
|
void PlatformIndex(uint b);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
2014-12-06 00:05:09 -05:00
|
|
|
uint DeviceIndex();
|
|
|
|
void DeviceIndex(uint b);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
2014-12-06 00:05:09 -05:00
|
|
|
uint ThreadCount();
|
|
|
|
void ThreadCount(uint b);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
|
|
|
bool CpuDEFilter();
|
|
|
|
void CpuDEFilter(bool b);
|
|
|
|
|
|
|
|
bool OpenCLDEFilter();
|
|
|
|
void OpenCLDEFilter(bool b);
|
|
|
|
|
2014-12-06 00:05:09 -05:00
|
|
|
uint CpuSubBatch();
|
|
|
|
void CpuSubBatch(uint b);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
2014-12-06 00:05:09 -05:00
|
|
|
uint OpenCLSubBatch();
|
|
|
|
void OpenCLSubBatch(uint b);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
|
|
|
bool FinalEarlyClip();
|
|
|
|
void FinalEarlyClip(bool b);
|
2014-07-26 15:03:51 -04:00
|
|
|
|
|
|
|
bool FinalYAxisUp();
|
|
|
|
void FinalYAxisUp(bool b);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
|
|
|
bool FinalTransparency();
|
|
|
|
void FinalTransparency(bool b);
|
|
|
|
|
|
|
|
bool FinalOpenCL();
|
|
|
|
void FinalOpenCL(bool b);
|
|
|
|
|
|
|
|
bool FinalDouble();
|
|
|
|
void FinalDouble(bool b);
|
|
|
|
|
|
|
|
bool FinalSaveXml();
|
|
|
|
void FinalSaveXml(bool b);
|
|
|
|
|
|
|
|
bool FinalDoAll();
|
|
|
|
void FinalDoAll(bool b);
|
|
|
|
|
|
|
|
bool FinalDoSequence();
|
|
|
|
void FinalDoSequence(bool b);
|
|
|
|
|
|
|
|
bool FinalKeepAspect();
|
|
|
|
void FinalKeepAspect(bool b);
|
|
|
|
|
2014-12-06 00:05:09 -05:00
|
|
|
uint FinalScale();
|
|
|
|
void FinalScale(uint i);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
2014-10-14 11:53:15 -04:00
|
|
|
QString FinalExt();
|
|
|
|
void FinalExt(const QString& s);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
2014-12-06 00:05:09 -05:00
|
|
|
uint FinalPlatformIndex();
|
|
|
|
void FinalPlatformIndex(uint b);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
2014-12-06 00:05:09 -05:00
|
|
|
uint FinalDeviceIndex();
|
|
|
|
void FinalDeviceIndex(uint b);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
2014-12-06 00:05:09 -05:00
|
|
|
uint FinalThreadCount();
|
|
|
|
void FinalThreadCount(uint b);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
2014-12-06 00:05:09 -05:00
|
|
|
uint FinalQuality();
|
|
|
|
void FinalQuality(uint i);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
2014-12-06 00:05:09 -05:00
|
|
|
uint FinalTemporalSamples();
|
|
|
|
void FinalTemporalSamples(uint i);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
2014-12-06 00:05:09 -05:00
|
|
|
uint FinalSupersample();
|
|
|
|
void FinalSupersample(uint i);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
2014-12-06 00:05:09 -05:00
|
|
|
uint FinalStrips();
|
|
|
|
void FinalStrips(uint i);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
2014-12-06 00:05:09 -05:00
|
|
|
uint XmlTemporalSamples();
|
|
|
|
void XmlTemporalSamples(uint i);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
2014-12-06 00:05:09 -05:00
|
|
|
uint XmlQuality();
|
|
|
|
void XmlQuality(uint i);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
2014-12-06 00:05:09 -05:00
|
|
|
uint XmlSupersample();
|
|
|
|
void XmlSupersample(uint i);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
|
|
|
QString OpenFolder();
|
2014-10-14 11:53:15 -04:00
|
|
|
void OpenFolder(const QString& s);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
|
|
|
QString SaveFolder();
|
2014-10-14 11:53:15 -04:00
|
|
|
void SaveFolder(const QString& s);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
|
|
|
QString OpenXmlExt();
|
2014-10-14 11:53:15 -04:00
|
|
|
void OpenXmlExt(const QString& s);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
|
|
|
QString SaveXmlExt();
|
2014-10-14 11:53:15 -04:00
|
|
|
void SaveXmlExt(const QString& s);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
|
|
|
QString OpenImageExt();
|
2014-10-14 11:53:15 -04:00
|
|
|
void OpenImageExt(const QString& s);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
|
|
|
QString SaveImageExt();
|
2014-10-14 11:53:15 -04:00
|
|
|
void SaveImageExt(const QString& s);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
|
|
|
QString Id();
|
2014-10-14 11:53:15 -04:00
|
|
|
void Id(const QString& s);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
|
|
|
QString Url();
|
2014-10-14 11:53:15 -04:00
|
|
|
void Url(const QString& s);
|
2014-07-08 03:11:14 -04:00
|
|
|
|
|
|
|
QString Nick();
|
2014-10-14 11:53:15 -04:00
|
|
|
void Nick(const QString& s);
|
2014-07-08 03:11:14 -04:00
|
|
|
};
|