GtkAda Reference Manual - Package Gtk.Extra.Plot_Surface

[Contents] [Back] [Prev] [Up] [Next] [Forward]

# Package Gtk.Extra.Plot`_`Surface

A special kind of data set that stores three-dimensional data.

- Gtk.Extra.Plot_Surface Widget Hierarchy
- Gtk.Extra.Plot_Surface Subprograms

## Widget Hierarchy

    GObject                       (see section Package Glib.Object)
    Gtk_Object                    (see section Package Gtk.Object)
       \___ Gtk_Widget            (see section Package Gtk.Widget)
          \___ Gtk_Plot_Data      (see section Package Gtk.Extra.Plot_Data)
             \___ Gtk_Plot_Surface (see section Package Gtk.Extra.Plot_Surface)

## Subprograms

    procedure Gtk_New
      (Widget             : out    Gtk_Plot_Surface;
       Func               :        Gtk.Extra.Plot.Plot3D_Function
                           := null);
| Create a new surface. If Func is null, you have to explicitely specify the set of points found in the data set. Otherwise, the points will be generated automatically from Func.
    function Get_Type              return Gtk.Gtk_Type;
| Return the internal value associated with this widget.
    function Get_Grid_Visible
      (Data               : access Gtk_Plot_Surface_Record)
       return Boolean;
| Return True if the grid is currently visible for this data set.
    procedure Set_Grid_Visible
      (Data               : access Gtk_Plot_Surface_Record;
       Visible            :        Boolean);
| Choose whether the grid should be visible
    function Get_Mesh_Visible
      (Data               : access Gtk_Plot_Surface_Record)
       return Boolean;
| Return True if the wireframe mesh should be drawn.
    procedure Set_Mesh_Visible
      (Data               : access Gtk_Plot_Surface_Record;
       Visible            :        Boolean);
| Indicate whether the wireframe mesh should be visible.
    function Get_Nx
      (Data               : access Gtk_Plot_Surface_Record)
       return Gint;
    procedure Set_Nx
      (Data               : access Gtk_Plot_Surface_Record;
       Nx                 :        Gint);
    procedure Set_Points
      (Data               : access Gtk_Plot_Surface_Record;
       X                  :        Gdouble_Array_Access;
       Y                  :        Gdouble_Array_Access;
       Z                  :        Gdouble_Array_Access;
       Dx                 :        Gdouble_Array_Access;
       Dy                 :        Gdouble_Array_Access;
       Dz                 :        Gdouble_Array_Access);
| Set all the values of the data set at once.
    procedure Get_Points
      (Data               : access Gtk_Plot_Surface_Record;
       X                  : out    Points_Array;
       Y                  : out    Points_Array;
       Z                  : out    Points_Array;
       Dx                 : out    Points_Array;
       Dy                 : out    Points_Array;
       Dz                 : out    Points_Array);
| Return the values contained in the data set.
    function Get_X
      (Data               : access Gtk_Plot_Surface_Record)
       return Points_Array;
    function Get_Z
      (Data               : access Gtk_Plot_Surface_Record)
       return Points_Array;
| Return the values contained in the data set.
    function Get_Xstep
      (Data               : access Gtk_Plot_Surface_Record)
       return Gdouble;
    procedure Set_Xstep
      (Data               : access Gtk_Plot_Surface_Record;
       Step               :        Gdouble);
    procedure Set_Color
      (Data               : access Gtk_Plot_Surface_Record;
       Color              :        Gdk.Color.Gdk_Color);
| Set the color to use for the surface
    procedure Set_Grid_Background
      (Data               : access Gtk_Plot_Surface_Record;
       Background         :        Gdk.Color.Gdk_Color);
| Set the background color to use for the grid
    procedure Set_Shadow
      (Data               : access Gtk_Plot_Surface_Record;
       Color              :        Gdk.Color.Gdk_Color);
| Set the color to use for the shadows.
    procedure Set_Grid_Foreground
      (Data               : access Gtk_Plot_Surface_Record;
       Foreground         :        Gdk.Color.Gdk_Color);
| Set the foreground color to use for the grid
    procedure Set_Transparent
      (Data               : access Gtk_Plot_Surface_Record;
       Transparent        :        Boolean);
| Whether the plot is transparent. If Transparent is true, all background attributes are ignored
    procedure Build_Mesh
      (Data               : access Gtk_Plot_Surface_Record);
| ???
    procedure Recalc_Nodes
      (Data               : access Gtk_Plot_Surface_Record);
| ???
### Lightning model
    procedure Set_Ambient
      (Data               : access Gtk_Plot_Surface_Record;
       Ambient            :        Gdouble);
| Set the ambient
    procedure Set_Light
      (Data               : access Gtk_Plot_Surface_Record;
       X, Y, Z            :        Gdouble);
| Set the orientation of the light vector
    procedure Use_Height_Gradient
      (Data               : access Gtk_Plot_Surface_Record;
       Use_Gradient       :        Boolean);
| ???
    procedure Use_Amplitud
      (Data               : access Gtk_Plot_Surface_Record;
       Amplitud           :        Boolean);

[Contents] [Back] [Prev] [Up] [Next] [Forward]