| Top |
| VisuBox * | basis | Read / Write |
| gboolean | display-orientation | Read / Write |
| gfloat | orientation-omega | Read / Write |
| gfloat | orientation-phi | Read / Write |
| gfloat | orientation-theta | Read / Write |
| gfloat | size | Read / Write |
| VisuGlView * | view | Read / Write |
| gchar * | x-label | Read / Write |
| gfloat | x-pos | Read / Write |
| gchar * | y-label | Read / Write |
| gfloat | y-pos | Read / Write |
| gchar * | z-label | Read / Write |
The axes are the X, Y and Z lines drawn on the bottom right of the screen defining a given orthogonal basis set in which the box is projected.
The axis may be different, depending on the rendering method
currently used. For instance, when the spin is used, a projection
of the colour scheme is added to the simple lines of the basis
set. Besides that, axes are defined by their width (see
visu_gl_ext_lined_setWidth()) and their colour (see
visu_gl_ext_lined_setRGBA()).
VisuGlExtAxes *
visu_gl_ext_axes_new (const gchar *name);
Creates a new VisuGlExt to draw axes.
Since: 3.7
gboolean visu_gl_ext_axes_setBasisFromBox (VisuGlExtAxes *axes,VisuBox *box);
The axes
can follow the basis-set defined by box
. If NULL is
passed, then the orthorombic default basis-set is used.
axes |
the VisuGlExtAxes object to modify. |
|
box |
the VisuBox to use as basis-set. |
[allow-none] |
Since: 3.7
gboolean visu_gl_ext_axes_setBasis (VisuGlExtAxes *axes,double matrix[3][3]);
The axes
can represent an arbitrary basis-set, provided by
matrix
. matrix
[{0,1,2}] represents the {x,y,z} axis vector in a
cartesian basis-set. See visu_gl_ext_axes_setBasisFromBox() if the
basis-set should follow the one of a given VisuBox.
Since: 3.7
gboolean visu_gl_ext_axes_setPosition (VisuGlExtAxes *axes,float xpos,float ypos);
Change the position of the axes representation.
axes |
the VisuGlExtAxes object to modify. |
|
xpos |
the reduced x position (1 to the right). |
|
ypos |
the reduced y position (1 to the bottom). |
Since: 3.7
gboolean visu_gl_ext_axes_setLabel (VisuGlExtAxes *axes,const gchar *lbl,ToolXyzDir dir);
Set the label lbl
for the given axis dir
.
Since: 3.8
gboolean visu_gl_ext_axes_setLengthFactor (VisuGlExtAxes *axes,float factor);
Change the scaling factor to draw the axis.
Since: 3.8
gboolean visu_gl_ext_axes_useOrientation (VisuGlExtAxes *axes,gboolean use);
If TRUE, axes
also draws a coloured cone to display orientation information.
Since: 3.8
gboolean visu_gl_ext_axes_setOrientationTop (VisuGlExtAxes *axes,const gfloat top[3],int dir);
Define the camera orientation of the top orientation when axes
are
used to display orientation information.
axes |
a VisuGlExtAxes object. |
|
top |
a camera orientation. |
[array fixed-size=3] |
dir |
flags used to specify which angles to set. |
Since: 3.8
void visu_gl_ext_axes_getPosition (VisuGlExtAxes *axes,float *xpos,float *ypos);
Inquire the position of the representation of tha axes.
axes |
the VisuGlExtAxes object to inquire. |
|
xpos |
a location to store the x position. |
[out][allow-none] |
ypos |
a location to store the y position. |
[out][allow-none] |
Since: 3.7
float
visu_gl_ext_axes_getLengthFactor (VisuGlExtAxes *axes);
Retrieve the scaling factor used to draw axis.
Since: 3.8
struct VisuGlExtAxesClass {
VisuGlExtClass parent;
};
A short way to identify _VisuGlExtAxesClass structure.
Since: 3.7
#define VISU_GL_EXT_AXES_ID "Axes"
The id used to identify this extension, see
visu_gl_ext_rebuild() for instance.
“display-orientation” property“display-orientation” gboolean
display orientation information.
Flags: Read / Write
Default value: FALSE
“orientation-omega” property“orientation-omega” gfloat
omega defining top.
Flags: Read / Write
Allowed values: [0,360]
Default value: 0
“orientation-phi” property“orientation-phi” gfloat
phi defining top.
Flags: Read / Write
Allowed values: [0,360]
Default value: 0
“orientation-theta” property“orientation-theta” gfloat
theta defining top.
Flags: Read / Write
Allowed values: [0,180]
Default value: 0
“size” property“size” gfloat
portion of the screen for the axis.
Flags: Read / Write
Allowed values: [0,1]
Default value: 0.16
“x-label” property“x-label” gchar *
label for the x axis.
Flags: Read / Write
Default value: "x"
“x-pos” property“x-pos” gfloat
position along x axis.
Flags: Read / Write
Allowed values: [0,1]
Default value: 1
“y-label” property“y-label” gchar *
label for the y axis.
Flags: Read / Write
Default value: "y"
“y-pos” property“y-pos” gfloat
position along y axis.
Flags: Read / Write
Allowed values: [0,1]
Default value: 1
“z-label” property“z-label” gchar *
label for the z axis.
Flags: Read / Write
Default value: "z"