![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
gtk_orientationChoosergtk_orientationChooser — Defines a dialog widget to choose the camera position. |
#include <coreTools/toolMatrix.h> VisuUiOrientationChooser; VisuUiOrientationChooserClass; enum VisuUiOrientationChooserKind; void visu_ui_orientation_chooser_getAnglesValues (VisuUiOrientationChooser *orientation
,float values[2]
); void visu_ui_orientation_chooser_getBoxValues (VisuUiOrientationChooser *orientation
,float values[3]
); void visu_ui_orientation_chooser_getOrthoValues (VisuUiOrientationChooser *orientation
,float values[3]
); GtkWidget * visu_ui_orientation_chooser_new (VisuUiOrientationChooserKind kind
,gboolean liveUpdate
,VisuData *data
,GtkWindow *parent
); void visu_ui_orientation_chooser_setAnglesValues (VisuUiOrientationChooser *orientation
,float values[2]
); void visu_ui_orientation_chooser_setBoxValues (VisuUiOrientationChooser *orientation
,float values[3]
); void visu_ui_orientation_chooser_setOrthoValues (VisuUiOrientationChooser *orientation
,float values[3]
);
GObject +----GInitiallyUnowned +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----GtkDialog +----VisuUiOrientationChooser
This widget is a GtkDialog window that can be used to choose an orientation for the camera, using either the cartesian coordinates, the box coordinates or the spherical coordinates.
typedef struct _VisuUiOrientationChooser VisuUiOrientationChooser;
Short form for a VisuUiOrientationChooser_struct structure.
typedef struct _VisuUiOrientationChooserClass VisuUiOrientationChooserClass;
Opaque structure.
typedef enum { VISU_UI_ORIENTATION_DIRECTION, VISU_UI_ORIENTATION_NORMAL } VisuUiOrientationChooserKind;
These values are used when creating an VisuUiOrientationChooser, to specify the behavior of the box coordinates. This is due to the fact that the box coordinates are not always orthoggonal.
void visu_ui_orientation_chooser_getAnglesValues (VisuUiOrientationChooser *orientation
,float values[2]
);
Get the current orientation in the spherical basis set.
|
a VisuUiOrientationChooser widget ; |
|
a location for two floating point values. [array fixed-size=2][out] |
void visu_ui_orientation_chooser_getBoxValues (VisuUiOrientationChooser *orientation
,float values[3]
);
Get the current orientation in the box basis set.
|
a VisuUiOrientationChooser widget ; |
|
a location for three floating point values. [array fixed-size=3][out] |
void visu_ui_orientation_chooser_getOrthoValues (VisuUiOrientationChooser *orientation
,float values[3]
);
Get the current orientation in the orthogonal basis set.
|
a VisuUiOrientationChooser widget ; |
|
a location for three floating point values. [array fixed-size=3][out] |
GtkWidget * visu_ui_orientation_chooser_new (VisuUiOrientationChooserKind kind
,gboolean liveUpdate
,VisuData *data
,GtkWindow *parent
);
Create a dialog box with three choices to choose a direction in space: the
classical orthogonal basis set, the spherical one or the basis set linked
to the box. If the data
argument is NULL, this last possibility is made
unsensitive. If the kind is set to VISU_UI_ORIENTATION_DIRECTION, the orthogonal
coordinates correspond exactly to the box coordinates (after transformation) ;
whereas kind
is VISU_UI_ORIENTATION_NORMAL, the cartesian coordinates are those
which give the right normal plane to the direction given in the box coordinates.
|
to set the box coordinates behavior ; |
|
raise "values-changed" when a value is changed ; |
|
the associated VisuData to get the box definition (can be NULL);. [allow-none] |
|
give the parent window to set the modal status and the position. [allow-none] |
Returns : |
a newly created object. [transfer full] |
void visu_ui_orientation_chooser_setAnglesValues (VisuUiOrientationChooser *orientation
,float values[2]
);
Change the direction using the one given in a spherical basis set. Update all other values accordingly.
|
a VisuUiOrientationChooser widget ; |
|
two floating point values. [array fixed-size=2] |
void visu_ui_orientation_chooser_setBoxValues (VisuUiOrientationChooser *orientation
,float values[3]
);
Change the direction using the one given in the box basis set. Update all other values accordingly.
|
a VisuUiOrientationChooser widget ; |
|
three floating point values. [array fixed-size=3] |
void visu_ui_orientation_chooser_setOrthoValues (VisuUiOrientationChooser *orientation
,float values[3]
);
Change the direction using the one given in an orthogonal basis set. Update all other values accordingly.
|
a VisuUiOrientationChooser widget ; |
|
three floating point values. [array fixed-size=3] |
"values-changed"
signalvoid user_function (VisuUiOrientationChooser *chooser,
gpointer user_data) : Action
This signal is emitted when the values are changed and when the live update checkbox is active.
|
the VisuUiOrientationChooser that emits the signal. |
|
user data set when the signal handler was connected. |
Since 3.4