Top | ![]() |
![]() |
![]() |
![]() |
guint | current | Read / Write |
gchar * | current-label | Read / Write |
gfloat | current-length | Read / Write |
gfloat | current-orientation-x | Read / Write |
gfloat | current-orientation-y | Read / Write |
gfloat | current-orientation-z | Read / Write |
gfloat | current-origin-x | Read / Write |
gfloat | current-origin-y | Read / Write |
gfloat | current-origin-z | Read / Write |
guint | n-arrows | Read |
This little extension is used to draw an arrow at a given position displaying a given length.
VisuGlExtScale *
visu_gl_ext_scale_new (const gchar *name
);
Create a new arrow set without any elements. Add arrows with visu_gl_ext_scale_add()
.
Since: 3.3
guint visu_gl_ext_scale_add (VisuGlExtScale *scale
,float origin[3]
,float orientation[3]
,float length
,const gchar *legend
);
Create a new arrow pointing somewhere in the box with a label.
If legend
is NULL, then the label will be the value of the length.
scale |
the VisuGlExtScale object to add to. |
|
origin |
the origin ;. |
[array fixed-size=3] |
orientation |
the orientation in cartesian coordinates ;. |
[array fixed-size=3] |
length |
the length of the arrow ; |
|
legend |
the text going with the arrow (can be NULL). |
[allow-none] |
Since: 3.7
gboolean visu_gl_ext_scale_setOrigin (VisuGlExtScale *scale
,guint i
,float xyz[3]
,int mask
);
Routine that changes the origin of the scale.
scale |
the VisuGlExtScale to modify ; |
|
i |
the ith arrow ; |
|
xyz |
a vector in cartesian coordinates ;. |
[array fixed-size=3] |
mask |
relevant values in |
Since: 3.3
gboolean visu_gl_ext_scale_setOrientation (VisuGlExtScale *scale
,guint i
,float xyz[3]
,int mask
);
Routine that changes the direction of the scale.
scale |
the VisuGlExtScale to modify ; |
|
i |
the ith arrow ; |
|
xyz |
a vector in cartesian coordinates ;. |
[array fixed-size=3] |
mask |
relevant values in |
Since: 3.3
gboolean visu_gl_ext_scale_setLength (VisuGlExtScale *scale
,guint i
,float lg
);
Routine that changes the length of the scale. If i
is zero and
scale
has currently no arrow, a default one is created.
Since: 3.3
gboolean visu_gl_ext_scale_setLegend (VisuGlExtScale *scale
,guint i
,const gchar *value
);
Routine that changes the legend of the scale. If value
is NULL
then the length of the scale is printed.
scale |
the VisuGlExtScale to modify ; |
|
i |
the ith arrow ; |
|
value |
a string (can be NULL). |
[allow-none] |
Since: 3.3
guint
visu_gl_ext_scale_getNArrows (VisuGlExtScale *scale
);
A VisuGlExtScale is characterised by a set of arrows.
Since: 3.7
const gchar * visu_gl_ext_scale_getLegend (VisuGlExtScale *scale
,guint i
);
A VisuGlExtScale can have a legend. This is not actualy the string printed on screen but the one used to generate it.
Since: 3.3
float visu_gl_ext_scale_getLength (VisuGlExtScale *scale
,guint i
);
A VisuGlExtScale is characterised by its length.
Since: 3.3
float * visu_gl_ext_scale_getOrigin (VisuGlExtScale *scale
,guint i
);
A VisuGlExtScale is characterised by its origin in cartesian coordinates.
Since: 3.3
float * visu_gl_ext_scale_getOrientation (VisuGlExtScale *scale
,guint i
);
A VisuGlExtScale is characterised by its orientation in cartesian coordinates.
Since: 3.3
struct VisuGlExtScale;
All fields are private, use the access routines.
Since: 3.3
struct VisuGlExtScaleClass { VisuGlExtClass parent; };
An opaque structure.
Since: 3.3
“current”
property“current” guint
id of the current arrow.
Flags: Read / Write
Default value: 0
“current-label”
property“current-label” gchar *
label of the current arrow.
Flags: Read / Write
Default value: ""
“current-length”
property“current-length” gfloat
length of the current arrow.
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“current-orientation-x”
property“current-orientation-x” gfloat
orientation of the current arrow.
Flags: Read / Write
Default value: 0
“current-orientation-y”
property“current-orientation-y” gfloat
orientation of the current arrow.
Flags: Read / Write
Default value: 0
“current-orientation-z”
property“current-orientation-z” gfloat
orientation of the current arrow.
Flags: Read / Write
Default value: 0
“current-origin-x”
property“current-origin-x” gfloat
origin of the current arrow.
Flags: Read / Write
Default value: 0
“current-origin-y”
property“current-origin-y” gfloat
origin of the current arrow.
Flags: Read / Write
Default value: 0
“current-origin-z”
property“current-origin-z” gfloat
origin of the current arrow.
Flags: Read / Write
Default value: 0