![]() |
![]() |
![]() |
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> #define ORIENTATION_CHOOSER_TYPE #define ORIENTATION_CHOOSER (obj) #define ORIENTATION_CHOOSER_CLASS (klass) #define IS_ORIENTATION_CHOOSER (obj) #define IS_ORIENTATION_CHOOSER_CLASS (klass) OrientationChooser; OrientationChooserClass; enum OrientationChooserKind; GType orientationChooser_get_type (void
); GtkWidget* orientationChooserNew (OrientationChooserKind kind
,gboolean liveUpdate
,VisuData *data
,GtkWindow *parent
); void orientationChooserSet_orthoValues (OrientationChooser *orientation
,float values[3]
); void orientationChooserSet_boxValues (OrientationChooser *orientation
,float values[3]
); void orientationChooserSet_anglesValues (OrientationChooser *orientation
,float values[2]
); void orientationChooserGet_orthoValues (OrientationChooser *orientation
,float values[3]
); void orientationChooserGet_boxValues (OrientationChooser *orientation
,float values[3]
); void orientationChooserGet_anglesValues (OrientationChooser *orientation
,float values[2]
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----GtkDialog +----OrientationChooser
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.
#define ORIENTATION_CHOOSER_TYPE (orientationChooser_get_type ())
Return the associated GType to the OrientationChooser objects.
#define ORIENTATION_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ORIENTATION_CHOOSER_TYPE, OrientationChooser))
Cast the given object to a OrientationChooser object.
|
the widget to cast. |
#define ORIENTATION_CHOOSER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ORIENTATION_CHOOSER_TYPE, OrientationChooserClass))
Cast the given class to a OrientationChooserClass object.
|
the class to cast. |
#define IS_ORIENTATION_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ORIENTATION_CHOOSER_TYPE))
Return if the given object is a valid OrientationChooser object.
|
the object to test. |
#define IS_ORIENTATION_CHOOSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ORIENTATION_CHOOSER_TYPE))
Return if the given class is a valid OrientationChooserClass class.
|
the class to test. |
typedef struct _OrientationChooser OrientationChooser;
Short form for a OrientationChooser_struct structure.
typedef struct _OrientationChooserClass OrientationChooserClass;
Short form for a OrientationChooserClass_struct structure.
typedef enum { orientationChooser_direction, orientationChooser_normal } OrientationChooserKind;
These values are used when creating an OrientationChooser, to specify the behavior of the box coordinates. This is due to the fact that the box coordinates are not always orthoggonal.
GType orientationChooser_get_type (void
);
GType are unique numbers to identify objects.
Returns : |
the GType associated with OrientationChooser objects. |
GtkWidget* orientationChooserNew (OrientationChooserKind 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 orientationChooser_direction, the orthogonal
coordinates correspond exactly to the box coordinates (after transformation) ;
whereas kind
is orientationChooser_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) ; |
|
give the parent window to set the modal status and the position. |
Returns : |
a newly created object. |
void orientationChooserSet_orthoValues (OrientationChooser *orientation
,float values[3]
);
Change the direction using the one given in an orthogonal basis set. Update all other values accordingly.
|
a OrientationChooser widget ; |
|
three floating point values. |
void orientationChooserSet_boxValues (OrientationChooser *orientation
,float values[3]
);
Change the direction using the one given in the box basis set. Update all other values accordingly.
|
a OrientationChooser widget ; |
|
three floating point values. |
void orientationChooserSet_anglesValues (OrientationChooser *orientation
,float values[2]
);
Change the direction using the one given in a spherical basis set. Update all other values accordingly.
|
a OrientationChooser widget ; |
|
two floating point values. |
void orientationChooserGet_orthoValues (OrientationChooser *orientation
,float values[3]
);
Get the current orientation in the orthogonal basis set.
|
a OrientationChooser widget ; |
|
a location for three floating point values. |
void orientationChooserGet_boxValues (OrientationChooser *orientation
,float values[3]
);
Get the current orientation in the box basis set.
|
a OrientationChooser widget ; |
|
a location for three floating point values. |
void orientationChooserGet_anglesValues (OrientationChooser *orientation
,float values[2]
);
Get the current orientation in the spherical basis set.
|
a OrientationChooser widget ; |
|
a location for two floating point values. |
"values-changed"
signalvoid user_function (OrientationChooser *chooser, gpointer user_data) : Run First / Action
This signal is emitted when the values are changed and when the live update checkbox is active.
|
the OrientationChooser that emits the signal. |
|
user data set when the signal handler was connected. |
Since 3.4