OrsMarkedSlicesManipulator

Manages dataset marked slices

author:ORS Team
contact:http://theobjects.com
email:info@theobjects.com
organization:Object Research Systems (ORS), Inc.
address:460 Ste-Catherine Ouest, suite 600, Montréal, Québec, Canada, H3B 1A7
copyright:Object Research Systems (ORS), Inc. All rights reserved 2021.
date:Feb 13 2016 10:56
dragonflyVersion:
 3.0
UUID:bd221f92761511e7b3c1448a5b5d70c0

Class Code

class OrsPythonPlugins.OrsMarkedSlicesManipulator.OrsMarkedSlicesManipulator.OrsMarkedSlicesManipulator(varname=None)
canBeGenericallyOpened = False
contextualMenu(listSelectedObjects)
interfacemethod copyMarkedSlice(dataset, interactive=False)

Copies the marked slice to the current slice.

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

copySuccess (bool) – True if successful, False otherwise

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()
interfacemethod invertMarkedSliceSelection(dataset)

Toggles the marking state of every slice of a dataset.

Parameters:dataset (ORSModel.ors.Channel) – the dataset to toggle the marking of the slices on
Returns:invertMarkingSuccess (bool) – True if successful, False otherwise
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