Page 1 of 1

Advanced GUI for gid problemtype

Posted: Thu Oct 04, 2018 5:52 am
by jinsu421
Hello, Gid Team.

I have wondering about more Advanced GUI In Gid and our problemtype.

Simply, Using Tcl/Tk and .mat file(Book type) is too old.

So, I searched Graphic library : VTK(Visualization Toolkit).

It's based on C++ code, but it can be wrapping other languages(Tcl, Java, Python).

So, What i ask to you, It's possible make better GUI our problemtype and new Gid Version?

Re: Advanced GUI for gid problemtype

Posted: Thu Oct 04, 2018 6:24 am
by jinsu421
jinsu421 wrote:Hello, Gid Team.

I have wondering about more Advanced GUI In Gid and our problemtype.

Simply, Using Tcl/Tk and .mat file(Book type) is too old.

So, I searched Graphic library : VTK(Visualization Toolkit).

It's based on C++ code, but it can be wrapping other languages(Tcl, Java, Python).

So, What i ask to you, It's possible make better GUI our problemtype and new Gid Version?
======================================================================================

Sorry, immediately looking vtk at gid lib.

Can you give me a example about GUI code using vtk?

Re: Advanced GUI for gid problemtype

Posted: Thu Oct 04, 2018 7:44 pm
by escolano
GiD installation include by default a vtk Tcl package (VTK version 8.0) at <gid>/scripts/vtk
(as you said is is a wrapper of the vtk package with Tcl bindings to be used with this scripting language)

but the VTK library is not a GUI library of widgets (like Tk or ttk)
This library is intended to manipulate scientific data, create rendered images, and do some operations (similar of the ones of GiD postprocess to calculate iso-surfaces, streamlines, and others)

In fact GiD is not using VTK internally, we have our own code.

For us it is an auxiliary Tcl package that we are using only to read/write VTK format files (mesh+results)
postprocess menu: Files->Import->Vtk and Files->Export->Vtk

The Vtk import/export features are implemented as an 'external Tcl GiD plugin' in
<gid>\plugins\Import\vtk\vtk.tcl

You can have a look to this file to see how to use in Tcl some commands of the vtk package.
For other Vkt commands you must find documentation at the VKT webpage