Gtk3dcanvasStick

Name

Gtk3dcanvasStick -- A stick item.

Synopsis


#include <gtk-3dcanvas.h>


struct      Gtk3dcanvasStick;
Gtk3dcanvasItem* gtk_3dcanvas_stick_new     (Gtk3dcanvasGroup *parent,
                                             char *color,
                                             const char *first_arg_name,
                                             ...);

Object Hierarchy


  GObject
   +----GtkObject
         +----Gtk3dcanvasItem
               +----Gtk3dcanvasStick

Properties


  "begin-x"              gfloat               : Read / Write
  "begin-y"              gfloat               : Read / Write
  "begin-z"              gfloat               : Read / Write
  "end-x"                gfloat               : Read / Write
  "end-y"                gfloat               : Read / Write
  "end-z"                gfloat               : Read / Write
  "phi"                  gfloat               : Read / Write
  "draw-type"            Gtk3dcanvasShapeType : Read / Write
  "radius"               gfloat               : Read / Write
  "smoothness"           gint                 : Read / Write

Description

The Gtk3dcanvasStick is a plain regular stick item. See properties below to see how to interact with it.

Details

struct Gtk3dcanvasStick

struct Gtk3dcanvasStick;

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


gtk_3dcanvas_stick_new ()

Gtk3dcanvasItem* gtk_3dcanvas_stick_new     (Gtk3dcanvasGroup *parent,
                                             char *color,
                                             const char *first_arg_name,
                                             ...);

Make a stick item.

Properties

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

X coordinate of the begin point

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

Y coordinate of the begin point

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

Z coordinate of the begin point

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

X coordinate of the end point

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

Y coordinate of the end point

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

Z coordinate of the end point

"phi" (gfloat : Read / Write)

The rotation applied to the base points over the central axis (in radian)

"draw-type" (Gtk3dcanvasShapeType : Read / Write)

The type of base of the stick. (Either cylindric or cubic)

"radius" (gfloat : Read / Write)

Radius of the stick

"smoothness" (gint : Read / Write)

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