v_sim.ElementSpin

g GObject.Object GObject.Object v_sim.ElementRenderer v_sim.ElementRenderer GObject.Object->v_sim.ElementRenderer v_sim.ElementAtomic v_sim.ElementAtomic v_sim.ElementSpin v_sim.ElementSpin v_sim.ElementAtomic->v_sim.ElementSpin v_sim.ElementRenderer->v_sim.ElementAtomic

Subclasses:

None

Methods

Inherited:

v_sim.ElementAtomic (15), v_sim.ElementRenderer (16), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

getShapeNames (asLabel)

class

new (element)

bindToPool ()

getShape ()

Virtual Methods

Inherited:

v_sim.ElementRenderer (4), GObject.Object (7)

Properties

Inherited:

v_sim.ElementAtomic (6), v_sim.ElementRenderer (6)

Name

Type

Flags

Short Description

a-axis

float

r/w

A axis length

b-axis

float

r/w

B axis length

hat-length

float

r/w

hat length

hat-radius

float

r/w

hat radius

hat-spin-colored

bool

r/w

hat is colored by spin

spin-colored

bool

r/w

shape is colored by spin

spin-shape

int

r/w

spin shape

tail-length

float

r/w

tail length

tail-radius

float

r/w

tail radius

tail-spin-colored

bool

r/w

tail is colored by spin

Signals

Inherited:

v_sim.ElementRenderer (1), GObject.Object (1)

Fields

Inherited:

v_sim.ElementRenderer (1), GObject.Object (1)

Name

Type

Access

Description

parent

v_sim.ElementAtomic

r

Class Details

class v_sim.ElementSpin(**kwargs)
Bases:

v_sim.ElementAtomic

Abstract:

No

Structure:

v_sim.ElementSpinClass

Structure used to define v_sim.ElementSpin objects.

New in version 3.8.

classmethod getShapeNames(asLabel)
Parameters:

asLabel (bool) – a boolean.

Returns:

strings representing v_sim.ElementSpinShapeId.

Return type:

[str]

Get the string defining v_sim.ElementSpinShapeId. If asLabel is True, then the string are translated and stored in UTF8.

New in version 3.8.

classmethod new(element)
Parameters:

element (v_sim.Element) – a v_sim.Element object.

Returns:

a newly created v_sim.ElementSpin object.

Return type:

v_sim.ElementSpin

Creates a new v_sim.ElementSpin object to draw element.

New in version 3.8.

bindToPool()

Bind all properties of self to the properties of the v_sim.ElementSpin object from the pool used for the same v_sim.Element.

New in version 3.8.

getShape()
Returns:

a v_sim.ElementSpinShapeId value.

Return type:

v_sim.ElementSpinShapeId

Retrieves the shape of self.

New in version 3.8.

Property Details

v_sim.ElementSpin.props.a_axis
Name:

a-axis

Type:

float

Default Value:

1.5

Flags:

READABLE, WRITABLE

A axis length

v_sim.ElementSpin.props.b_axis
Name:

b-axis

Type:

float

Default Value:

0.6000000238418579

Flags:

READABLE, WRITABLE

B axis length

v_sim.ElementSpin.props.hat_length
Name:

hat-length

Type:

float

Default Value:

2.0

Flags:

READABLE, WRITABLE

hat length

v_sim.ElementSpin.props.hat_radius
Name:

hat-radius

Type:

float

Default Value:

0.800000011920929

Flags:

READABLE, WRITABLE

hat radius

v_sim.ElementSpin.props.hat_spin_colored
Name:

hat-spin-colored

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

hat is colored by spin

v_sim.ElementSpin.props.spin_colored
Name:

spin-colored

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

shape is colored by spin

v_sim.ElementSpin.props.spin_shape
Name:

spin-shape

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

spin shape

v_sim.ElementSpin.props.tail_length
Name:

tail-length

Type:

float

Default Value:

0.800000011920929

Flags:

READABLE, WRITABLE

tail length

v_sim.ElementSpin.props.tail_radius
Name:

tail-radius

Type:

float

Default Value:

0.33000001311302185

Flags:

READABLE, WRITABLE

tail radius

v_sim.ElementSpin.props.tail_spin_colored
Name:

tail-spin-colored

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

tail is colored by spin