OrsMarkedSlicesManipulator

Manages dataset marked slices

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 13 2016 10:56
dragonflyVersion:
 3.0
UUID:bd221f92761511e7b3c1448a5b5d70c0

Class Code

class OrsPythonPlugins.OrsMarkedSlicesManipulator.OrsMarkedSlicesManipulator.OrsMarkedSlicesManipulator(varname=None, managed=True)
closable = False
contextualMenu(listSelectedObjects)
interfacemethod createDatasetFromMarkedSlice(dataset)

Create a new dataset from the marked slices of a dataset.

Parameters:dataset (ORSModel.ors.Channel) – the input dataset
Returns:newDataset (ORSModel.ors.Channel) – a new Channel
classmethod createDatasetFromMarkedSliceAndPublish(dataset)
getActionString()
hideMarkSlice()
keepAlive = False
interfacemethod markAllSlice(dataset, marked)

Mark all slices of a dataset.

Parameters:
  • dataset (ORSModel.ors.Channel) – the dataset to mark the slices on
  • marked (bool) – True to set the entire slices as marked, False otherwise
Returns:

markingSuccess (bool) – True if successful, False otherwise

interfacemethod markSlice(dataset, sliceIndex, timeStep, marked)

Mark a slice of a dataset.

Parameters:
  • dataset (ORSModel.ors.Channel) – the dataset to mark the slice on
  • sliceIndex (int) – the slice index to mark
  • timeStep (int) – the time index to mark
  • marked (bool) – True to set the slice to be marked, False otherwise
Returns:

markingSuccess (bool) – True if successful, False otherwise

markSliceFromOverlay()
classmethod markSlices(dataset, timestep)
multiple = False
interfacemethod removeMarkedSlices(dataset, interactive=False)

Removes the marked slices of a dataset.

Parameters:
  • dataset (ORSModel.ors.Channel) – the dataset to remove the marked slices on
  • interactive (bool) – True if interactive, i.e. can show an error message or not, False in headless mode
Returns:

removalSuccess (bool) – True if successful, False otherwise

savable = True
setObjectToMarkSliceLogic()
showMarkSlice()
interfacemethod simpleMarkSliceReplacement(dataset)

Replaces the marked slices of a dataset.

Parameters:dataset (ORSModel.ors.Channel) – the dataset to replace the marked slices on
Returns:replacementSuccess (bool) – True if successful, False otherwise