![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
enum PanelPlanesColumnId; gboolean panelPlanesApply_hidingScheme (VisuData *data); gboolean panelPlanesLoad_file (VisuData *dataObj, gchar *filename, GError **error); gboolean panelPlanesSet_use (VisuData *dataObj, gboolean value); GtkListStore* panelPlanesGet_listStore ();
typedef enum { COLUMN_PLANE_DRAWN, COLUMN_PLANE_LABEL, COLUMN_PLANE_HIDE_IS_ON, COLUMN_PLANE_HIDDEN_SIDE, COLUMN_PLANE_COLOR_PIXBUF, COLUMN_PLANE_POINTER, N_COLUMN_PLANE } PanelPlanesColumnId;
Thesse are the description of the columns stored in the GtkListStore
of this panel. See panelPlanesGet_listStore()
to access this liststore.
a boolean, code if the plane is drawn or not. | |
a string, the description of the plane (normal vector and distance to origin). | |
a boolean, code if the plane hide elements on one side. | |
a boolean, code for the side. | |
a pixbuf, a small colored square. | |
the pointer to the Plane object. | |
the number of columns. |
gboolean panelPlanesApply_hidingScheme (VisuData *data);
Use this method to hide nodes according to current list of planes and hiding policy.
|
a VisuData object to associate the planes to (required to compute the intersection with the bounding box) ; |
Returns : |
TRUE if visuData_createAllNodes() should be called and the
redraw signal emitted.
|
gboolean panelPlanesLoad_file (VisuData *dataObj, gchar *filename, GError **error);
This method is used to parse and load an XML file containing
planes informations. The panel must have been initialised before
calling this method. The error
argument is required (can't be NULL),
since it is set if something went wrong.
|
a VisuData object to associate the planes to (required to compute the intersection with the bounding box) ; |
|
the path to the file to load ; |
|
a pointer to a GError handler to reccord possible failure. |
Returns : |
TRUE if panelPlanesApply_hidingScheme() .
|
gboolean panelPlanesSet_use (VisuData *dataObj, gboolean value);
When value
is TRUE, the planes are used and drawn. If the panel
has not been created yet, a call to this function will do it.
|
a VisuData object to associate the planes to (required to compute the intersection with the bounding box) ; |
|
a boolean. |
Returns : |
TRUE if the status of the planes has been changed by this method. |