v_sim.PairCylinder

g GObject.GInterface GObject.GInterface v_sim.PairCylinder v_sim.PairCylinder GObject.GInterface->v_sim.PairCylinder

Implementations:

v_sim.PairLink

Methods

class

getDefaultColorType ()

class

getDefaultRadius ()

getColorType ()

getRadius ()

setColorType (val)

setRadius (val)

Virtual Methods

do_get_colorType ()

do_get_radius ()

do_set_colorType (val)

do_set_radius (val)

Properties

Name

Type

Flags

Short Description

color-type

int

r/w

cylinder color type

radius

float

r/w

cylinder radius

Signals

None

Fields

None

Class Details

class v_sim.PairCylinder
Bases:

GObject.GInterface

Structure:

v_sim.PairCylinderInterface

Interface object.

New in version 3.8.

classmethod getDefaultColorType()
Returns:

an integer corresponding to the color scheme (0 or 1).

Return type:

v_sim.PairCylinderColorId

Get the color scheme.

classmethod getDefaultRadius()
Returns:

the default value for cylinder radius.

Return type:

float

Get the default value for cylinder radius.

getColorType()
Returns:

the color type value.

Return type:

v_sim.PairCylinderColorId

Get the color type value for the specified pair.

getRadius()
Returns:

the radius value.

Return type:

float

Get the radius value for the specified pair.

setColorType(val)
Parameters:

val (v_sim.PairCylinderColorId) – a integer that identify the color scheme.

Returns:

True if the calling method should take care of v_sim.GlExtPairs objects, False if not.

Return type:

bool

It set the color scheme for cylinder pairs. It can be 0 or 1.

setRadius(val)
Parameters:

val (float) – a float value.

Returns:

True if the value is changed.

Return type:

bool

This method allows to change the radius value of a specific pair. When a pair is rendered via a cylinder, it first checks if that pairs has a specific radius value set by this method. If not, it uses the default value.

do_get_colorType() virtual
Return type:

v_sim.PairCylinderColorId

a method to get the coloring scheme.

do_get_radius() virtual
Return type:

float

a method to get the radius.

do_set_colorType(val) virtual
Parameters:

val (v_sim.PairCylinderColorId) –

Return type:

bool

a method to change the coloring scheme.

do_set_radius(val) virtual
Parameters:

val (float) –

Return type:

bool

a method to change the radius of drawn cylinder v_sim.PairLink.

Property Details

v_sim.PairCylinder.props.color_type
Name:

color-type

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

cylinder color type

v_sim.PairCylinder.props.radius
Name:

radius

Type:

float

Default Value:

0.10000000149011612

Flags:

READABLE, WRITABLE

cylinder radius