Esempio n. 1
0
 def load_object(parameter_name, filename):
     obj = None
     if (parameter_name == IntraAnalysisParameterNames.COMMISSURE_COORDINATES):
         obj = APCObject(filename)
     elif (parameter_name == IntraAnalysisParameterNames.HISTO_ANALYSIS):
         obj = Histogram.from_filename(filename)
     else:
         obj = Object3D.from_filename(filename) 
     return obj
Esempio n. 2
0
 def load_object_async(parameter_name, filename, callback):
     _ = parameter_name
     obj = None
     if (parameter_name == IntraAnalysisParameterNames.COMMISSURE_COORDINATES):
         obj = APCObject(filename)
     elif (parameter_name == IntraAnalysisParameterNames.HISTO_ANALYSIS):
         obj = Histogram.from_filename(filename)
     else:
         Object3D.from_filename_async(filename, callback)
         return
     callback(obj)