v_sim.NodeNeighbours

g GObject.Object GObject.Object v_sim.NodeNeighbours v_sim.NodeNeighbours GObject.Object->v_sim.NodeNeighbours

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (data)

getSurfaceAt (nodeId)

getSurfaceFrom (nodeId)

iter (nodeId)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

data

v_sim.Data

r/w/co

the Data the neighbours are for

factor

float

r/w

additional percentage on radii

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

priv

v_sim.NodeNeighboursPrivate

r

Class Details

class v_sim.NodeNeighbours(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

v_sim.NodeNeighboursClass

Common name to refer to a #_VisuNodeNeighbours.

classmethod new(data)
Parameters:

data (v_sim.Data) – a v_sim.Data object.

Returns:

a newly created v_sim.NodeNeighbours object.

Return type:

v_sim.NodeNeighbours

Create an object to handle a set of neighbours for data.

New in version 3.8.

getSurfaceAt(nodeId)
Parameters:

nodeId (int) – a node number.

Returns:

True if def is generated.

def_:

a place to store points and polys.

Return type:

(bool, def_: v_sim.SurfaceDefinition)

Generate a surface definition around atom nodeId.

New in version 3.8.

getSurfaceFrom(nodeId)
Parameters:

nodeId (int) – a node id.

Returns:

True if there is any generated surface.

def_:

a place to store points and polys.

Return type:

(bool, def_: v_sim.SurfaceDefinition)

Generate a surface definition around atom nodeId and all its neighbours.

New in version 3.8.

iter(nodeId)
Parameters:

nodeId (int) – the node id to obtain neighbours of.

Returns:

True if the iterator is valid.

iter:

a v_sim.NodeNeighboursIter structure.

Return type:

(bool, iter: v_sim.NodeNeighboursIter)

Initialise iter to iterate over the neighbours of node nodeId.

New in version 3.8.

Property Details

v_sim.NodeNeighbours.props.data
Name:

data

Type:

v_sim.Data

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

the Data the neighbours are for

v_sim.NodeNeighbours.props.factor
Name:

factor

Type:

float

Default Value:

0.20000000298023224

Flags:

READABLE, WRITABLE

additional percentage on radii