Top | ![]() |
![]() |
![]() |
![]() |
struct | VisuNodeNeighbours |
struct | VisuNodeNeighboursClass |
struct | VisuNodeNeighboursIter |
Define an object to store information about neighbours, see
visu_node_neighbours_new()
and an iterator to run over neighbours.
VisuNodeNeighbours *
visu_node_neighbours_new (VisuData *data
);
Create an object to handle a set of neighbours for data
.
Since: 3.8
gboolean visu_node_neighbours_getSurfaceAt (VisuNodeNeighbours *nei
,guint nodeId
,VisuSurfaceDefinition *def
);
Generate a surface definition around atom nodeId
.
nei |
a VisuNodeNeighbours object. |
|
nodeId |
a node number. |
|
def |
a place to store points and polys. |
[out caller-allocates] |
Since: 3.8
gboolean visu_node_neighbours_getSurfaceFrom (VisuNodeNeighbours *nei
,guint nodeId
,VisuSurfaceDefinition *def
);
Generate a surface definition around atom nodeId
and all its neighbours.
nei |
a VisuNodeNeighbours object. |
|
nodeId |
a node id. |
|
def |
a place to store points and polys. |
[out caller-allocates] |
Since: 3.8
gboolean visu_node_neighbours_iter (VisuNodeNeighbours *nei
,VisuNodeNeighboursIter *iter
,guint nodeId
);
Initialise iter
to iterate over the neighbours of node nodeId
.
nei |
a VisuNodeNeighbours object to iterate on. |
|
iter |
a VisuNodeNeighboursIter structure. |
[out caller-allocates] |
nodeId |
the node id to obtain neighbours of. |
Since: 3.8
void visu_node_neighbours_iter___iter__ (const VisuNodeNeighboursIter *iter
,VisuNodeNeighboursIter *out
);
Used for Python binding only.
iter |
a VisuNodeNeighboursIter structure. |
|
out |
a VisuNodeNeighboursIter structure. |
[out caller-allocates] |
Since: 3.8
gboolean
visu_node_neighbours_iter_next (VisuNodeNeighboursIter *iter
);
Look to the next neighbour, see visu_node_neighbours_iter()
.
Since: 3.8
struct VisuNodeNeighboursClass { VisuObjectClass parent; };
Common name to refer to a _VisuNodeNeighboursClass.
struct VisuNodeNeighboursIter { guint index, nnei, neiId; /* Private */ VisuNodeNeighbours *nei; guint nodeId; };
Iterator structure used to span over the neighbours of nodeId
.
guint |
current neighbour index. |
|
guint |
number of neighbours. |
|
guint |
node id of the current neighbour. |
|
VisuNodeNeighbours * |
parent VisuNodeNeighbours object. |
|
guint |
node id of the current node. |
Since: 3.8