| Gtk 3d Canvas (libgtk3dcanvas) Reference Manual | |||
|---|---|---|---|
| <<< Previous Page | Home | Up | Next Page >>> |
#include <gtk-3dcanvas.h> struct Gtk3dcanvasPyramid; Gtk3dcanvasItem* gtk_3dcanvas_pyramid_new (Gtk3dcanvasGroup *parent, char *color, const char *first_arg_name, ...); |
"draw-type" Gtk3dcanvasShapeType : Read / Write "phi" gfloat : Read / Write "top-x" gfloat : Read / Write "top-y" gfloat : Read / Write "top-z" gfloat : Read / Write "bottom-x" gfloat : Read / Write "bottom-y" gfloat : Read / Write "bottom-z" gfloat : Read / Write "radius" gfloat : Read / Write "smoothness" gint : Read / Write |
The Gtk3dcanvasPyramid is a plain regular pyramid item. See properties below to see how to interact with it.
struct Gtk3dcanvasPyramid; |
The fields of the Gtk3dcanvasPyramid are private, and should be accessed only through the properties and functions below.
Gtk3dcanvasItem* gtk_3dcanvas_pyramid_new (Gtk3dcanvasGroup *parent, char *color, const char *first_arg_name, ...); |
Make a pyramid item.
| parent : | group in which to add the pyramid |
| color : | the color of the stick. |
| first_arg_name : | A list of object argument name/value pairs, NULL-terminated, used to configure the stick. For example: "type",STICK_TYPE_CYLINDER, "top_x",1, "top_y",1, "top_z",1, NULL |
| ... : | Rest of this list. |
| Returns : | the newly created pyramid. |
The type of base of the pyramid. (Either cylindric or cubic)
The rotation applied to the base points over the central axis (in radian)
X coordinate of the top point
Y coordinate of the top point
Z coordinate of the top point
X coordinate of the bottom point
Y coordinate of the bottom point
Z coordinate of the bottom point
Radius of the pyramid
Smoothness of the pyramid. The bigger it is, the more points the pyramid will contain. About 10 is really ok.