OrsDerivedDataset¶
Manages deriving new datasets from the current view
- 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:
Feb 17 2016 13:54
- dragonflyVersion:
3.0
- UUID:
cbca0974761111e7b793448a5b5d70c0
Class Code¶
- class OrsPythonPlugins.OrsDerivedDataset.OrsDerivedDataset.OrsDerivedDataset(*args, **kwargs)¶
- interfacemethod copyStructuredGridIntoAnotherShape(sourceStructuredGrid: StructuredGrid, referenceStructureGrid: StructuredGrid, newTitle: str = '', interpolationMode: CxvFiltering_Mode = CxvFiltering_Mode.CXV_FILTER_LINEAR) StructuredGrid¶
Resamples a new dataset using another structured grid
- Parameters:
sourceStructuredGrid (ORSModel.ors.StructuredGrid) – the structured grid to resample
referenceStructureGrid (ORSModel.ors.StructuredGrid) – the structured grid having the shape of reference
newTitle (str) – the title of the new dataset
interpolationMode (IntEnum CxvFiltering_Mode) – an interpolation Mode (linear, point or cubic)
- Returns:
derivedDataset (ORSModel.ors.StructuredGrid) – a new resampled dataset
- classmethod simpleDerivedDataset(aStructuredGrid, aView, isotropic=False, interpolationMode: CxvFiltering_Mode = CxvFiltering_Mode.CXV_FILTER_LINEAR)¶
Resamples a new dataset using the orientation of a view
- Parameters:
aStructuredGrid (ORSModel.ors.StructuredGrid) – the structured grid to resample
aView (ORSModel.ors.View) – the view serving as orientation reference
isotropic (bool) – if True the spacing of the output StructuredGrid will be isotropic
interpolationMode (IntEnum CxvFiltering_Mode) – an interpolation Mode (linear, point or cubic)
- Returns:
derivedDataset (ORSModel.ors.StructuredGrid) – a new resampled dataset
- interfacemethod simpleDerivedDatasetFromGenealogicalName(aStructuredGrid: StructuredGrid, name: str, isotropic: bool = False, interpolationMode: CxvFiltering_Mode = CxvFiltering_Mode.CXV_FILTER_LINEAR) StructuredGrid¶
Resamples a new dataset using the orientation of a view
- Parameters:
aStructuredGrid (ORSModel.ors.StructuredGrid) – the structured grid to resample
name (str) – the genealogical name of the view serving as orientation reference
isotropic (bool) – if True the spacing of the output StructuredGrid will be isotropic
interpolationMode (IntEnum CxvFiltering_Mode) – an interpolation Mode (linear, point or cubic)
- Returns:
derivedDataset (ORSModel.ors.StructuredGrid) – a new resampled dataset