OrsBoneAnalysisWizard_4960f17ef01e11e99a760c9d9276653a

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:Oct 16 2019 10:07
dragonflyVersion:
 4.5.0.11514
UUID:4960f17ef01e11e99a760c9d9276653a

Class Code

class OrsPythonPlugins.OrsBoneAnalysisWizard_4960f17ef01e11e99a760c9d9276653a.OrsBoneAnalysisWizard_4960f17ef01e11e99a760c9d9276653a.OrsBoneAnalysisWizard_4960f17ef01e11e99a760c9d9276653a(varname=None)
UIDescriptors = [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]
WIZARD_OBJECT_ANNOTATIONS = 'OrsBoneAnalysis_annotations'
WIZARD_OBJECT_CHANNELS = 'OrsBoneAnalysis_channels'
WIZARD_OBJECT_COMPUTATION_VISUAL_BOX = 'OrsBoneAnalysis_computationVisualBox'
WIZARD_OBJECT_CORTICAL_TRABECULAR_BONE_ROI = 'OrsBoneAnalysis_corticalTrabecularBoneROI'
WIZARD_OBJECT_CORTICAL_TRABECULAR_MEASUREMENTS_CORTICAL_BONE_ROI = 'OrsBoneAnalysis_corticalTrabecularMeasurementsCorticalBoneROI'
WIZARD_OBJECT_CORTICAL_TRABECULAR_MEASUREMENTS_FILLED_ROI = 'OrsBoneAnalysis_corticalTrabecularMeasurementsFilledBoneROI'
WIZARD_OBJECT_CORTICAL_TRABECULAR_MEASUREMENTS_TRABECULAR_BONE_ROI = 'OrsBoneAnalysis_corticalTrabecularMeasurementsTrabecularBoneROI'
WIZARD_OBJECT_MULTIROIS = 'OrsBoneAnalysis_multiROIs'
WIZARD_OBJECT_ROIS = 'OrsBoneAnalysis_ROIs'
WIZARD_OBJECT_SCALAR_AND_VECTOR_FIELDS_MAPPING_CHANNEL = 'OrsBoneAnalysis_scalarAndVectorFieldsMappingChannel'
WIZARD_OBJECT_SCALAR_AND_VECTOR_FIELDS_MAPPING_VECTOR_FIELD = 'OrsBoneAnalysis_scalarAndVectorFieldsMappingVectorField'
WIZARD_OBJECT_SCALAR_AND_VECTOR_FIELDS_VISUAL_BOX = 'OrsBoneAnalysis_scalarAndVectorFieldsVisualBox'
WIZARD_OBJECT_SHAPES = 'OrsBoneAnalysis_shapes'
WIZARD_OBJECT_UNSTRUCTUREDGRIDS = 'OrsBoneAnalysis_unstructuredGrid'
WIZARD_OBJECT_WORKING_DATASET = 'OrsBoneAnalysis_workingDataset'
WIZARD_PAGE_BONE_SEGMENTATION = 'PageBoneSegmentation'
WIZARD_PAGE_FILLED_BONE_SEPARATION = 'PageFilledBoneSeparation'
WIZARD_PAGE_GLOBAL_MEASUREMENTS = 'PageGlobalMeasurements'
WIZARD_PAGE_REPORT_GENERATOR = 'PageReportGenerator'
WIZARD_PAGE_SCALAR_AND_VECTOR_FIELDS = 'PageScalarAndVectorFields'
addAnnotation(anAnnotation)
addChannel(aChannel)
addMultiROI(aMultiROI)
addROI(aROI)
addShape(aShape)
addUnstructuredGrid(aUnstructuredGrid)
canBeGenericallyOpened = True
cleanup()

Deletes the variables managed by the plugin. It is the place to remove callbacks and other references to Python objects that would prevent them to be garbage collected. This method is called during the process of deletion of the plugin. It calls for the cleanup and deletion of the forms.

classmethod contextualMenu()

classmethod(function) -> method

Convert a function to be a class method.

A class method receives the class as implicit first argument, just like an instance method receives the instance. To declare a class method, use this idiom:

class C:

@classmethod def f(cls, arg1, arg2, …):

