OrsDatasetPadding_0f8f9f22988611ebab9e0c9d9276734f¶
- author:
Dragonfly Team
- contact:
- email:
- organization:
Comet Technologies Canada Inc.
- address:
460 Ste-Catherine Ouest, suite 600, Montréal, Québec, Canada, H3B 1A7
- copyright:
Comet Technologies Canada Inc. All rights reserved 2023.
- date:
avr. 08 2021 12:18
- dragonflyVersion:
2021.3.0.1000 (D)
- UUID:
0f8f9f22988611ebab9e0c9d9276734f
Class Code¶
- class OrsPythonPlugins.OrsDatasetPadding_0f8f9f22988611ebab9e0c9d9276734f.OrsDatasetPadding_0f8f9f22988611ebab9e0c9d9276734f.OrsDatasetPadding_0f8f9f22988611ebab9e0c9d9276734f(*args, **kwargs)¶
- classmethod getMainFormClass()¶
Gets the class of the main form
- Returns:
output –
- classmethod getSelectedItems()¶
Opens a GUI to let the user select objects, and then pad the selected objects
- Returns:
output (list of GUIDs) –
…
- interfacemethod padding(structuredGrid: StructuredGrid, xMinus: int, yMinus: int, zMinus: int, tMinus: int, xPlus: int, yPlus: int, zPlus: int, tPlus: int, createNewStructuredGrid: bool, paddingValue: float = 0) StructuredGrid¶
Pad a structured grid.
- Parameters:
structuredGrid (ORSModel.ors.StructuredGrid) – the structured grid to pad
xMinus (int) – padding in X minus
yMinus (int) – padding in Y minus
zMinus (int) – padding in Z minus
tMinus (int) – padding in T minus
xPlus (int) – padding in X plus
yPlus (int) – padding in Y plus
zPlus (int) – padding in Z plus
tPlus (int) – padding in T plus
paddingValue (float) – padding value. This value is used only if structuredGrid is a Channel.
createNewStructuredGrid (bool) – if True, a new structuredGrid will be generated. If False, the input structuredGrid will be modified.
- Returns:
newStructuredGrid (ORSModel.ors.StructuredGrid) – padded structuredGrid. If createNewStructuredGrid is False, None is returned.
