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
Viewport placed at this position.
Zero-based index of the topmost row occupied by the viewport.
Zero-based index of the leftmost column occupied by the viewport.
Number of rows the viewport spans.
Number of columns the viewport spans.
Left edge of the viewport, as a fraction of the workspace width.
Top edge of the viewport, as a fraction of the workspace height.
Viewport width, as a fraction of the workspace width.
Viewport height, as a fraction of the workspace height.