It can be called either on the class (e.g. C.f()) or on an instance (e.g. C().f()). The instance is ignored except for its class. If a class method is called for a derived class, the derived class object is passed as the implied first argument.

Class methods are different than C++ or Java static methods. If you want those, see the staticmethod builtin.

interfacemethod extractObjectFromContextGroup(aContextGroup, anObjectToExtract)

Extracts an object from a context group by making a copy.

Parameters:
Returns:

extractedObject (ORSModel.ors.Managed) – extracted object

forceRefresh3DViewOfCurrentLayout()

Forces a refresh of the 3D view of the current layout

classmethod getContextName()
classmethod getImageRepresentation()

Method called to obtain a bitmap representing the Wizard, mostly to build a quick launch toolbar where each wizard has a button to start it

Returns:output – an image
Type:QPixmap
getIsObjectAvailable(anObject)

Gets to know if the object is available in the context.

Parameters:anObject (ORSModel.ors.Managed) – an object
Return:True if the object is available in the context; False otherwise.
Rtype:bool
getLastWizardPageKey()
classmethod getMainFormClass()

Gets the class of the main form

Returns:output
classmethod importAllLoggingClasses()

This method is called to make any class extension available for macro playing. It should:

  1. import all class extension;
  2. return a list of classes where logging is supported.
Returns:output (list of classes) – list of classes where logging is supported by the current plugin
instantiateWizardPagesForms(parent)

Instantiation of the wizard pages forms

keepAlive = False
classmethod menuItemDefinition()

classmethod(function) -> method

Convert a function to be a class method.

A class method receives the class as implicit first argument, just like an instance method receives the instance. To declare a class method, use this idiom:

class C:

@classmethod def f(cls, arg1, arg2, …):

It can be called either on the class (e.g. C.f()) or on an instance (e.g. C().f()). The instance is ignored except for its class. If a class method is called for a derived class, the derived class object is passed as the implied first argument.

Class methods are different than C++ or Java static methods. If you want those, see the staticmethod builtin.

modalContext = True
multiple = False
privateObjects = True
removeAnnotation(anAnnotationGUID)
removeChannel(aChannelGUID)
removeMultiROI(aMultiROIGUID)
removeROI(aROIGUID)
removeShape(aShapeGUID)
removeUnstructuredGrid(aUnstructuredGridGUID)
requiredWizardPagesClasses = [<class 'OrsPythonPlugins.OrsBoneAnalysisWizard_4960f17ef01e11e99a760c9d9276653a.pagebonesegmentation.pagebonesegmentationmodel.PageBoneSegmentationModel_8ef03944f03111e9866a0c9d9276653a'>, <class 'OrsPythonPlugins.OrsBoneAnalysisWizard_4960f17ef01e11e99a760c9d9276653a.pagefilledboneseparation.pagefilledboneseparationmodel.PageFilledBoneSeparationModel_d7feb50af42a11e9a3620c9d9276653a'>, <class 'OrsPythonPlugins.OrsBoneAnalysisWizard_4960f17ef01e11e99a760c9d9276653a.pageglobalmeasurements.pageglobalmeasurementsmodel.PageGlobalMeasurementsModel_5ebc8dbcf5a511e9a3620c9d9276653a'>, <class 'OrsPythonPlugins.OrsBoneAnalysisWizard_4960f17ef01e11e99a760c9d9276653a.pagescalarandvectorfields.pagescalarandvectorfieldsmodel.PageScalarAndVectorFieldsModel_845dad3cf66111e9a3620c9d9276653a'>, <class 'OrsPythonPlugins.OrsBoneAnalysisWizard_4960f17ef01e11e99a760c9d9276653a.pagereportgenerator.pagereportgeneratormodel.PageReportGeneratorModel_c410337cf72a11e9a3620c9d9276653a'>]
restrictPlugins = True
savable = True
classmethod startBoneAnalysisFromChannel(aChannel, openMainForm=True)
classmethod startBoneAnalysisFromChannelAndROI(aChannel, aROI, openMainForm=True)
classmethod startupDefault(openMainForm=True)

Creates an instance of the plugin class and opens the main form (if required) at the default position.

Returns:output (AbstractPlugin) – plugin instance
classmethod startupFromContextGroup(aContextGroup, openMainForm=True)