neoscore.interface.invisible_object_interface

class neoscore.interface.invisible_object_interface.InvisibleObjectInterface[source]

Bases: PositionedObjectInterface

A stub interface for use as a virtual parent in scenes.

render()[source]

Render the object to the scene.

This is typically done by constructing a QGraphicsItem subclass and calling _register_qt_object with it. Do not manually assign the Qt object’s parent or add it to the Qt scene.

__init__(pos: Point, parent: Optional[PositionedObjectInterface], scale: float, rotation: float, transform_origin: Point) None
pos: Point

The position of the object.

If a parent is provided, this position is relative to that interface. Otherwise it is in absolute document coordinates.

parent: Optional[PositionedObjectInterface]

The object’s parent, if any.

If a parent interface is provided, it must be rendered before this interface.

scale: float

A scaling factor, where 1 is no scaling.

This occurs relative to transform_origin.

Scaling is inherited from parents to children along the interface tree.

rotation: float

Rotation angle in degrees, where 0 is no rotation.

This occurs relative to transform_origin.

Rotation is inherited from parents to children along the interface tree.

transform_origin: Point

The origin point for rotation and scaling transforms