v_sim.Node

Fields

Name

Type

Access

Description

number

int

r/w

an integer that corresponds to its position in the entry file, it references also the node itself in the array ‘fromNumberToVisuNode’ of the v_sim.Data that contains the node ;

posElement

int

r/w

an integer that is the position of the v_sim.Element of the node in the array ‘fromIntToVisuElement’ of the v_sim.Data object that contains the node ;

posNode

int

r/w

an integer that is the position of the node itself in the array ‘nodes’ of the v_sim.Data object that contains the node ;

rendered

bool

r/w

a boolean to store if the node is drwn or not.

translation

[float]

r/w

an array of three floating point values that translates the node to its drawn position from (x, y, z) ;

xyz

[float]

r/w

an array of three floating point values that positions the node in (x, y, z) ;

Methods

getVisibility ()

newValues (xyz)

setCoordinates (xyz)

setVisibility (visibility)

Details

class v_sim.Node

Structure to store primary data of a node.

getVisibility()
Returns:

true if the node is rendered, false otherwise.

Return type:

bool

This method is used get the status of the drawing state of a node.

newValues(xyz)
Parameters:

xyz ([float]) – the coordinates to set.

Set the coordinates and set all other values to default.

setCoordinates(xyz)
Parameters:

xyz ([float]) – new cartesian coordinates.

Returns:

True if the calling method should emit v_sim.NodeArray ::position-changed signal.

Return type:

bool

This method is used to change coordinates of self.

New in version 3.7.

setVisibility(visibility)
Parameters:

visibility (bool) – a boolean.

Returns:

True if the visibility has changed.

Return type:

bool

This method is used to turn on or off the drawing of the specified node.