Gtk3dcanvasBall

Name

Gtk3dcanvasBall -- A ball item.

Synopsis


#include <gtk-3dcanvas.h>


struct      Gtk3dcanvasBall;
Gtk3dcanvasItem* gtk_3dcanvas_ball_new      (Gtk3dcanvasGroup *parent,
                                             float x0,
                                             float y0,
                                             float z0,
                                             char *color,
                                             float radius,
                                             int smoothness);

Object Hierarchy


  GObject
   +----GtkObject
         +----Gtk3dcanvasItem
               +----Gtk3dcanvasBall

Properties


  "center-x"             gfloat               : Read / Write
  "center-y"             gfloat               : Read / Write
  "center-z"             gfloat               : Read / Write
  "radius"               gfloat               : Read / Write
  "smoothness"           gint                 : Read / Write

Description

This Gtk3dCanvasItem a plain regular ball. See the properties below to see how to interact with it.

Details

struct Gtk3dcanvasBall

struct Gtk3dcanvasBall;

The fields of the Gtk3dcanvasBall are private, and should be accessed only through the properties and functions below.


gtk_3dcanvas_ball_new ()

Gtk3dcanvasItem* gtk_3dcanvas_ball_new      (Gtk3dcanvasGroup *parent,
                                             float x0,
                                             float y0,
                                             float z0,
                                             char *color,
                                             float radius,
                                             int smoothness);

Make a ball item.

Properties

"center-x" (gfloat : Read / Write)

X coordinate of the center

"center-y" (gfloat : Read / Write)

Y coordinate of the center

"center-z" (gfloat : Read / Write)

Z coordinate of the center

"radius" (gfloat : Read / Write)

Radius of the ball

"smoothness" (gint : Read / Write)

Smoothness of the ball. The bigger it is, the more points the ball will contain. About 10 is really ok.