Advanced GUI for gid problemtype

Moderator: GiD Team

jinsu421
Posts: 16
Joined: Tue Jul 10, 2018 5:38 am

Advanced GUI for gid problemtype

Postby jinsu421 » Thu Oct 04, 2018 5:52 am

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: 16
Joined: Tue Jul 10, 2018 5:38 am

Re: Advanced GUI for gid problemtype

Postby jinsu421 » Thu Oct 04, 2018 6:24 am

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: 1489
Joined: Thu Sep 18, 2014 3:31 pm

Re: Advanced GUI for gid problemtype

Postby escolano » Thu Oct 04, 2018 7:44 pm

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

Return to “Advanced visualization”

Who is online

Users browsing this forum: No registered users and 1 guest