ViewportPlacement#

class ansys.result_explorer.core.ViewportPlacement(viewport: Viewport, row: int, column: int, row_span: int, column_span: int, x: float, y: float, width: float, height: float)#

Position of a viewport inside a workspace layout.

Methods

ViewportPlacement.covers(row, column)

Return whether the viewport occupies a grid cell.

Attributes

ViewportPlacement.viewport

Viewport placed at this position.

ViewportPlacement.row

Zero-based index of the topmost row occupied by the viewport.

ViewportPlacement.column

Zero-based index of the leftmost column occupied by the viewport.

ViewportPlacement.row_span

Number of rows the viewport spans.

ViewportPlacement.column_span

Number of columns the viewport spans.

ViewportPlacement.x

Left edge of the viewport, as a fraction of the workspace width.

ViewportPlacement.y

Top edge of the viewport, as a fraction of the workspace height.

ViewportPlacement.width

Viewport width, as a fraction of the workspace width.

ViewportPlacement.height

Viewport height, as a fraction of the workspace height.