Hi,
the exports were indeed wrong. I fixed it in the Gecode svn trunk, it will be
part of the next release. I also added a small example that shows how to embed
the Gist widget in your own Qt code.
Gist currently depends on Gecode, but it should be possible to replace the
Gecode-specific parts. One way of doing that would be to mimic Gecode's Space
interface, i.e. implement your own Space class that has the same methods and
works similarly. I think then you would just need to remove the use of dfs in
SpaceNode and TreeCanvas (they are only necessary for subtle recomputation
issues related to Gecode internals). Alternatively, you could reimplement
SpaceNode to match your solver, and adapt all references to spaces from the
remaining code (but I guess that's more work).
We usually only make parts of Gecode more generic if someone uses that
genericity. So if you need a more generic Gist and run into problems with the
current design, please let us know!
Cheers,
Guido
Tripti Saxena wrote:
> Hello,
>
> I have written a small solver in C++ and I was wondering if I can use
> Gist to visual the search tree produced by the my solver. In other words is
> it possible to use Gist independent of Gecode ? The basic interface provided
> by Gist is good but I will have to make extension specific to my solver.
>
> Has anyone tried this before. I read the manual and created a QT application
> where I was trying to include Gist as a widget. Although the manual says it
> is possible, I kept getting linker errors because the class definitions
> (GistMainWindow) is not exported. Is there a way around it or maybe there is
> something I am missing out.
>
>
> Thanks in advance.
>
>
> Tripti
> _______________________________________________
> Gecode users mailing list
> [email protected]
> https://www.gecode.org/mailman/listinfo/gecode-users
_______________________________________________
Gecode users mailing list
[email protected]
https://www.gecode.org/mailman/listinfo/gecode-users