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.

parent :

group in which to add the ball

x0 :

x of the center point

y0 :

y of the center point

z0 :

z of the center point

color :

the color of the ball

radius :

radius of the ball

smoothness :

the bigger it is, the more point we will generate (10 is ok)

Returns :

the newly created ball.

Properties

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

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

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

"radius" (gfloat : Read / Write)

"smoothness" (gint : Read / Write)