[vtkusers] Integrating VTK in my browser

Rainer Lehrig lehrig at t-online.de
Wed May 29 04:00:56 EDT 2002


Hi,

I have a project on http://pvbrowser.sourceforge.net
This project includes a client/server software for implementing a Process 
Visualisation System.
The Browser is based on Qt ( http://www.trolltech.com ).
The Server defines what is shown within the Browser and how the Browser 
interacts with the Server.


      +--------------------------------------+
      | Server:                              |
      | defining what you see in the Browser |
      +--------------------------------------+
                        ^
                        |
                        | TCP/IP
                        |
                        v
 +------------------------------------------------+
 | Browser:                                       |
 | displaying Qt widgets as defined by the Server |
 | should also interpret TCL commands for VTK     |
 | send from the Server                           |
 +------------------------------------------------+

Now I want to extend this software to support 3D graphics using VTK.
My idea is the following:
Use
void vtkTclCommand::SetStringCommand(const char *arg)
void vtkTclCommand::Execute(vtkObject *, unsigned long, void *)
to supply TCL commands to the Browser. This TCL commands should be send by the 
Server
over TCP/IP and interpreted by the Browser.
I also have a binding of Qt to vtk from:
// Filename: vtkQGLWidget.h
//
// Author: Jan Ehrhardt
// Email : ehrhardt at medinf.mu-luebeck.de

Questions:
- HOWTO tell VTK to use my vtkQGLWidget as output and not a widget supplied by 
TK ?
- Is this principle possible to implement ?
- Can anybody give me some hints for getting started ?

 Yours:
 Rainer Lehrig




More information about the vtkusers mailing list