[vtkusers] tcl problem

Chunyan Jiang jiang at TI.FhG.DE
Wed Nov 27 08:52:34 EST 2002


Hi, all,
I use vtk4.0 with MSVC++. Unfortunately, the most example codes I found are
tcl code. In the most cases, I can translate the tcl to c++ myself. However,
in some cases, I can not get it. Such as the following code:
// planeWidget is vtkPlaneWidget object
planeWidget AddObserver EnableEvent BeginInteraction
planeWidget AddObserver StartInteractionEvent BeginInteraction
planeWidget AddObserver InteractionEvent ProbeData

# Actually generate contour lines.
proc BeginInteraction {} {
    planeWidget GetPolyData plane
    contourActor VisibilityOn
}

proc ProbeData {} {
    planeWidget GetPolyData plane
}

The above code comes from
http://public.kitware.com/cgi-bin/cvsweb.cgi/~checkout~/VTK/Examples/GUI/Tcl
/ProbingWithPlaneWidget.tcl

Could anybody help me? Thanks a lot.

Chunyan
***********************************************************************
Chunyan Jiang, Dipl.-Inform.,
Institut for Telematic
Bahnhofstrasse 30-32, D-54292 Trier, Germany
Phone: (+49) (0)651-97551-34
Fax: (+49) (0)651-97551-12
***********************************************************************




More information about the vtkusers mailing list