Prev: single quote problem
Next: Tcl on Google Android phones
From: Gerald W. Lester on 9 Sep 2009 17:46 selvam wrote: > On Sep 9, 12:31 pm, Arjen Markus <arjen.markus...(a)gmail.com> wrote: >> On 9 sep, 07:24, selvam <s.selvams...(a)gmail.com> wrote: >>... > Thanks Arjen, > > The problem is, bringing SU to tcl/tk.So So i need to get support > from SU data processing people as well(which i may not ask here).This > is what i have understood,pls correct me if i am wrong. > > 1) Actually the input data is a binary file(eg. data.su) > > 2) sxwigb: > a)It reads input file and generates image bitmap of > rasterized wiggles. > > b)It creates a window object and places the output of (a) in > the window. > > So my requirement could be passing output of (a) to tcl/tk, which is > where i struck with. > > Note: > I am digging suxwigb.c and xwigb.c files to see if i can pipe or > write the data as a bitmap and that can be used by our tcl/tk program. You can create a frame with the -container 1 option. You then get the id of that frame with the [winfo id] command. You pass that id to sxwigb telling it to embed itself in that window. If sxwigb does not support this, then you are SOL (I can't find documentation on sxwidb, only on suxwigb) on using sxwigb. As I noted in another post, you may want to check out the BLT stripchart widget. It has a C interface (and maybe a Tcl one also) for taking binary data. It supports pan/scroll and zoom. -- +------------------------------------------------------------------------+ | Gerald W. Lester | |"The man who fights for his ideals is the man who is alive." - Cervantes| +------------------------------------------------------------------------+
From: selvam on 10 Sep 2009 01:09 On Sep 10, 2:46 am, "Gerald W. Lester" <Gerald.Les...(a)cox.net> wrote: > selvam wrote: > > On Sep 9, 12:31 pm, Arjen Markus <arjen.markus...(a)gmail.com> wrote: > >> On 9 sep, 07:24, selvam <s.selvams...(a)gmail.com> wrote: > >>... > > Thanks Arjen, > > > The problem is, bringing SU to tcl/tk.So So i need to get support > > from SU data processing people as well(which i may not ask here).This > > is what i have understood,pls correct me if i am wrong. > > > 1) Actually the input data is a binary file(eg. data.su) > > > 2) sxwigb: > > a)It reads input file and generates image bitmap of > > rasterized wiggles. > > > b)It creates a window object and places the output of (a) in > > the window. > > > So my requirement could be passing output of (a) to tcl/tk, which is > > where i struck with. > > > Note: > > I am digging suxwigb.c and xwigb.c files to see if i can pipe or > > write the data as a bitmap and that can be used by our tcl/tk program. > > You can create a frame with the -container 1 option. You then get the id of > that frame with the [winfo id] command. You pass that id to sxwigb telling > it to embed itself in that window. > > If sxwigb does not support this, then you are SOL (I can't find > documentation on sxwidb, only on suxwigb) on using sxwigb. > > As I noted in another post, you may want to check out the BLT stripchart > widget. It has a C interface (and maybe a Tcl one also) for taking binary > data. It supports pan/scroll and zoom. Thanks Gerald W. Lester for your support, I will try your suggestions and will post the results soon.
From: selvam on 12 Sep 2009 01:38 On Sep 10, 2:46 am, "Gerald W. Lester" <Gerald.Les...(a)cox.net> wrote: > selvam wrote: > > On Sep 9, 12:31 pm, Arjen Markus <arjen.markus...(a)gmail.com> wrote: > >> On 9 sep, 07:24, selvam <s.selvams...(a)gmail.com> wrote: > >>... > > Thanks Arjen, > > > The problem is, bringing SU to tcl/tk.So So i need to get support > > from SU data processing people as well(which i may not ask here).This > > is what i have understood,pls correct me if i am wrong. > > > 1) Actually the input data is a binary file(eg. data.su) > > > 2) sxwigb: > > a)It reads input file and generates image bitmap of > > rasterized wiggles. > > > b)It creates a window object and places the output of (a) in > > the window. > > > So my requirement could be passing output of (a) to tcl/tk, which is > > where i struck with. > > > Note: > > I am digging suxwigb.c and xwigb.c files to see if i can pipe or > > write the data as a bitmap and that can be used by our tcl/tk program. > > You can create a frame with the -container 1 option. You then get the id of > that frame with the [winfo id] command. You pass that id to sxwigb telling > it to embed itself in that window. > > If sxwigb does not support this Yes,suxwigb does not seem to support embedding itself into other.I have been writing a new modified xwigb.c which will process the binary input file and generate a rasterized bitmap of seismic traces.That can be passed to tcl/tk or BLT stripchart. I hope any suggestions from you will help me to do better. > > As I noted in another post, you may want to check out the BLT stripchart > widget. It has a C interface (and maybe a Tcl one also) for taking binary > data. It supports pan/scroll and zoom. > > -- > +------------------------------------------------------------------------+ > | Gerald W. Lester | > |"The man who fights for his ideals is the man who is alive." - Cervantes| > +------------------------------------------------------------------------+
From: Uwe Klein on 12 Sep 2009 05:19 selvam wrote: > Yes,suxwigb does not seem to support embedding itself into other. You can use the blt::container widget to swallow another window by name. uwe
From: Gerald W. Lester on 12 Sep 2009 10:02
selvam wrote: > On Sep 10, 2:46 am, "Gerald W. Lester" <Gerald.Les...(a)cox.net> wrote: >> selvam wrote: >>> On Sep 9, 12:31 pm, Arjen Markus <arjen.markus...(a)gmail.com> wrote: >>>> On 9 sep, 07:24, selvam <s.selvams...(a)gmail.com> wrote: >>>> ... >>> Thanks Arjen, >>> The problem is, bringing SU to tcl/tk.So So i need to get support >>> from SU data processing people as well(which i may not ask here).This >>> is what i have understood,pls correct me if i am wrong. >>> 1) Actually the input data is a binary file(eg. data.su) >>> 2) sxwigb: >>> a)It reads input file and generates image bitmap of >>> rasterized wiggles. >>> b)It creates a window object and places the output of (a) in >>> the window. >>> So my requirement could be passing output of (a) to tcl/tk, which is >>> where i struck with. >>> Note: >>> I am digging suxwigb.c and xwigb.c files to see if i can pipe or >>> write the data as a bitmap and that can be used by our tcl/tk program. >> You can create a frame with the -container 1 option. You then get the id of >> that frame with the [winfo id] command. You pass that id to sxwigb telling >> it to embed itself in that window. >> >> If sxwigb does not support this > > Yes,suxwigb does not seem to support embedding itself into other.I > have been writing a new modified xwigb.c which will process the binary > input file and generate a rasterized bitmap of seismic traces.That can > be passed to tcl/tk or BLT stripchart. > > I hope any suggestions from you will help me to do better. The BLT stripchart widget does not need or want a bitmap. It takes pairs points (X,Y) where Y is increasing and makes a plot. It needs this raw data to support zooming in. The C interface supports talking two BLT vectors (binary arrays), one being X and one being Y. Before going off and writing a bunch of C code, please read the appropriate BLT man pages. I suggest you start with: http://www-bio3d-igbmc.u-strasbg.fr/doclib/blt/stripchart.html -- +------------------------------------------------------------------------+ | Gerald W. Lester | |"The man who fights for his ideals is the man who is alive." - Cervantes| +------------------------------------------------------------------------+ |