[Paraview] Problems with external modules

ALIZIER Julien AUSY julien.alizier-ausy at irsn.fr
Thu Jun 3 10:00:02 EDT 2004


Hi Berk, hi everyone,

Actually, I am writing vtk filters and a ParaView widgets.

My widget vtkPVMy3DWidget inherits from vtkPV3DWidget.
When it creates all the Tk widgets in the Property panel of the notebook, I
need to call first this->Script("package require vtkmy3dwidgets") before
creating a button with a callback command that is a member of
vtkPVMy3DWidget. Otherwise the callback generates an error when I press the
button.

My class is wrapped in Tcl but this wrapping is not loaded automatically.
 
A better question would be "Is there a way in PV 1.4.2 to load the Tcl
wrapping of an external library when loading the Client/Server wrapped
library?".


Anyway, I am not at all stuck with it, I just wanted to know if there was a
more elegant way to load my TCL wrapped library.


-- Julien




-----Message d'origine-----
De : Berk Geveci [mailto:berklist at nycap.rr.com]
Envoyé : jeudi 3 juin 2004 15:38
À : ALIZIER Julien AUSY
Cc : ParaView Mailing List (E-mail)
Objet : RE: [Paraview] Problems with external modules


What do you mean by "the same problem"? Are you trying to load your
own VTK filter or a ParaView GUI object?

On Thu, 2004-06-03 at 03:19, ALIZIER Julien AUSY wrote:
> Hi Berk, hi all,
> 
> I am just facing the same problem... 
> I was wondering wether this has been modified in 1.4.2 ?
> 
> Thanks
> 
> -- Julien
> 
> -----Message d'origine-----
> De : Berk Geveci [mailto:berklist at nycap.rr.com]
> Envoyé : mercredi 3 mars 2004 20:11
> À : David Thompson
> Cc : ParaView Mailing List
> Objet : Re: [Paraview] Problems with external modules
> 
> 
> I am afraid you can't do that with current ParaView. However, I think
> that it is a good idea and we should add something similar to
> <Library name=""> or modify it to load Tcl shared libraries on the
> client side (note that the ClientServer wrapped libraries have to be
> loaded only on the server side).
> 
> On Wed, 2004-03-03 at 13:57, David Thompson wrote:
> > Hi,
> > 
> > 	I've checked in some changes to ParaViewConfig.cmake that let me
> build
> > a paraview module external to paraview, but there is still a problem. Is
> > there any way to force a TCL wrapper library to be loaded from within an
> > XML Module description? Here's why I ask:
> > 
> > 	I've created a widget which inherits from vtkPVWidget and has some
> > callbacks. Unfortunately, the callbacks don't work; they generate an
> > error message:
> > 
> > 	Object named: vtkTemp1130, could not find requested
> > 	method: BlahCallback or the method was called with
> > 	incorrect arguments.
> > 
> > This is because the Tcl wrapper for the widget class hasn't been loaded.
> > It's in a different library from the client server wrappers. If I open
> > the ParaView command window and run
> > 
> > 	package require vtkblah
> > 
> > (which loads libvtkBlahTCL.so), then everything works. So, is there any
> > way to force a load of libvtkBlahTCL from within an XML module
> > description?
> > 
> > 		Thanks,
> > 		David
> > 
> > _______________________________________________
> > ParaView mailing list
> > ParaView at paraview.org
> > http://www.paraview.org/mailman/listinfo/paraview
-- 
Berk Geveci <berklist at nycap.rr.com>


More information about the ParaView mailing list