Infognition forum
September 06, 2010, 05:49:38 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Last GraphEditPlus version: 1.4.0   Last Video Enhancer version: 1.9.4
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Compiled code and Property Windows  (Read 1023 times)
moatdd
Newbie
*

Karma: +0/-0
Posts: 3


View Profile
« on: April 13, 2009, 03:29:35 AM »

I noticed that GraphEditPlus is capable of remembering the settings I chose in the Property Window of a filter (after saving a graph) - and that's a good thing.

Is there a way to get these same settings to be propagated into the compiled code? When I compile code and run it, the filter operates at default settings.
Logged
Dee Mon
Administrator
Sr. Member
*****

Karma: +7/-0
Posts: 294



View Profile WWW
« Reply #1 on: April 13, 2009, 07:49:26 PM »

Not at this moment.
When a filter is saved to a graph file, it's being asked whether it supports IPersistStream, and if it does, then IPersistStream::Save is called. When graph file is loaded, IPersistStream::Load is called to restore filter state from the data stream. Technically we can teach GEP to save filter state to a string and in generated code load from it, but I'm not sure it's the right thing to do because it may cause different problems with other filters, complicate user interface and bloat generated code.
Logged
moatdd
Newbie
*

Karma: +0/-0
Posts: 3


View Profile
« Reply #2 on: April 13, 2009, 11:50:13 PM »

I'm OK with not being able to adjust the properties afterwards if the filter state is saved to a string

Alternatively, is there a way to autorun a saved graph just by double-clicking it or via command-line? Just trying to automate this part of the process.

Thanks!
Logged
Dee Mon
Administrator
Sr. Member
*****

Karma: +7/-0
Posts: 294



View Profile WWW
« Reply #3 on: April 14, 2009, 08:14:22 AM »

Writing a little app which loads given graph file and runs it is pretty easy.
Just change BuildGraph to LoadGraphFile:
http://msdn.microsoft.com/en-us/library/dd390649(VS.85).aspx
Logged
moatdd
Newbie
*

Karma: +0/-0
Posts: 3


View Profile
« Reply #4 on: April 15, 2009, 12:25:18 AM »

Fantastic, that's exactly what I needed! It works great! Thanks!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!