| GTK-EXTRA - Reference Manual

| Home

## Name

### Gtkplotsurface - 3d scientific plots widget for gtk+

## Synopsis

    GtkType
    gtk_plot_surface_get_type
    (void);
    GtkWidget*
    gtk_plot_surface_new
    (void);
    GtkWidget*
    gtk_plot_surface_new_function
    (GtkPlotFunc3D function);
    void
    gtk_plot_surface_construct_function
    GtkPlotSurface *surface,
    GtkPlotFunc3D function);
    void
    gtk_plot_surface_set_color
    GtkPlotSurface *data,
    GdkColor *color);
    void
    gtk_plot_surface_set_shadow
    (GtkPlotSurface *data,
    GdkColor *color);
    void
    gtk_plot_surface_set_grid_foreground
    (GtkPlotSurface *data,
    GdkColor *foreground);
    void
    gtk_plot_surface_set_grid_background
    (GtkPlotSurface *data,
    GdkColor *background);
    void
    gtk_plot_surface_set_grid_visible
    (GtkPlotSurface *data,
    gboolean visible
    gboolean
    gtk_plot_surface_get_grid_visible
    (GtkPlotSurface *data);
    void
    gtk_plot_surface_set_mesh_visible
    (GtkPlotSurface *data,
    gboolean visible);
    gboolean
    gtk_plot_surface_get_mesh_visible
    (GtkPlotSurface *data);
    void
    gtk_plot_surface_set_light
    (GtkPlotSurface *data,
    gdouble x,
    gdouble y,
    gdouble z);
    void
    gtk_plot_surface_set_ambient
    (GtkPlotSurface *data,
    gdouble ambient);
void |
    gtk_plot_surface_use_height_gradient
    (GtkPlotSurface *data,
    gboolean use_gradient);
void |
    gtk_plot_surface_set_transparent
    (GtkPlotSurface *data,
    gboolean transparent);
void |
    gtk_plot_surface_set_points
    (GtkPlotSurface *data,
    gdouble *x,
    gdouble *y,
    gdouble *z,
    gdouble *dx,
    gdouble *dy,
    gdouble *dz,
    gint nx, gint ny);
    void
    gtk_plot_surface_get_points
    (GtkPlotSurface *data,
    gdouble **x,
    gdouble **y,
    gdouble **z,
    gdouble **dx,
    gdouble **dy,
    gdouble **dz,
    gint *nx, gint *ny);
    void
    gtk_plot_surface_set_x
    (GtkPlotSurface *data,
    gdouble *x);
    void
    gtk_plot_surface_set_y
    (GtkPlotSurface *data,
    gdouble *y);
    void
    gtk_plot_surface_set_z
    (GtkPlotSurface *data,
    gdouble *z);
    void
    gtk_plot_surface_set_dx
    (GtkPlotSurface *data,
    gdouble *dx);
    void
    gtk_plot_surface_set_dy
    (GtkPlotSurface *data,
    gdouble *dy);
    void
    gtk_plot_surface_set_dz
    (GtkPlotSurface *data,
    gdouble *dz);
    gdouble *
    gtk_plot_surface_get_x
    (GtkPlotSurface *data,
    gint *nx);
    gdouble *
    gtk_plot_surface_get_y
    (GtkPlotSurface *data,
    gint *ny);
    gdouble *
    gtk_plot_surface_get_z
    (GtkPlotSurface *data,
    gint *nx, gint *ny);
    gdouble *
    gtk_plot_surface_get_dx
    (GtkPlotSurface *data);
    gdouble *
    gtk_plot_surface_get_dy
    (GtkPlotSurface *data);
    gdouble *
    gtk_plot_surface_get_dz
    (GtkPlotSurface *data);
    void
    gtk_plot_surface_set_nx
    (GtkPlotSurface *data,
    gint nx);
    void
    gtk_plot_surface_set_ny
    (GtkPlotSurface *data,
    gint ny);
    gint
    gtk_plot_surface_get_nx
    (GtkPlotSurface *data);
    gint
    gtk_plot_surface_get_ny
    (GtkPlotSurface *data);
    void
    gtk_plot_surface_set_xstep
    (GtkPlotSurface *data,
    gdouble xstep);
    void
    gtk_plot_surface_set_ystep
    (GtkPlotSurface *data,
    gdouble ystep);
    gdouble
    gtk_plot_surface_get_xstep
    (GtkPlotSurface *data);
    gdouble
    gtk_plot_surface_get_ystep
    (GtkPlotSurface *data);
    void
    gtk_plot_surface_build_mesh
    (GtkPlotSurface *data);
    void
    gtk_plot_surface_recalc_nodes
    (GtkPlotSurface *data);

## Object Hierarchy

##
Args

## Signal Prototypes

    * "draw_triangle" signal

## Description

####

##
Details

    struct _GtkPlotSurface

##
Screenshot

##

### gtk_plot_surface_get_type ()

    GtkType gtk_plot_surface_get_type (void);

width,height | width , height of the new canvas

### gtk_plot_surface_new ()

    GtkWidget* gtk_plot_surface_new (void);

Returns |

### gtk_plot_surface_new_function ()

    GtkWidget* gtk_plot_surface_new_function (GtkPlotFunc3D function);

function |
Returns |

### gtk_plot_surface_construct_function ()

    void gtk_plot_surface_construct_function (GtkPlotSurface *surface,
                                              GtkPlotFunc3D function);

surface |
function |

### gtk_plot_surface_set_color ()

    void gtk_plot_surface_set_color (GtkPlotSurface *data,
                                     GdkColor *color);

data |
color |

### gtk_plot_surface_set_shadow ()

    void gtk_plot_surface_set_shadow (GtkPlotSurface *data,
                                      GdkColor *color);

data |
color |

### gtk_plot_surface_set_grid_foreground ()

    void gtk_plot_surface_set_grid_foreground (GtkPlotSurface *data,
                                               GdkColor *foreground);

data |
foreground |

### gtk_plot_surface_set_grid_background ()

    void gtk_plot_surface_set_grid_background (GtkPlotSurface *data,
                                               GdkColor *background);

data |
background |

### gtk_plot_surface_set_grid_visible ()

    void gtk_plot_surface_set_grid_visible (GtkPlotSurface *data,
                                            gboolean visible);

data |
visible |

### gtk_plot_surface_get_grid_visible ()

    gboolean gtk_plot_surface_get_grid_visible (GtkPlotSurface *data);

data |
Returns |

### gtk_plot_surface_set_mesh_visible ()

    void gtk_plot_surface_set_mesh_visible (GtkPlotSurface *data,
                                            gboolean visible);

data |
visible |

### gtk_plot_surface_get_mesh_visible ()

    gboolean gtk_plot_surface_get_mesh_visible (GtkPlotSurface *data);

data |
Returns |

### gtk_plot_surface_set_light ()

    void gtk_plot_surface_set_light (GtkPlotSurface *data,
                                     gdouble x,
                                     gdouble y,
                                     gdouble z);

data |
x,y,z |

### gtk_plot_surface_set_ambient ()

    void gtk_plot_surface_set_ambient (GtkPlotSurface *data,
                                       gdouble ambient);

data |
ambient |

### gtk_plot_surface_use_height_gradient ()

    void gtk_plot_surface_use_height_gradient (GtkPlotSurface *data,
                                               gboolean use_gradient);

data |
use_gradient |

### gtk_plot_surface_set_transparent ()

    void gtk_plot_surface_set_transparent(GtkPlotSurface *data,
                                          gboolean transparent);

data |
transparent |

### gtk_plot_surface_set_points ()

    void gtk_plot_surface_set_points (GtkPlotSurface *data,
                                      gdouble *x,
                                      gdouble *y,
                                      gdouble *z,
                                      gdouble *dx,
                                      gdouble *dy,
                                      gdouble *dz,
                                      gint nx, gint ny);

data |
x,y,z |
dx,dy,dz |
nx,ny |

### gtk_plot_surface_get_points ()

    void gtk_plot_surface_get_points (GtkPlotSurface *data,
                                      gdouble **x,
                                      gdouble **y,
                                      gdouble **z,
                                      gdouble **dx,
                                      gdouble **dy,
                                      gdouble **dz,
                                      gint *nx, gint *ny);

data |
x,y,z |
dx,dy,dz |
nx,ny |

### gtk_plot_surface_set_x ()

    void gtk_plot_surface_set_x (GtkPlotSurface *data,
                                 gdouble *x);

data |
x |

### gtk_plot_surface_set_y ()

    void gtk_plot_surface_set_y (GtkPlotSurface *data,
                                 gdouble *y);

data |
y |

### gtk_plot_surface_set_z ()

    void gtk_plot_surface_set_z (GtkPlotSurface *data,
                                 gdouble *z);

data |
z |

### gtk_plot_surface_set_x ()

    void gtk_plot_surface_set_dx (GtkPlotSurface *data,
                                 gdouble *dx);

data |
dx |

### gtk_plot_surface_set_dy ()

    void gtk_plot_surface_set_dy (GtkPlotSurface *data,
                                 gdouble *dy);

data |
dy |

### gtk_plot_surface_set_dz ()

    void gtk_plot_surface_set_dz (GtkPlotSurface *data,
                                 gdouble *dz);

data |
dz |

### gtk_plot_surface_get_x ()

    gdouble * gtk_plot_surface_get_x (GtkPlotSurface *data,
                                      gint *nx);

data |
nx |
Returns |

### gtk_plot_surface_get_y ()

    gdouble * gtk_plot_surface_get_y (GtkPlotSurface *data,
                                      gint *ny);

data |
ny |
Returns |

### gtk_plot_surface_get_z ()

    gdouble * gtk_plot_surface_get_z (GtkPlotSurface *data,
                                      gint *nx, gint *ny);

data |
nx,ny |
Returns |

### gtk_plot_surface_get_dx ()

    gdouble * gtk_plot_surface_get_dx (GtkPlotSurface *data);

data |
Returns |

### gtk_plot_surface_get_dy ()

    gdouble * gtk_plot_surface_get_dy (GtkPlotSurface *data);

data |
Returns |

### gtk_plot_surface_get_dz ()

    gdouble * gtk_plot_surface_get_dz (GtkPlotSurface *data);

data |
Returns |

### gtk_plot_surface_set_nx ()

    void gtk_plot_surface_set_nx (GtkPlotSurface *data,
                                  gint nx);

data |
nx |

### gtk_plot_surface_set_ny ()

    void gtk_plot_surface_set_ny (GtkPlotSurface *data,
                                  gint ny);

data |
ny |

### gtk_plot_surface_get_nx ()

    gint gtk_plot_surface_get_nx (GtkPlotSurface *data);

data |
Returns |

### gtk_plot_surface_get_ny ()

    gint gtk_plot_surface_get_ny (GtkPlotSurface *data);

data |
Returns |

### gtk_plot_surface_set_xstep ()

    void gtk_plot_surface_set_xstep (GtkPlotSurface *data,
                                     gdouble xstep);

data |
xstep |

### gtk_plot_surface_set_ystep ()

    void gtk_plot_surface_set_ystep (GtkPlotSurface *data,
                                     gdouble ystep);

data |
ystep |

### gtk_plot_surface_get_xstep ()

    gdouble gtk_plot_surface_get_xstep (GtkPlotSurface *data);

data |
Returns |

### gtk_plot_surface_get_ystep ()

    gdouble gtk_plot_surface_get_ystep (GtkPlotSurface *data);

data |
Returns |

### gtk_plot_surface_build_mesh ()

    void gtk_plot_surface_build_mesh (GtkPlotSurface *data);

data |

### gtk_plot_surface_recalc_nodes ()

    void gtk_plot_surface_recalc_nodes (GtkPlotSurface *data);

data |

## Signals

### The "draw_triangle" signal

    void (*draw_triangle) (GtkPlotSurface *surface,
                           GtkPlotDTtriangle *triangle,
                            gint sign);

`canvas` |
`event` |
item |

###

## DETAILS

    struct _GtkPlotSurface
    {
      GtkPlotData data;
      GdkColor color;
      GdkColor shadow;
      GdkColor grid_foreground;
      GdkColor grid_background;
      gboolean height_gradient;
      GtkPlotVector light;
      gdouble ambient;
      gint nx, ny;
      GtkPlotDT *dt;
      gboolean recalc_dt;
      gboolean show_grid;
      gboolean show_mesh;
      gboolean transparent;
      gdouble xstep, ystep;
      GtkPlotLine mesh_line;
    };

##

| Home |  |