[vtkusers] How can I visualize the data with "VTK" by calling a subroutines or something else directly in my fortran code ?
Immo Trinks
trinks at esc.cam.ac.uk
Mon Jun 28 10:59:32 EDT 2004
Check
http://www.cray.com/craydoc/manuals/S-2378-50/html-S-2378-50/fixed0dlk7pll3.html
to see an example for Fortran to c/c++ calls.
You could as well use system calls and execute a separate vtk-program for the
visualisation, which might be written in C++, Tcl, ...
CALL SYSTEM("vtkprogram")
Hope this helps,
Immo
> Dear all
>
> At first, i am very appreciate for your concern and reply.
>
> I browsed the VTK homepage and very amazing, but i still have a question.
>
> My code is develope in FORTRAN and the data visualization is the next step.
>
> How can i combine my FORTRAN code and the such powerful tool "VTK"
> together?
>
> I mean, I am going to visualize the data with "VTK" by calling a
> subroutines or something else directly in my fortran
>
> code, but i know that "VTK" can't be called (or used) directly by FORTRAN
> code, and C (or C++) can call "VTK" directly.
>
> Can i call a subroutine(written in C or C++ ) in my FORTRAN code, and that
> C(C++) subroutine can call the VTK ?
>
> In this way, all I have to do is to call a subroutine, and VTK can work for
> me.
>
>
> _________________ _________
>
> | FORTRAN CODE |_-_-_call-_-_-_> subroutine _-_-_call-_-_-_> | VTK |
> |________________| (written in C or C++) |_______|
>
> Thanks for your reply.
>
>
>
>
> Jun-Chieh Wang
> Laboratory for Numerical Simulation
> Department of Physics
> National Cheng Kung University
> Tainan 701, Taiwan
> Tel: 886-6-275-7575 ext.65252...19
> Fax: 886-6-208-0472
> Email: wangjc at nsl.phys.ncku.edu.tw
--
Immo Trinks
Department of Earth Sciences
University of Durham
Durham DH1 3LE
United Kingdom
More information about the vtkusers
mailing list