v_sim.UiPanel¶
- Subclasses:
 None
Methods¶
- Inherited:
 Gtk.Frame (9), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
 v_sim.UiPanelClass (8), Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
|
class  | 
|
class  | 
  | 
class  | 
|
class  | 
|
class  | 
  | 
class  | 
|
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
|
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
  | 
class  | 
|
class  | 
  | 
class  | 
  | 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
Properties¶
- Inherited:
 
Style Properties¶
- Inherited:
 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
This signal is emitted when a page of the   | 
Fields¶
- Inherited:
 
Class Details¶
- class v_sim.UiPanel(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Short form for a #VisuUiPanel_struct structure.
- classmethod axes_init(main)¶
 - Parameters:
 main (
v_sim.UiMain) – av_sim.UiMainobject.- Returns:
 the
v_sim.UiPanelobject dealing with axes.- Return type:
 
This routine will create the
v_sim.UiPanelwhere the axes and the label stuffs can be tuned, such as their colour, create scales…
- classmethod axes_setAxesExtension(axes)¶
 - Parameters:
 axes (
v_sim.GlExtAxesorNone) – av_sim.GlExtAxesobject.
Set the current axes extension handled by this
v_sim.UiPanel.New in version 3.7.
- classmethod axes_setBoxExtension(box, legend)¶
 - Parameters:
 box (
v_sim.GlExtBoxorNone) – av_sim.GlExtBoxobject.legend (
v_sim.GlExtBoxLegendorNone) – av_sim.GlExtBoxLegendobject.
Set the current box extension handled by this
v_sim.UiPanel.New in version 3.8.
- classmethod axes_setScaleExtension(scale)¶
 - Parameters:
 scale (
v_sim.GlExtScaleorNone) – av_sim.GlExtScaleobject.
Set the current scale extension handled by this
v_sim.UiPanel.New in version 3.8.
- classmethod config_getArea()¶
 - Returns:
 a
Gtk.Boxcontaining elements of the configure panel.- Return type:
 
This routine can be used to extend the configure panel from plug-ins.
New in version 3.7.
- classmethod elements_getStatic()¶
 - Returns:
 a
v_sim.UiPanelobject.- Return type:
 
Creates and retrieves the
v_sim.UiPanelused to handlev_sim.Element.New in version 3.8.
- classmethod getAllPanels()¶
 - Returns:
 a newly created list (use g_list_free() on it after use).
- Return type:
 
This routine can be used to know all existing
v_sim.UiPanel.
- classmethod getAllWindows()¶
 - Returns:
 a newly created list (use g_list_free() on it after use).
- Return type:
 
This routine can be used to know all existing
v_sim.UiDockWindow.
- classmethod getCommandPanel()¶
 - Returns:
 the
v_sim.UiDockWindowthat is inside the command panel.- Return type:
 
There is always a
v_sim.UiDockWindowthat is inside the command panel. This routine gets it.
- classmethod getDockById(id)¶
 - Parameters:
 id (
str) – av_sim.UiDockWindowidentifier.- Returns:
 the
v_sim.UiDockWindowthat corresponds to this identifier. The dock window is built if not currently exist.- Return type:
 
This routine associates a
v_sim.UiDockWindowidentifier to the object pointer.
- classmethod getHeaderVisibility()¶
 - 
The header can be represented using the full image and label always or only the image when the tab is not on top.
New in version 3.8.
 
- classmethod getPanelById(id)¶
 - Parameters:
 id (
str) – av_sim.UiPanelidentifier.- Returns:
 the
v_sim.UiPanelthat corresponds to this identifier orNoneif none exists.- Return type:
 
This routine associates a
v_sim.UiPanelidentifier to the object pointer.
- classmethod new(id, name, tabName)¶
 - Parameters:
 - Returns:
 a newly created widget.
- Return type:
 
Create a new
v_sim.UiPanelwith the given id, displaying name in the combo box of av_sim.UiDockWindowand tabName in the tab of the page notebook.
- classmethod newWithIconFromIconName(id, name, tabName, icon)¶
 - Parameters:
 - Returns:
 a newly created widget.
- Return type:
 
Create a new
v_sim.UiPanelwith the given id, displaying name in the combo box of av_sim.UiDockWindowand tabName in the tab of the page notebook. The displayed icon will be taken from the stock.
- classmethod newWithIconFromPath(id, name, tabName, iconPath)¶
 - Parameters:
 - Returns:
 a newly created widget.
- Return type:
 
Create a new
v_sim.UiPanelwith the given id, displaying name in the combo box of av_sim.UiDockWindowand tabName in the tab of the page notebook. The displayed icon will be read from the iconPath.
- classmethod planes_getList()¶
 - Returns:
 the
Gtk.ListStoreused by this panel to store its planes. It should be considered read-only.- Return type:
 
This method gives read access to the
Gtk.ListStoreused to store the planes.
- classmethod setCurrent(dataObj, view)¶
 - Parameters:
 dataObj (
v_sim.Data) – av_sim.Dataobject.view (
v_sim.GlView) – av_sim.GlViewobject.
Set the currently focussed
v_sim.Data. It then can be retrieve usingv_sim.UiPanel.getData().New in version 3.7.
- classmethod setHeaderVisibility(status)¶
 - Parameters:
 status (
bool) – a boolean.
The header can be represented using the full image and label always or only the image when the tab is not on top.
- classmethod surfaces_addSurface(surf, root)¶
 - Parameters:
 surf (
v_sim.Surface) – av_sim.Surfaceobject.root (
Gtk.TreeIterorNone) – the iter to attach the surface to.
- Returns:
 a location to store the iter.
- Return type:
 iter:
Gtk.TreeIter
This routine can be used to add a
v_sim.Surfaceto the tree view. iter is then populated with the row it has been inserted to.New in version 3.7.
- classmethod surfaces_addSurfaces(surfs, name)¶
 - Parameters:
 surfs ([
v_sim.Surface]) – av_sim.Surfaceobject.name (
str) – a name surf comes from.
- Returns:
 a location to store the iter.
- Return type:
 iter:
Gtk.TreeIter
This routine can be used to add a
v_sim.Surfaceto the tree view. iter is then populated with the row it has been inserted to.New in version 3.7.
- classmethod surfaces_editProperties(iter)¶
 - Parameters:
 iter (
Gtk.TreeIter) – the currently selected row iter (orNone).
Opens a new window allowing to edit surface properties.
- classmethod surfaces_exportXMLFile(filename)¶
 - Parameters:
 filename (
str) – a filename to export to.- Raises:
 - Returns:
 Trueif everything goes right.- Return type:
 
Export to filename the list of isosurfaces values of the selected scalar-field file.
New in version 3.7.
- classmethod surfaces_fieldsAt(model, iter)¶
 - Parameters:
 model (
Gtk.TreeModel) – aGtk.TreeModelobject.iter (
Gtk.TreeIter) – aGtk.TreeIteriter.
- Returns:
 a
v_sim.ScalarFieldobject.- Return type:
 
Retrieves the
v_sim.ScalarFieldobject stored at iter, if any.New in version 3.8.
- classmethod surfaces_generateValues(nbValues, values, name, minVal, maxVal)¶
 - Parameters:
 nbValues (
int) – a location of an integer to store the number of generated values ;values (
float) – a pointer on a float array. The target of this pointer must beNoneand it will be allocated after a call to this method. UseGLib.free() after use to free it.name (
str) – a pointer to store a name. The target of this pointer must beNoneon enter. It is associated only if a name is given.minVal (
float) – the minimum value for the range ;maxVal (
float) – the maximum value for the range.
- Returns:
 the dialog widget.
- Return type:
 
This method opens a little dialog window that is made to help the user enter a list of values for creation of iso-surfaces. These values are generated between minVal and maxVal.
- classmethod surfaces_getFields()¶
 - Returns:
 the
Gtk.ListStoreused by this panel to store its scalar fields. It should be considered read-only.- Return type:
 
This method gives read access to the
Gtk.ListStoreused to store the scalar field files.
- classmethod surfaces_loadFile(file_name, table, meth)¶
 - Parameters:
 file_name (
str) – the file you want to try to loadtable ({
object:object} orNone) – a set of different #Option (can beNone).meth (
v_sim.ScalarFieldMethod) – av_sim.ScalarFieldMethodobject.
- Returns:
 Truein case of success.- iter:
 a location to store the
