summaryrefslogtreecommitdiff
path: root/NT/src/rendercontext.h
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2014-02-05 13:05:39 +0000
committerComment <tim@gray.(none)>2014-02-05 13:05:39 +0000
commitb721171f6912dcaca5c9f326617789938f89b787 (patch)
treed6c44a4c04dc2d4fc16333f586821cb0d8dd8965 /NT/src/rendercontext.h
parent943bfa53cf5df0ecc9b04967a61be17c64e33e77 (diff)
NT streamlining thread command process
Diffstat (limited to 'NT/src/rendercontext.h')
-rw-r--r--NT/src/rendercontext.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/NT/src/rendercontext.h b/NT/src/rendercontext.h
index d1acf55..3ac9c08 100644
--- a/NT/src/rendercontext.h
+++ b/NT/src/rendercontext.h
@@ -42,7 +42,8 @@ namespace Rotor {
#define ANALYSE_AUDIO 1
#define PREVIEW 2
#define RENDER 3
- #define LOAD_GRAPH 4
+ #define LOAD_GRAPH_FILE 4
+ #define LOAD_GRAPH_STRING 5
class Session_command {
public:
@@ -50,11 +51,12 @@ namespace Rotor {
string uid,method,id,body;
vector<string> commands;
};
- class Session_task {
+ class Session_task {
public:
Session_task(const string &_uid="",int _task=0):uid(_uid),task(_task) {};
string uid;
int task;
+ string message;
};
class Render_status {
public:
@@ -92,6 +94,7 @@ namespace Rotor {
cancel();
logger.information("stopped thread");
}
+ void runTask();
void add_queue(Session_task item);
bool set_profile(const std::string& _profile){
if (profiles.find(_profile)==profiles.end()) return false;
@@ -109,8 +112,11 @@ namespace Rotor {
return Render_status(NOT_FOUND);
};
std::string text_render(std::string node_id="");
+ bool video_render(std::string output_filename,std::string node_id="");
Graph graph;
private:
+ bool cancelled;
+ double progress;
int state;
std::string id;
std::unordered_map<std::string,Render_status> renders;