예제 #1
0
def restore_surface_color_mapping():
    try:
        surface_color_state = \
         {
          'class': 'Surface_Colorings_State',
          'coloring_table': {},
          'geometry': None,
          'is_visible': False,
          'version': 2,
         }
        import SurfaceColor.session
        SurfaceColor.session.restore_surface_color_state(surface_color_state)
    except:
        reportRestoreError('Error restoring surface color mapping')
예제 #2
0
    replyobj.status("Restoring pseudobond groups...",
                    blankAfter=0,
                    secondary=True)
    restorePseudoBondGroups(pbInfo)
    replyobj.status("Restoring model associations...",
                    blankAfter=0,
                    secondary=True)
    restoreModelAssociations(modelAssociations)
    replyobj.status("Restoring camera...", blankAfter=0, secondary=True)
    restoreViewer(viewerInfo)


try:
    restoreCoreModels()
except:
    reportRestoreError("Error restoring core models")

    replyobj.status("Restoring extension info...",
                    blankAfter=0,
                    secondary=True)

try:
    import StructMeasure
    from StructMeasure.DistMonitor import restoreDistances
    registerAfterModelsCB(restoreDistances, 1)
except:
    reportRestoreError("Error restoring distances in session")


def restoreMidasBase():
    formattedPositions = {}
예제 #3
0
    replyobj.status("Restoring pseudobond groups...",
                    blankAfter=0,
                    secondary=True)
    restorePseudoBondGroups(pbInfo)
    replyobj.status("Restoring model associations...",
                    blankAfter=0,
                    secondary=True)
    restoreModelAssociations(modelAssociations)
    replyobj.status("Restoring camera...", blankAfter=0, secondary=True)
    restoreViewer(viewerInfo)


try:
    restoreCoreModels()
except:
    reportRestoreError("Error restoring core models")

    replyobj.status("Restoring extension info...",
                    blankAfter=0,
                    secondary=True)

try:
    import StructMeasure
    from StructMeasure.DistMonitor import restoreDistances
    registerAfterModelsCB(restoreDistances, 1)
except:
    reportRestoreError("Error restoring distances in session")


def restoreMidasBase():
    formattedPositions = {}
예제 #4
0
    replyobj.status("Restoring pseudobond groups...",
                    blankAfter=0,
                    secondary=True)
    restorePseudoBondGroups(pbInfo)
    replyobj.status("Restoring model associations...",
                    blankAfter=0,
                    secondary=True)
    restoreModelAssociations(modelAssociations)
    replyobj.status("Restoring camera...", blankAfter=0, secondary=True)
    restoreViewer(viewerInfo)


try:
    restoreCoreModels()
except:
    reportRestoreError("Error restoring core models")

    replyobj.status("Restoring extension info...",
                    blankAfter=0,
                    secondary=True)

try:
    import StructMeasure
    from StructMeasure.DistMonitor import restoreDistances
    registerAfterModelsCB(restoreDistances, 1)
except:
    reportRestoreError("Error restoring distances in session")


def restoreMidasBase():
    formattedPositions = {
예제 #5
0
		secondary=True)
	restoreVRML(vrmlInfo)
	replyobj.status("Restoring pseudobond groups...", blankAfter=0,
		secondary=True)
	restorePseudoBondGroups(pbInfo)
	replyobj.status("Restoring model associations...", blankAfter=0,
		secondary=True)
	restoreModelAssociations(modelAssociations)
	replyobj.status("Restoring camera...", blankAfter=0,
		secondary=True)
	restoreViewer(viewerInfo)

try:
	restoreCoreModels()
except:
	reportRestoreError("Error restoring core models")

	replyobj.status("Restoring extension info...", blankAfter=0,
		secondary=True)


try:
	import StructMeasure
	from StructMeasure.DistMonitor import restoreDistances
	registerAfterModelsCB(restoreDistances, 1)
except:
	reportRestoreError("Error restoring distances in session")


def restoreMidasBase():
	formattedPositions = {}