## Gwy3DSetup

Gwy3DSetup — 3D scene setup

## Synopsis

    #include <libgwydgets/gwydgets.h>

                        Gwy3DSetup;
                        Gwy3DSetupClass;
    Gwy3DSetup*         gwy_3d_setup_new                    (void);

## Object Hierarchy

      GObject
       +----Gwy3DSetup

## Implemented Interfaces

Gwy3DSetup implements GwySerializable.

## Properties

      "axes-visible"             gboolean              : Read / Write
      "labels-visible"           gboolean              : Read / Write
      "light-phi"                gdouble               : Read / Write
      "light-theta"              gdouble               : Read / Write
      "projection"               Gwy3DProjection       : Read / Write
      "rotation-x"               gdouble               : Read / Write
      "rotation-y"               gdouble               : Read / Write
      "scale"                    gdouble               : Read / Write
      "visualization"            Gwy3DVisualization    : Read / Write
      "z-scale"                  gdouble               : Read / Write

## Description

Gwy3DSetup represents a basic 3D scene setup: viewpoint, projection, light, scale, etc. It is serializable and used to represent the Gwy3DView setup.

Its components can be read directly in the struct or generically with `g_object_get()`. To set them you it is necessary to use `g_object_set()`.

## Details

### Gwy3DSetup

    typedef struct _Gwy3DSetup Gwy3DSetup;

### Gwy3DSetupClass

    typedef struct {
        GObjectClass parent_class;

        void (*reserved1)(void);
        void (*reserved2)(void);
    } Gwy3DSetupClass;

### gwy_3d_setup_new ()

    Gwy3DSetup*         gwy_3d_setup_new                    (void);

Creates a new 3D view setup with default values.

Returns : | A newly created 3D view setup.

## Property Details

### The `"axes-visible"` property

      "axes-visible"             gboolean              : Read / Write

Whether axes are visible.

Default value: TRUE

### The `"labels-visible"` property

      "labels-visible"           gboolean              : Read / Write

Whether axis labels are visible if axes are visible.

Default value: TRUE

### The `"light-phi"` property

      "light-phi"                gdouble               : Read / Write

Light source direction azimuth in horizontal plane, in radians.

Default value: 0

### The `"light-theta"` property

      "light-theta"              gdouble               : Read / Write

Light source direction deviation from the z axis, in radians.

Default value: 0

### The `"projection"` property

      "projection"               Gwy3DProjection       : Read / Write

The type of the projection.

Default value: GWY_3D_PROJECTION_ORTHOGRAPHIC

### The `"rotation-x"` property

      "rotation-x"               gdouble               : Read / Write

Angle of the first rotation around x-axis, in radians.

Default value: 0.785398

### The `"rotation-y"` property

      "rotation-y"               gdouble               : Read / Write

Angle of the second rotation around y-axis, in radians.

Default value: -0.785398

### The `"scale"` property

      "scale"                    gdouble               : Read / Write

Overall view scale.

Allowed values: >= G_MINDOUBLE

Default value: 1

### The `"visualization"` property

      "visualization"            Gwy3DVisualization    : Read / Write

Data visualization type.

Default value: GWY_3D_VISUALIZATION_GRADIENT

### The `"z-scale"` property

      "z-scale"                  gdouble               : Read / Write

Extra stretch along z (value) axis.

Allowed values: >= G_MINDOUBLE

Default value: 1

## See Also

Gwy3DView -- the basic 3D data display widget