★ wanayoo — archive 1999 https://github.com/paceholder/nodeeditor/issues/201Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get trees in the scene and run each in separate threads #201

Open
jaafari opened this issue Nov 15, 2018 · 0 comments
Open

get trees in the scene and run each in separate threads #201

jaafari opened this issue Nov 15, 2018 · 0 comments

Comments

@jaafari
Copy link

@jaafari jaafari commented Nov 15, 2018

How can we get trees in the scene?
There is a method for iterating over NodeDataModels (iterateOverNodeDataDependentOrder) but this function iterates over all nodes, I want a method to iterate over each tree, and it must see each node toward flow direction.
I've written a subclass of NodeDataModel with virtual method process, to add a process to each node. I want to separate each tree and run them in separate threads.

class RunnableDataModel: public NodeDataModel
{
  virtual void preprocess();
  virtual int process() = 0;
  virtual void postprocess();
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.