Gtk.TreeIterthat will be set.
- Return type:
 (
bool, iter:Gtk.TreeIter)
Tries to load the given file_name and if it succeeds, adds loaded surfaces to the isosurfaces panel. If file_name is a
v_sim.ScalarFieldthen, meth is used to load it. If fitToBox is notNone, the load surfaces or scalar fields are fit to it.
- classmethod surfaces_parseXMLFile(filename)¶
 - Parameters:
 filename (
str) – a location to read the XML data.- Raises:
 - Returns:
 Trueon success.- Return type:
 
This routine reads an XML file and setup the resources and the isovalues to the selected row accordingly.
- classmethod surfaces_showAll(show)¶
 - Parameters:
 show (
bool) –Trueto show all surfaces,Falseto hide them.- Returns:
 Trueif surface list should be rebuild and redraw.- Return type:
 
Shows or hides all surfaces and check their “draw” status in the panel accordingly.
- attach(dock)¶
 - Parameters:
 dock (
v_sim.UiDockWindow) – av_sim.UiDockWindow.
Put the given self in the given dock window. It adds in this dock window a new page in the
Gtk.Notebookusing as tab header the widget returned byv_sim.UiPanel.getHeaderWidget().
- detach()¶
 Remove the given self from its current container and add it to the list of hidden tool panels. It can be added again using the pop-up menu of any
