v_sim.Paths¶
Fields¶
None
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class v_sim.Paths¶
An opaque structure to save a set of paths.
New in version 3.6.
- classmethod new(translation)¶
- Parameters:
translation ([
float]) – the current box translation (cartesian).- Returns:
the newly create object
v_sim.Paths, to be freed withv_sim.Paths.free().- Return type:
Create a new
v_sim.Pathsobject.New in version 3.6.
- classmethod parseFromXML(filename, paths)¶
- Parameters:
filename (
str) – a location on disk.paths (
v_sim.Paths) – av_sim.Pathsobject.
- Raises:
- Returns:
Trueon success.- Return type:
Read an XML containing a description of paths. paths is newly created on success and should be freed with
v_sim.Paths.free().New in version 3.6.
- addFromDiff(data, energy)¶
- Parameters:
data (
v_sim.DataDiff) – av_sim.Dataobject with a geometry difference (see visu_geodiff_new()).energy (
float) – the current total energy, if any, otherwise useGObject.G_MAXFLOAT.
- Returns:
Trueif new paths have been added.- Return type:
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
v_sim.Paths.setTranslation() to be sure that all paths are moved inside the box.New in version 3.6.
- addNodeStep(time, nodeId, xyz, dxyz, energy)¶
- Parameters:
- Returns:
Trueif a new path is started.- Return type:
This routine expand the path for the given nodeId at position xyz of dxyz. The energy value will be used only if
v_sim.Paths.setToolShade() is used with a nonNonev_sim.Shade. In that case the energy value will be used to colourise the provided path.New in version 3.6.
- constrainInBox(data)¶
- Parameters:
data (
v_sim.Data) – av_sim.Dataobject.
Modify the corrdinates of the path nodes to contraint them in a box (when applying translations for instance).
New in version 3.6.
- empty()¶
Reinitialise internal values of a given self.
New in version 3.6.
- exportXMLFile(filename)¶
-
Write an XML file with the description of the given self.
New in version 3.6.
- free()¶
Free a set of paths.
New in version 3.6.
- getLength()¶
- Returns:
the number of steps.
- Return type:
Get the number of steps stored in a
v_sim.Paths.New in version 3.6.
- getToolShade()¶
- Returns:
the
v_sim.Shadeused by the self.- Return type:
The paths are drawn with a colourisation scheme.
New in version 3.6.
- pinPositions(data)¶
- Parameters:
data (
v_sim.Data) – av_sim.Dataobject.
Use the current positions of data to extend self.
New in version 3.6.
- ref()¶
- Returns:
itself.
- Return type:
Increase the ref counter.
New in version 3.7.
- setToolShade(shade)¶
- Parameters:
shade (
v_sim.Shade) – av_sim.Shadeobject.- Returns:
Trueis the scheme is changed.- Return type:
Set the colourisation scheme for the path.
New in version 3.6.
- setTranslation(cartCoord)¶
- Parameters:
cartCoord (
float) – three floats.
Change the translation of the path, stored in cartesian coordinates.
New in version 3.6.
- unref()¶
Decrease the ref counter, free all memory if counter reachs zero.
New in version 3.7.