[Paraview] command/observer!

Sebastien BARRE sebastien.barre at kitware.com
Thu Jul 21 11:03:42 EDT 2005


At 7/21/2005 09:45 PM, forest wrote:
>Dear:
>
>     What is purpose of the function Tcl_Interp 
> *vtkPVApplication::InitializeTcl(int argc, char *argv[], ostream *err)?

The Paraview GUI is based on Tcl/Tk. For this to happen the 
vtkKWApplication (and subclasses like vtkPVApplication) has to create 
a Tcl interpreter at startup (you can access it using 
GetMainInterp()). The InitializeTcl() function is usually called 
fairly early on by the main() function of the application executable. 
It creates the Tcl interpreter itself, outputs error messages to 
'err' (if any), and uses argv/argc to help Tcl find other 
initialization scripts... This is a pretty "advanced" function that 
you should probably not have to worry too much about, unless you are 
developping your own app based on the PV or KW DLL. If this is the 
case, more simple examples can be found in the 
GUI/Widgets/Examples/Cxx directory.


--
Sebastien Barre



More information about the ParaView mailing list