OrsDatasetSampler¶
Plugin for sampling StructuredGrid (up-sampling or down-sampling)
| author: | ORS Team |
|---|---|
| contact: | http://theobjects.com |
| email: | info@theobjects.com |
| organization: | Object Research Systems (ORS), Inc. |
| address: | 760 St-Paul West, suite 101, Montréal, Québec, Canada, H3C 1M4 |
| copyright: | Object Research Systems (ORS), Inc. All rights reserved 2018. |
| date: | Feb 17 2016 14:44 |
| dragonflyVersion: | |
| 3.0 | |
| UUID: | ac240e0c761111e7b7ec448a5b5d70c0 |
Class Code¶
-
class
OrsPythonPlugins.OrsDatasetSampler.OrsDatasetSampler.OrsDatasetSampler(varname=None, managed=True)¶ -
UIDescriptors= [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]¶
-
closable= True¶
-
closeWidget(name)¶
-
classmethod
contextualMenu(context)¶
-
getSourceStructuredGrid()¶
-
getStructuredGrid()¶
-
keepAlive= False¶
-
multiple= False¶
-
classmethod
openDatasetSamplerAction(structuredGridGUID)¶
-
openWidget(name, dock=None, tab=None, x=-1, y=-1, w=-1, l=-1, order=-1)¶
-
orsCurrentDisplayChange()¶ When the current view changes, let the mainform possibly react.
-
interfacemethod
sampleDataset(dataset, xSizeOutput, ySizeOutput, zSizeOutput, samplingType, createNewDataset)¶ Samples the source structured grid.
Parameters: - dataset (ORSModel.ors.StructuredGrid) – the dataset to sample
- xSizeOutput (int) – xSize in voxels of the sampled dataset
- ySizeOutput (int) – ySize in voxels of the sampled dataset
- zSizeOutput (int) – zSize in voxels of the sampled dataset
- samplingType (IntEnum CxvSamplingMethod) – sampling type (linear, nearest or cubic)
- createNewDataset (bool) – if True, a new dataset will be generated. If False, the input dataset will be modified.
Returns: newDataset (ORSModel.ors.StructuredGrid) – sampled dataset. If createNewDataset is False, None is returned.
-
savable= False¶
-
selectedObjectsChanged()¶
-
setSourceStructuredGrid(structuredGrid)¶
-