Top | ![]() |
![]() |
![]() |
![]() |
gtk_renderingWindowWidgetgtk_renderingWindowWidget — Defines a complex widget used to render files and print information. |
gboolean | coordinates-in-reduced | Read / Write |
VisuData * | data | Read / Write |
VisuGlNodeScene * | gl-scene | Read / Write / Construct Only |
VisuGlView * | gl-view | Read |
VisuInteractive * | interactive | Read |
gchar * | label | Read |
VisuNode * | selection | Read |
gboolean | with-toolbar | Write / Construct Only |
void | delete-nodes | No Hooks |
void | export | Action |
void | load-next-file | No Hooks |
void | load-prev-file | No Hooks |
void | open | Action |
void | reload | Action |
void | search | Action |
void | show-action-dialog | No Hooks |
void | show-main-panel | No Hooks |
void | show-orientation-chooser | Action |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── VisuUiRenderingWindow
VisuUiRenderingWindow implements AtkImplementorIface, GtkBuildable and GtkOrientable.
This is a complex widget, inheriting from GtkWindow, with a
rendering area and a status bar area. A VisuData is always
attached to this widget, see visu_ui_rendering_window_setData()
. If not
the V_Sim logo is displayed.
The rendering area can receive keyboard or mouse events, see visu_ui_rendering_window_class_getInteractive.
The status bar area has different buttons to load or export a
file. It also display some usefull information like the number of
rendered nodes. It has also a real status bar location displaying
tips about current available actions. One can add news using
visu_ui_rendering_window_pushMessage()
.
GtkWidget * visu_ui_rendering_window_new (int width
,int height
,gboolean withFrame
,gboolean withToolBar
);
A VisuUiRenderingWindow widget is a GtkWindow that have an area for OpenGL drawing and a statusBar with many stuff like action buttons, real status bar for notifications, ... The rendering area can be drawn with a frame or not. With this routine, only the VisuUiRenderingWindow widget is created.
GtkWidget * visu_ui_rendering_window_new_withGlScene (VisuGlNodeScene *scene
,gboolean withToolBar
);
void visu_ui_rendering_window_pushMessage (VisuUiRenderingWindow *window
,const gchar *message
);
Use this method to add some informations on the status bar.
window |
a valid VisuUiRenderingWindow object ; |
|
message |
an UTF8 string to print on the status bar. |
void
visu_ui_rendering_window_popMessage (VisuUiRenderingWindow *window
);
Remove the last message.
VisuGlNodeScene *
visu_ui_rendering_window_getGlScene (VisuUiRenderingWindow *window
);
This method is used to get the VisuGlExtSet attached to the rendering window.
Since: 3.8
void visu_ui_rendering_window_loadFile (VisuUiRenderingWindow *window
,VisuDataLoadable *data
,guint iSet
);
This method calls the general function to load data from file
and deals with errors with gtkDialogs. The filenames must have
already been set into data
using visu_data_addFile()
.
window |
a valid VisuUiRenderingWindow object. |
|
data |
the VisuData to be loaded. |
[transfer full][allow-none] |
iSet |
the id of |
void visu_ui_rendering_window_open (VisuUiRenderingWindow *window
,GtkWindow *parent
);
Do as if the load button has been pushed, i.e. open a filechooser
dialog on the parent
window, and load the resulting file,
refreshing the view if necessary.
void
visu_ui_rendering_window_reload (VisuUiRenderingWindow *window
);
This routines reloads the current VisuData object by rereading it on disk. If there is no current VisuData object, it reports an error.
Since: 3.7
GtkAccelGroup *
visu_ui_rendering_window_getAccelGroup
(VisuUiRenderingWindow *window
);
Retrieve the accelerator group of window
.
Since: 3.7
void visu_ui_rendering_window_setCurrent (VisuUiRenderingWindow *window
,gboolean force
);
Set the OpenGL area as the current rendering area. If force
is TRUE
then the context is switched whatever buffered value.
Since: 3.5
void visu_ui_rendering_window_pushInteractive (VisuUiRenderingWindow *window
,VisuInteractive *inter
);
It adds inter
to the stack of interactive sessions currently
attached to window
and launch it.
Since: 3.6
void visu_ui_rendering_window_popInteractive (VisuUiRenderingWindow *window
,VisuInteractive *inter
);
It removes inter
from the stack of interactive sessions currently
attached to window
. If inter
was first on the stack, the next
session is launched.
Since: 3.6
gboolean visu_ui_rendering_window_setDisplayCoordinatesInReduce (VisuUiRenderingWindow *window
,gboolean status
);
If set, the coordinates of picked nodes are displayed in reduced values.
Since: 3.6
gboolean
visu_ui_rendering_window_getDisplayCoordinatesInReduce
(const VisuUiRenderingWindow *window
);
Picked nodes have their coordinates displayed in the status bar of the rendering window. This methods retrieves if they are printed in reduced values or not.
Since: 3.6
void
visu_ui_rendering_window_class_finalize
(void
);
Free memory related to the VisuInteractive object used
[skip]
Since: 3.8
typedef struct _VisuUiRenderingWindow VisuUiRenderingWindow;
Short form for a VisuUiRenderingWindow_struct structure.
“coordinates-in-reduced”
property“coordinates-in-reduced” gboolean
display node coordinates in reduced values.
Flags: Read / Write
Default value: FALSE
“gl-scene”
property“gl-scene” VisuGlNodeScene *
GlScene rendered in the window.
Flags: Read / Write / Construct Only
“with-toolbar”
property“with-toolbar” gboolean
if the widget has a toolbar or not.
Flags: Write / Construct Only
Default value: TRUE
“delete-nodes”
signalvoid user_function (VisuUiRenderingWindow *visuuirenderingwindow, gpointer user_data)
Flags: No Hooks
“export”
signalvoid user_function (VisuUiRenderingWindow *window, gpointer user_data)
Signal emitted when the user ask for data export.
window |
the object emitting the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
Since: 3.6
“load-next-file”
signalvoid user_function (VisuUiRenderingWindow *window, gpointer user_data)
Signal emitted when the user ask to load next file of a given list.
window |
the object emitting the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: No Hooks
Since: 3.7
“load-prev-file”
signalvoid user_function (VisuUiRenderingWindow *window, gpointer user_data)
Signal emitted when the user ask to load previous file of a given list.
window |
the object emitting the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: No Hooks
Since: 3.7
“open”
signalvoid user_function (VisuUiRenderingWindow *window, gpointer user_data)
Signal emitted when the user ask to open new data.
window |
the object emitting the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
Since: 3.6
“reload”
signalvoid user_function (VisuUiRenderingWindow *window, gpointer user_data)
Signal emitted when the user ask to reload current data.
window |
the object emitting the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
Since: 3.6
“search”
signalvoid user_function (VisuUiRenderingWindow *window, gpointer user_data)
Signal emitted when the user ask to search info in current data.
window |
the object emitting the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
Since: 3.7
“show-action-dialog”
signalvoid user_function (VisuUiRenderingWindow *window, gpointer user_data)
Signal emitted when the user ask to show the action dialog.
window |
the object emitting the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: No Hooks
Since: 3.6
“show-main-panel”
signalvoid user_function (VisuUiRenderingWindow *window, gpointer user_data)
Signal emitted when the user ask to raise the main panel.
window |
the object emitting the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: No Hooks
Since: 3.6
“show-orientation-chooser”
signalvoid user_function (VisuUiRenderingWindow *window, gpointer user_data)
Signal emitted when the user ask to precisely select a camera angle.
window |
the object emitting the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
Since: 3.7