v_sim.NodeMoverRotation

g GObject.GInterface GObject.GInterface v_sim.Animatable v_sim.Animatable GObject.GInterface->v_sim.Animatable GObject.Object GObject.Object v_sim.NodeMover v_sim.NodeMover GObject.Object->v_sim.NodeMover v_sim.Animatable->v_sim.NodeMover v_sim.NodeMoverRotation v_sim.NodeMoverRotation v_sim.NodeMover->v_sim.NodeMoverRotation

Subclasses:

None

Methods

Inherited:

v_sim.NodeMover (6), GObject.Object (37), v_sim.Animatable (6)

Structs:

GObject.ObjectClass (5)

class

new ()

class

new_full (ids, axis, center, angle)

getAngle ()

getAxis ()

getCenter ()

setAngle (angle)

setAxis (axis)

setCenter (center)

Virtual Methods

Inherited:

v_sim.NodeMover (3), GObject.Object (7)

Properties

Inherited:

v_sim.NodeMover (5)

Name

Type

Flags

Short Description

angle

float

r/w

rotation angle in degrees.

axis

r/w

axis of rotation.

center

r/w

center of rotation.

Signals

Inherited:

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

Fields

Inherited:

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

Name

Type

Access

Description

parent

v_sim.NodeMover

r

priv

v_sim.NodeMoverRotationPrivate

r

Class Details

class v_sim.NodeMoverRotation(**kwargs)
Bases:

v_sim.NodeMover

Abstract:

No

Structure:

v_sim.NodeMoverRotationClass

An opaque structure.

New in version 3.8.

classmethod new()
Returns:

a new v_sim.NodeMoverRotation object.

Return type:

v_sim.NodeMoverRotation

Creates a new rotation.

New in version 3.8.

classmethod new_full(ids, axis, center, angle)
Parameters:
  • ids ([int]) – a set of node ids.

  • axis ([float]) – an axis in cartesian coordinates.

  • center ([float]) – a point in cartesian coordinates.

  • angle (float) – an angle in degrees.

Returns:

a new v_sim.NodeMoverRotation object.

Return type:

v_sim.NodeMoverRotation

Creates a new rotation.

New in version 3.8.

getAngle()
Returns:

an angle in degrees.

Return type:

float

Retrieves the rotation angle.

New in version 3.8.

getAxis()
Returns:

a location for the axis.

Return type:

axis: [float]

Retrieves the rotation axis.

New in version 3.8.

getCenter()
Returns:

a location for the center.

Return type:

center: [float]

Retrieves the rotation center.

New in version 3.8.

setAngle(angle)
Parameters:

angle (float) – an angle in degree.

Returns:

True if value is actually changed.

Return type:

bool

Defines the angle of self.

New in version 3.8.

setAxis(axis)
Parameters:

axis ([float]) – an axis in cartesian coordinates.

Returns:

True if value is actually changed.

Return type:

bool

Defines the axis of self.

New in version 3.8.

setCenter(center)
Parameters:

center ([float]) – a point in cartesian coordinates.

Returns:

True if value is actually changed.

Return type:

bool

Defines the center of self.

New in version 3.8.

Property Details

v_sim.NodeMoverRotation.props.angle
Name:

angle

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

rotation angle in degrees.

v_sim.NodeMoverRotation.props.axis
Name:

axis

Type:

Default Value:

None

Flags:

READABLE, WRITABLE

axis of rotation.

v_sim.NodeMoverRotation.props.center
Name:

center

Type:

Default Value:

None

Flags:

READABLE, WRITABLE

center of rotation.