OrsDatasetInvertor¶
Manages dataset (tone of gray and/or axis) inversion
- 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:
Oct 05 2015 16:45
- dragonflyVersion:
3.0
- UUID:
83ba8ba6761111e78b0b448a5b5d70c0
Class Code¶
- class OrsPythonPlugins.OrsDatasetInvertor.OrsDatasetInvertor.OrsDatasetInvertor(*args, **kwargs)¶
- classmethod getMainFormClass()¶
Gets the class of the main form
- Returns:
output –
- interfacemethod invert(structuredGrid: StructuredGrid, invertX: bool, invertY: bool, invertZ: bool, invertData: bool, axisTransformation: int, createNewDataset: bool) StructuredGrid¶
Invert the data of a dataset along specified axes.
- Parameters:
structuredGrid (ORSModel.ors.StructuredGrid) – the dataset to invert
invertX (bool) – if True, the X axis will be inverted
invertY (bool) – if True, the Y axis will be inverted
invertZ (bool) – if True, the Z axis will be inverted
invertData (bool) – if True, the data will be inverted
axisTransformation (int) – a permutation of the axes
createNewDataset (bool) – if True, a new dataset will be generated. If False, the input dataset will be modified.
- Returns:
newDataset (ORSModel.ors.StructuredGrid) – inverted dataset. If createNewDataset is False, None is returned.