OrsCreateStructuredGridFromVisualBox_b2a37f5e135b11e897af107b441a0862

author:

Dragonfly Team

contact:

https://dragonfly.comet.tech

email:

support.dragonfly@comet.tech

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 16 2018 15:55

dragonflyVersion:

3.5.0.428 (D)

UUID:

b2a37f5e135b11e897af107b441a0862

Class Code

class OrsPythonPlugins.OrsCreateStructuredGridFromVisualBox_b2a37f5e135b11e897af107b441a0862.OrsCreateStructuredGridFromVisualBox_b2a37f5e135b11e897af107b441a0862.OrsCreateStructuredGridFromVisualBox_b2a37f5e135b11e897af107b441a0862(*args, **kwargs)
classmethod choseStructuredGid(listSelectedObjectsRepr)

Contextual menu.

This code will be executed when a contextual menu has to be displayed.

The menu item instances used in this method should be taken from menu item definitions declared in this plugin and filled with proper values (section, action, enabled, …). If multiple menu items have to be used by this method, they should be defined using the same pattern.

Parameters:

listSelectedObjectsRepr – list of selected objects (this argument is given as string representation)

Returns:

output – None, a single menu item instance, or a list of menu item instances

classmethod computeChannelTotalMemorySize(dataType, xSizeInPixel, ySizeInPixel, zSizeInPixel, tSizeInPixel)

Compute Channel size in bytes

classmethod getMainFormClass()

Gets the class of the main form

Returns:

output

openWidget(name, dock=None, tab=None, x=-1, y=-1, w=-1, l=-1, order=-1, show=True)

Instantiates the widget with the provided name. This is done only if it is not already instantiated.

Parameters:
  • name (str) – name of the widget to instantiate

  • dock (str) – docking location in the main window (left, right, top, bottom, center, floating)

  • tab (str) – name of the tab to dock in

  • x (int) – position of top left corner of window in x. Use -1 for default value.

  • y (int) – position of top left corner of window in y. Use -1 for default value.

  • w (int) – width of window. Use -1 for default value.

  • l (int) – height of window. Use -1 for default value.

  • order (int.) – position of widget in docking location. Use -1 to put at the end.

  • show (bool) – if True, the form is also shown after being instantiated. If the form already exists, a “raise” is done. If False, no call to show the form is made.