v_sim.UiDockWindow.
- getContainer()¶
 - Returns:
 a
v_sim.UiDockWindowobject.- Return type:
 
Return the
v_sim.UiDockWindowthat the given self is attached to orNoneif the self is currently dettached.
- getContainerId()¶
 - Returns:
 a string owned by V_Sim.
- Return type:
 
Return the identifying string of the
v_sim.UiDockWindowthat the given self is attached to orNoneif the self is currently dettached.
- getContainerWindow()¶
 - Returns:
 a
Gtk.Windowobject.- Return type:
 
Return the
Gtk.Windowthat the given self is rendered in orNoneif the self is currently dettached.
- getData()¶
 - Returns:
 the currently focused
v_sim.Data(can beNoneif none).- Return type:
 
The self is supposed to work on a
v_sim.Data, this routine can be used to get it.
- getFocused()¶
 - Returns:
 the currently focused
v_sim.Boxed(can beNoneif none).- Return type:
 v_sim.BoxedorNone
Retrieves the currently focused
v_sim.Boxedobject in the defaultv_sim.UiRenderingWindow.New in version 3.7.
- getHeaderWidget()¶
 - Returns:
 a container widget that should be put in the tab of a
Gtk.Notebook.- Return type:
 
The
v_sim.UiPanelshould be used in a page of aGtk.Notebook. This routine is used to get the widget that should be used in the tab. This widget is a container with an icon and a label.
- getId()¶
 - Returns:
 a constant string identifying this
v_sim.UiPanel.- Return type:
 
The
v_sim.UiPanelcan be identifyed by an id (a string without space, usually using ASCII characters only).
- getLabel()¶
 - Returns:
 an UTF-8 internationalised name (property of V_Sim, should not be freed).
- Return type:
 
The
v_sim.UiPanelhas two label, a short one, used in the tab of aGtk.Notebookand one longer. This routine gets the longer.
- getView()¶
 - Returns:
 the current
v_sim.GlView, orNone.- Return type:
 
Convenient routine to get the current
v_sim.GlView, seev_sim.UiPanelClass.setCurrent().New in version 3.7.
- getVisible()¶
 - 
This is used to retrieve if the self is currently realised and the visualised page of the
Gtk.Notebookit is associated to. 
- setContainer(window)¶
 - Parameters:
 window (
v_sim.UiDockWindow) – av_sim.UiDockWindow.
Change the container of a visu_ui_panel. If it is currently attached to a
v_sim.UiDockWindow, it firstly detachs it.
- setContainerId(id)¶
 - Parameters:
 id (
str) – av_sim.UiDockWindowidentifier.
Change the container of a visu_ui_panel using the given id. If it is currently attached to a
v_sim.UiDockWindow, it firstly detachs it.
- setDockable(value)¶
 - Parameters:
 value (
bool) – a boolean.
A
v_sim.UiPanelcan be moved between differentv_sim.UiDockWindowor not. This ability is controlled by the dockable flag. Change it with this method. If self is set dockable, then, it can be hidden or moved to another or a newv_sim.UiDockWindowwith the pop-up memu that is triggered by a small button in the header widget (seev_sim.UiPanel.getHeaderWidget()).
Signal Details¶
- v_sim.UiPanel.signals.page_entered(ui_panel)¶
 - Signal Name:
 page-entered- Flags:
 - Parameters:
 ui_panel (
v_sim.UiPanel) – The object which received the signal
This signal is emitted when a page of the
Gtk.Notebookwith all the V_Sim panels is entered.New in version 3.3.