Top | ![]() |
![]() |
![]() |
![]() |
geometrygeometry — different routines to do high level geometry studies on a box or a set of boxes. |
VisuPaths * | visu_paths_new () |
VisuPaths * | visu_paths_ref () |
void | visu_paths_unref () |
void | visu_paths_free () |
void | visu_paths_empty () |
gboolean | visu_paths_addFromDiff () |
gboolean | visu_paths_addNodeStep () |
void | visu_paths_pinPositions () |
void | visu_paths_draw () |
void | visu_paths_constrainInBox () |
gboolean | visu_paths_exportXMLFile () |
gboolean | visu_paths_parseFromXML () |
void | visu_paths_setTranslation () |
gboolean | visu_paths_setToolShade () |
const ToolShade * | visu_paths_getToolShade () |
guint | visu_paths_getLength () |
The first possibility of the geometry section is to make a two by two difference node position difference between two VisuData objects. The VisuNode positions are compared (number to number and not closed equivalent to closed equivalent) and stored for visualisation. The visualisation is done through small arrows position on the currently visualised file.
VisuPaths *
visu_paths_new (float translation[3]
);
Create a new VisuPaths object.
Since: 3.6
VisuPaths *
visu_paths_ref (VisuPaths *paths
);
Increase the ref counter.
Since: 3.7
void
visu_paths_unref (VisuPaths *paths
);
Decrease the ref counter, free all memory if counter reachs zero.
Since: 3.7
void
visu_paths_empty (VisuPaths *paths
);
Reinitialise internal values of a given paths
.
Since: 3.6
gboolean visu_paths_addFromDiff (VisuPaths *paths
,VisuDataDiff *data
,gdouble energy
);
This routine read the geometry difference hold in data
and add a
new step in the set of paths. If new paths are created, one
should call visu_paths_setTranslation()
to be sure that all
paths are moved inside the box.
data |
a VisuData object with a geometry difference (see
|
|
paths |
the set of paths to extend. |
|
energy |
the current total energy, if any, otherwise use |
Since: 3.6
gboolean visu_paths_addNodeStep (VisuPaths *paths
,guint time
,guint nodeId
,float xyz[3]
,float dxyz[3]
,float energy
);
This routine expand the path for the given nodeId
at position xyz
of dxyz
. The energy
value will be used only if
visu_paths_setToolShade()
is used with a non NULL ToolShade. In that
case the energy
value will be used to colourise the provided path.
paths |
a set of paths. |
|
time |
the flag that give the number of expansion to update. |
|
nodeId |
the node to expand the path of. |
|
xyz |
the current position of the path. |
|
dxyz |
the variation in the path. |
|
energy |
the energy of the system. |
Since: 3.6
void visu_paths_pinPositions (VisuPaths *paths
,VisuData *data
);
Use the current positions of data
to extend paths
.
Since: 3.6
void visu_paths_draw (VisuPaths *paths
,float pathWidth
);
OpenGL calls to create the paths.
Since: 3.6
void visu_paths_constrainInBox (VisuPaths *paths
,VisuData *data
);
Modify the corrdinates of the path nodes to contraint them in a box (when applying translations for instance).
Since: 3.6
gboolean visu_paths_exportXMLFile (const VisuPaths *paths
,const gchar *filename
,GError **error
);
Write an XML file with the description of the given paths
.
Since: 3.6
gboolean visu_paths_parseFromXML (const gchar *filename
,VisuPaths *paths
,GError **error
);
Read an XML containing a description of paths
. paths
is newly
created on success and should be freed with visu_paths_free()
.
Since: 3.6
void visu_paths_setTranslation (VisuPaths *paths
,float cartCoord[3]
);
Change the translation of the path, stored in cartesian coordinates.
Since: 3.6
gboolean visu_paths_setToolShade (VisuPaths *paths
,const ToolShade *shade
);
Set the colourisation scheme for the path.
Since: 3.6
const ToolShade *
visu_paths_getToolShade (const VisuPaths *paths
);
The paths are drawn with a colourisation scheme.
Since: 3.6