On Mon, Jul 21, 2014 at 09:54:42AM +0200, Mathias Müller wrote:
> My problem is I do not know where to find the function in the API
> (header). And if so, it has the structure of:
> 
> gwy_app_data_window_change_square   (GtkWidget *item, gpointer user_data)

This is an internal function that serves as a callback for activation of
the data window top-left corner menu.  You should not call it and, in
fact, you can't.

> Is it sufficient to apply square_samples() to data[0] before adding the 
> data_view[0] to the viewport?

As I said, square_samples() creates new data fields with *resampled*
data.  But since you wrote

> the first issue you mention is what I exactly intend to do. I have
> physically squared scans but not pixelwise.

I'm assuming you just want to change how they are displayed (that was
the first issue).  So just set

gwy_data_view_set_data_prefix(data_view, "/0/data");

which should be set anyway and then change the realsquare setting

gwy_container_set_boolean_by_name(container, "/0/data/realsquare", TRUE);

Regards,

Yeti


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users

Reply via email to