| Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
#include <libgwydgets/gwydgets.h>
struct Gwy3DSetup;
struct Gwy3DSetupClass;
Gwy3DSetup * gwy_3d_setup_new (void);
"axes-visible" gboolean : Read / Write "fmscale-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
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().
struct Gwy3DSetupClass {
GObjectClass parent_class;
void (*reserved1)(void);
void (*reserved2)(void);
};
Gwy3DSetup * gwy_3d_setup_new (void);
Creates a new 3D view setup with default values.
Returns : |
A newly created 3D view setup. |
"axes-visible" property"axes-visible" gboolean : Read / Write
Whether axes are visible.
Default value: TRUE
"fmscale-visible" property"fmscale-visible" gboolean : Read / Write
Whether false color bar is visible .
Default value: FALSE
"labels-visible" property"labels-visible" gboolean : Read / Write
Whether axis labels are visible if axes are visible.
Default value: TRUE
"light-phi" property"light-phi" gdouble : Read / Write
Light source direction azimuth in horizontal plane, in radians.
Default value: 0
"light-theta" property"light-theta" gdouble : Read / Write
Light source direction deviation from the z axis, in radians.
Default value: 0
"projection" property"projection" Gwy3DProjection : Read / Write
The type of the projection.
Default value: GWY_3D_PROJECTION_ORTHOGRAPHIC
"rotation-x" property"rotation-x" gdouble : Read / Write
Angle of the first rotation around x-axis, in radians.
Default value: 0.785398
"rotation-y" property"rotation-y" gdouble : Read / Write
Angle of the second rotation around y-axis, in radians.
Default value: -0.785398
"scale" property"scale" gdouble : Read / Write
Overall view scale.
Allowed values: >= G_MINDOUBLE
Default value: 1
"visualization" property"visualization" Gwy3DVisualization : Read / Write
Data visualization type.
Default value: GWY_3D_VISUALIZATION_GRADIENT
"z-scale" property"z-scale" gdouble : Read / Write
Extra stretch along z (value) axis.
Allowed values: >= G_MINDOUBLE
Default value: 1