Top | ![]() |
![]() |
![]() |
![]() |
enum | VisuUiSurfacesFieldId |
#define | VISU_UI_SURFACE_NAME_STR |
#define | VISU_UI_SURFACE_NAME_CHOOSE |
This module contains the panel used to draw isosurfaces. From it, you can draw isosurfaces on screen after they are loaded through the VisuGlExtSurfaces object. You can also access tools to manage and create .surf files, these tools are related to the panelSurfacesTools module.
VisuUiPanel * visu_ui_panel_surfaces_init ();
Should be used in the list declared in externalModules.h to be loaded by V_Sim on start-up. This routine will create the VisuUiPanel where the iso-surfaces stuff can be done, such as creating a surface, loading a scalar field, changing the properties...
[skip]
gboolean visu_ui_panel_surfaces_loadFile (const char *file_name
,GtkTreeIter *iter
,GHashTable *table
,VisuScalarFieldMethod *meth
);
Tries to load the given file_name
and if it succeeds, adds loaded surfaces
to the isosurfaces panel. If file_name
is a VisuScalarField then,
meth
is used to load it. If fitToBox
is not NULL
, the load
surfaces or scalar fields are fit to it.
file_name |
the file you want to try to load. |
[type filename] |
iter |
a location to store the GtkTreeIter that will be set. |
[out caller-allocates] |
table |
a set of different Option (can be NULL). |
[allow-none] |
meth |
a VisuScalarFieldMethod object. |
void visu_ui_panel_surfaces_addSurfaces (GList *surfs
,const gchar *name
,GtkTreeIter *iter
);
This routine can be used to add a VisuSurface to the tree
view. iter
is then populated with the row it has been inserted to.
surfs |
a VisuSurface object. |
[element-type VisuSurface*] |
name |
a name |
|
iter |
a location to store the iter. |
[out caller-allocates] |
Since: 3.7
void visu_ui_panel_surfaces_addSurface (VisuSurface *surf
,GtkTreeIter *root
,GtkTreeIter *iter
);
This routine can be used to add a VisuSurface to the tree
view. iter
is then populated with the row it has been inserted to.
surf |
a VisuSurface object. |
[transfer full] |
root |
the iter to attach the surface to. |
[allow-none] |
iter |
a location to store the iter. |
[out caller-allocates] |
Since: 3.7
gboolean visu_ui_panel_surfaces_parseXMLFile (const gchar *filename
,GError **error
);
This routine reads an XML file and setup the resources and the isovalues to the selected row accordingly.
gboolean visu_ui_panel_surfaces_exportXMLFile (const gchar *filename
,GError **error
);
Export to filename
the list of isosurfaces values of the selected
scalar-field file.
Since: 3.7
gboolean
visu_ui_panel_surfaces_showAll (gboolean show
);
Shows or hides all surfaces and check their "draw" status in the panel accordingly.
void
visu_ui_panel_surfaces_editProperties (GtkTreeIter *iter
);
Opens a new window allowing to edit surface properties.
void visu_ui_panel_surfaces_compute (const VisuScalarField *field
,const float *values
,const gchar **names
,guint nValues
);
GtkListStore * visu_ui_panel_surfaces_getFields ();
This method gives read access to the GtkListStore used to store the scalar field files.
the GtkListStore used by this panel to store its scalar fields. It should be considered read-only.
[transfer none]
VisuScalarField * visu_ui_panel_surfaces_fieldsAt (GtkTreeModel *model
,GtkTreeIter *iter
);
Retrieves the VisuScalarField object stored at iter
, if any.
Since: 3.8
GtkWidget * visu_ui_panel_surfaces_generateValues (int *nbValues
,float **values
,gchar **name
,float minVal
,float maxVal
);
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
.
nbValues |
a location of an integer to store the number of generated values ; |
|
values |
a pointer on a float array. The target of this pointer must be
NULL and it will be allocated after a call to this method. Use
|
|
name |
a pointer to store a name. The target of this pointer must be NULL on enter. It is associated only if a name is given. |
|
minVal |
the minimum value for the range ; |
|
maxVal |
the maximum value for the range. |
Thesse are the description of the columns stored in the GtkListStore
of this panel. See visu_ui_panel_surfaces_getFields()
to access this liststore.
#define VISU_UI_SURFACE_NAME_STR "Choose an id name"
The default string used to name surfaces that are not associated to any public surface ressource.