Advanced GUI for gid problemtype

Moderator: GiD Team

Post Reply
jinsu421
Posts: 19
Joined: Tue Jul 10, 2018 5:38 am

Advanced GUI for gid problemtype

Post 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?
jinsu421
Posts: 19
Joined: Tue Jul 10, 2018 5:38 am

Re: Advanced GUI for gid problemtype

Post 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?
User avatar
escolano
Posts: 1918
Joined: Sun Sep 05, 1982 10:51 pm

Re: Advanced GUI for gid problemtype

Post 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
Post Reply