rem
stringlengths
0
322k
add
stringlengths
0
2.05M
context
stringlengths
8
228k
start=start, incr=10, frames=real_seconds*m.SECOND, avg=avg, textlist=textlist_6ps, fadeTo=to_filespec)
start=start, incr=avg, frames=real_seconds*m.SECOND, avg=avg, textlist=textlist, fadeTo=to_filespec)
def cross_fade(real_seconds, from_filespec, to_filespec, start=0, avg=10): # We only do cross-fades at 6 ps/sec return m.motionBlur(from_filespec, start=start, incr=10, frames=real_seconds*m.SECOND, avg=avg, textlist=textlist_6ps, fadeTo=to_filespec)
z = slow_cpk_with_title('Titles_22_Sep_2006/1SmallBearingPages-17.gif', 8, start=0) z = slow_cpk_with_title('Titles_22_Sep_2006/2SmallBearingPages-17.gif', 15, start=z)
z = medium_cpk_with_title('Titles_22_Sep_2006/1SmallBearingPages-17.gif', 8, start=0) z = medium_cpk_with_title('Titles_22_Sep_2006/2SmallBearingPages-17.gif', 15, start=z)
def cross_fade(real_seconds, from_filespec, to_filespec, start=0, avg=10): # We only do cross-fades at 6 ps/sec return m.motionBlur(from_filespec, start=start, incr=10, frames=real_seconds*m.SECOND, avg=avg, textlist=textlist_6ps, fadeTo=to_filespec)
z = slow_cpk(5, start=0) z = cross_fade(0.5, SLOW_CPK, SLOW_TUBES, start=z) z = slow_tubes(5, start=z)
z = medium_cpk(5, start=0) z = cross_fade(0.5, FAST_CPK, FAST_TUBES, start=z, avg=4, textlist=textlist_0_6ps) z = medium_tubes(5, start=z)
def cross_fade(real_seconds, from_filespec, to_filespec, start=0, avg=10): # We only do cross-fades at 6 ps/sec return m.motionBlur(from_filespec, start=start, incr=10, frames=real_seconds*m.SECOND, avg=avg, textlist=textlist_6ps, fadeTo=to_filespec)
if not a.picked and self.modkey is 'Shift':
if not a.picked and self.modkey == 'Shift':
def atomLeftDown(self, a, event): if not a.picked and self.modkey is None: self.o.assy.unpickatoms() a.pick() if not a.picked and self.modkey is 'Shift': a.pick() if a.picked and len(self.o.assy.selatoms_list()) > 1: # now called when two or more atoms are selected. mark 060202. self.cursor_over_when_LMB_pressed = 'Pi...
w=self.o.width+0.0
def middleShiftDrag(self, event): """Move point of view so that objects appear to follow the mouse on the screen. """ w=self.o.width+0.0 h=self.o.height+0.0 deltaMouse = V(event.pos().x() - self.o.MousePos[0], self.o.MousePos[1] - event.pos().y(), 0.0) move = self.o.quat.unrot(self.o.scale * deltaMouse/(h*0.5)) # bruce...
move = self.o.quat.unrot(self.o.scale * deltaMouse/(h*0.5))
def middleShiftDrag(self, event): """Move point of view so that objects appear to follow the mouse on the screen. """ w=self.o.width+0.0 h=self.o.height+0.0 deltaMouse = V(event.pos().x() - self.o.MousePos[0], self.o.MousePos[1] - event.pos().y(), 0.0) move = self.o.quat.unrot(self.o.scale * deltaMouse/(h*0.5)) # bruce...
return
def findCenter(self, shaft, los): self.setAtoms(shaft) #bruce 041105 code cleanup self.recompute_center_axis(los) self.edit() ##@@@--Huaicai self.atomPos = [] for a in shaft: self.atomPos += [a.posn()]
program = 'babel.exe' else: program = 'babel'
program += '.exe' if not os.path.exists(program): env.history.message(redmsg("The OpenBabel program [" + program + "] is missing. Translation aborted.")) return False
def runBabel(self, infile, outfile): if platform.atom_debug: print 'start runBabel(%s, %s)' % (repr(infile), repr(outfile)) import time from qt import QStringList, QProcess arguments = QStringList() if sys.platform == 'win32': program = 'babel.exe' else: program = 'babel' i = 0 for arg in [program, infile, outfile]: if...
env.history.message( cmd + self.name ) def __CM_Set_View_to_Current_View(self):
env.history.message( cmd + msg ) def __CM_Set_to_Current_View(self):
def change_view(self): #mark 060122 '''Change the view to self. ''' self.assy.o.animateView(self.quat, self.scale, self.pov, self.zoomFactor, animate=True) from HistoryWidget import greenmsg cmd = greenmsg("Change View: ") msg = 'View changed to "%s".' % (self.name) env.history.message( cmd + self.name )
def set_view_to_current_view(self):
def set_to_current_view(self):
def set_view_to_current_view(self): #mark 060122 '''Set self to current view. ''' self.scale = self.assy.o.scale self.pov = V(self.assy.o.pov[0], self.assy.o.pov[1], self.assy.o.pov[2]) self.zoomFactor = self.assy.o.zoomFactor self.quat = Q(self.assy.o.quat) from HistoryWidget import greenmsg cmd = greenmsg("Set View:...
filenames = "%s.%06d.pov - %06d.pov" % (name, self.currentFrame, self.totalFramesActual+1)
filenames = "%s.%06d.pov - %06d.pov" % (name, self.currentFrame, self.totalFramesActual)
def _write_povray_series(self, name): """Writes the movie out as a series of POV-Ray files, starting with the current frame until the last frame, skipping frames using the "Skip" value from the dashboard. If your trajectory file was foobar.dpb, this will write, e.g., foobar.000000.pov thru foobar.000999.pov (assuming ...
if self.commentcntl.Accepted:
if self.commentcntl.result() == QDialog.Accepted:
def insertComment(self): '''Insert a new comment into the model tree. ''' from Utility import Comment comment = Comment(self.assy, None, text='') self.commentcntl.setup(comment) if self.commentcntl.Accepted: part = self.assy.part part.ensure_toplevel_group() part.topnode.addchild(comment) self.mt.mt_update()
print "MWsemantics.editUndo(): Not implemented yet" QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
self.statusBar.message("<span style=\"color:
def editUndo(self): print "MWsemantics.editUndo(): Not implemented yet" QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
print "MWsemantics.editRedo(): Not implemented yet" QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
self.statusBar.message("<span style=\"color:
def editRedo(self): print "MWsemantics.editRedo(): Not implemented yet" QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
print "MWsemantics.editFind(): Not implemented yet" QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
self.statusBar.message("<span style=\"color:
def editFind(self): print "MWsemantics.editFind(): Not implemented yet" QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
print "MWsemantics.toolsMirror(): Not implemented yet" QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
self.statusBar.message("<span style=\"color:
def toolsMirror(self): print "MWsemantics.toolsMirror(): Not implemented yet" QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
print "MWsemantics.toolsMirrorCircularBoundary(): Not implemented yet" QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
self.statusBar.message("<span style=\"color:
def toolsMirrorCircularBoundary(self): print "MWsemantics.toolsMirrorCircularBoundary(): Not implemented yet" QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
if not self.assy.filename: self.statusBar.message("No part. Cannot play movie file.")
if not self.assy.filename: self.statusBar.message("<span style=\"color:
def toolsMovie(self): if not self.assy.filename: self.statusBar.message("No part. Cannot play movie file.") return dir, fil, ext = fileparse(self.assy.filename) self.glpane.startmovie(dir+fil+'.dpb')
self.glpane.startmovie(dir+fil+'.dpb')
dpbfile = dir+fil+'.dpb' if os.path.exists(dpbfile): self.glpane.startmovie(dpbfile) else: msg = "<span style=\"color: "Movie file [" + dpbfile + "] does not exist.</span>" self.statusBar.message(msg) msg = "To create a movie, click on the <b>Simulator</b> <img source=\"simicon\"> icon." QMimeSourceFactory.defaultFact...
def toolsMovie(self): if not self.assy.filename: self.statusBar.message("No part. Cannot play movie file.") return dir, fil, ext = fileparse(self.assy.filename) self.glpane.startmovie(dir+fil+'.dpb')
QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
self.statusBar.message("<span style=\"color:
def dispDatumLines(self): """ Toggle on/off datum lines """ QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
self.statusBar.message("<span style=\"color:
def dispDatumPlanes(self): """ Toggle on/off datum planes """ QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
self.statusBar.message("<span style=\"color:
def dispOpenBonds(self): """ Toggle on/off open bonds """ QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
self.statusBar.message("<span style=\"color:
def editPrefs(self): """ Edit square grid line distances(dx, dy, dz) in nm/angtroms """ QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
self.statusBar.message("<span style=\"color:
def setViewRecenter(self): """ Fit to Window """ QMessageBox.information(self, self.name() + " User Notice:", "This function is not implemented yet, coming soon...")
"Change view so that the entire model fits in the glpane." part = self.part part.computeBoundingBox() scale = float( part.bbox.scale() * .75)
"Change view so that the entire model fits in the glpane. If <fast> is True, then snap to the view (i.e. don't animate)" bbox = BBox() for mol in self.assy.molecules: if mol.hidden or mol.display == diINVISIBLE: continue bbox.merge(mol.bbox) center = bbox.center() scale = float( bbox.scale() * .75)
def setViewFitToWindow(self, fast=False): "Change view so that the entire model fits in the glpane." #Recalculate center and bounding box for the current part part = self.part part.computeBoundingBox() scale = float( part.bbox.scale() * .75) #bruce 050616 added float() as a precaution, probably not needed # appropriate...
pov = V(-part.center[0], -part.center[1], -part.center[2])
pov = V(-center[0], -center[1], -center[2])
def setViewFitToWindow(self, fast=False): "Change view so that the entire model fits in the glpane." #Recalculate center and bounding box for the current part part = self.part part.computeBoundingBox() scale = float( part.bbox.scale() * .75) #bruce 050616 added float() as a precaution, probably not needed # appropriate...
self.moviePlayerDashboard.setGeometry(QRect(0,19,1087,29))
self.moviePlayerDashboard.setGeometry(QRect(0,19,1085,29))
def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar()
self.setViewOppositeAction.setText(self.__tr("Opposite")) self.setViewOppositeAction.setMenuText(self.__tr("Opposite")) self.setViewOppositeAction.setToolTip(self.__tr("Opposite View")) self.setViewOppositeAction.setStatusTip(self.__tr("Opposite View"))
self.setViewOppositeAction.setText(self.__tr("Rotate View 180")) self.setViewOppositeAction.setMenuText(self.__tr("Rotate View 180")) self.setViewOppositeAction.setToolTip(self.__tr("Rotate View 180")) self.setViewOppositeAction.setStatusTip(self.__tr("Rotate View 180"))
def languageChange(self): self.setCaption(self.__tr("nanoENGINEER-1")) self.fileOpenAction.setText(self.__tr("Open")) self.fileOpenAction.setMenuText(self.__tr("&Open...")) self.fileOpenAction.setAccel(self.__tr("Ctrl+O")) self.fileSaveAction.setText(self.__tr("Save")) self.fileSaveAction.setMenuText(self.__tr("&Save")...
self.setViewPlus90Action.setText(self.__tr("Rotate +90")) self.setViewMinus90Action.setText(self.__tr("Rotate -90"))
self.setViewPlus90Action.setText(self.__tr("Rotate View +90")) self.setViewMinus90Action.setText(self.__tr("Rotate View -90"))
def languageChange(self): self.setCaption(self.__tr("nanoENGINEER-1")) self.fileOpenAction.setText(self.__tr("Open")) self.fileOpenAction.setMenuText(self.__tr("&Open...")) self.fileOpenAction.setAccel(self.__tr("Ctrl+O")) self.fileSaveAction.setText(self.__tr("Save")) self.fileSaveAction.setMenuText(self.__tr("&Save")...
self.setViewNormalToAction.setText(self.__tr("Normal To")) self.setViewNormalToAction.setToolTip(self.__tr("Normal To")) self.setViewParallelToAction.setText(self.__tr("Parallel To")) self.setViewParallelToAction.setToolTip(self.__tr("Parallel To"))
self.setViewNormalToAction.setText(self.__tr("Set View Normal To")) self.setViewNormalToAction.setToolTip(self.__tr("Set View Normal To")) self.setViewParallelToAction.setText(self.__tr("Set View Parallel To")) self.setViewParallelToAction.setToolTip(self.__tr("Set View Parallel To"))
def languageChange(self): self.setCaption(self.__tr("nanoENGINEER-1")) self.fileOpenAction.setText(self.__tr("Open")) self.fileOpenAction.setMenuText(self.__tr("&Open...")) self.fileOpenAction.setAccel(self.__tr("Ctrl+O")) self.fileSaveAction.setText(self.__tr("Save")) self.fileSaveAction.setMenuText(self.__tr("&Save")...
class BaseTest:
class TimedTest: def __init__(self): if not TIME_ONLY: t, total = Tests.RANKED_BY_SPEED[self.methodname] if total > TIME_LIMIT: global testsSkipped testsSkipped += 1 raise PrematureTermination def startTiming(self): self.startTime = time.time() def finishTiming(self): if TIME_ONLY: global testTimes startTime, finish...
def rmtreeSafe(dir): # platform-independent 'rm -rf' try: shutil.rmtree(dir) except OSError, e: pass
if not TIME_ONLY: t, total = Tests.RANKED_BY_SPEED[methodname] if total > TIME_LIMIT: global testsSkipped testsSkipped += 1 return
try: TimedTest.__init__(self) except PrematureTermination: return
def __init__(self, dir=None, test=None, simopts=None, inputs=None, outputs=None, expectedExitStatus=0):
self.startTime = time.time()
self.startTiming()
def runInSandbox(self): # Run the simulator in sim/src/tmp. here = os.getcwd() tmpdir = "tmp_" + self.dirname + "_" + self.shortname try: rmtreeSafe(tmpdir) os.mkdir(tmpdir) # Copy the input files into the tmp directory. shutil.copy("simulator", tmpdir) # We always have a .mmp file shutil.copy(self.basename + ".mmp", t...
if TIME_ONLY: global testTimes startTime, finishTime = self.startTime, time.time() testTimes[self.methodname] = finishTime - startTime elif MD5_CHECKS:
try: self.finishTiming() except PrematureTermination: return if MD5_CHECKS:
def checkOutputFiles(self): if DEBUG > 0: print os.listdir(".") if DEBUG > 1: print ("******** " + self.basename + " ********") for f in os.listdir("."): if f != "simulator": # assume everything else is a text file print "---- " + f + " ----" sys.stdout.write(open(f).read()) if TIME_ONLY: global testTimes startTime, fi...
class NullTest(BaseTest):
class NullTest(SandboxTest):
def structureComparisonBondlengthsBondangles(self): todo("handle multiple-frame xyz files from animations") lac = LengthAngleComparison(self.testname + ".mmp") lac.compare(self.testname + ".xyz", self.testname + ".xyzcmp", LENGTH_TOLERANCE, ANGLE_TOLERANCE)
class MinimizeTest(BaseTest):
class MinimizeTest(SandboxTest):
def runInSandbox(self): global testTimes testTimes[self.methodname] = 0.0
'test_amino_acids_ala_l_aminoacid': (8.4515881538391113, 292.8698992729187), 'test_amino_acids_arg_l_aminoacid': (16.897550821304321, 454.8538236618042), 'test_amino_acids_asn_l_aminoacid': (10.056391954421997, 331.14827513694763), 'test_amino_acids_asp_l_aminoacid': (12.478914976119995, 422.92954587936401), 'test_amin...
'test_amino_acids_ala_l_aminoacid': (1.946666955947876, 55.024072885513306), 'test_amino_acids_arg_l_aminoacid': (2.8490579128265381, 76.331800699234009), 'test_amino_acids_asn_l_aminoacid': (3.9334299564361572, 90.349052906036377), 'test_amino_acids_asp_l_aminoacid': (4.3835141658782959, 107.23448324203491), 'test_ami...
def runInSandbox(self): global testTimes testTimes[self.methodname] = 0.0
'test_dynamics_0002': (0.28501796722412109, 1.8783180713653564), 'test_floppy_organics_C2H6': (0.99122405052185059, 16.262491703033447), 'test_floppy_organics_C3H8': (3.969290018081665, 105.89462566375732), 'test_floppy_organics_C4H10a': (1.0303390026092529, 18.287234783172607), 'test_floppy_organics_C4H10b': (6.151399...
'test_dynamics_0002': (0.26997113227844238, 4.8889110088348389), 'test_floppy_organics_C2H6': (0.12560606002807617, 1.3842589855194092), 'test_floppy_organics_C3H8': (0.43270397186279297, 13.320019483566284), 'test_floppy_organics_C4H10a': (0.3897240161895752, 10.87376880645752), 'test_floppy_organics_C4H10b': (2.23654...
def runInSandbox(self): global testTimes testTimes[self.methodname] = 0.0
'test_minimize_0005': (6.5104620456695557, 211.44434142112732),
'test_minimize_0005': (0.52356314659118652, 18.083697080612183),
def runInSandbox(self): global testTimes testTimes[self.methodname] = 0.0
'test_minimize_0008': (5.4587171077728271, 151.40536737442017), 'test_minimize_0009': (0.48506903648376465, 4.9606013298034668), 'test_minimize_0010': (0.068049192428588867, 0.43266439437866211), 'test_minimize_0011': (6.2895340919494629, 198.63077330589294), 'test_minimize_0012': (5.516711950302124, 156.92207932472229...
'test_minimize_0008': (2.7228949069976807, 70.696381807327271), 'test_minimize_0009': (0.21574997901916504, 3.1451942920684814), 'test_minimize_0010': (0.05845189094543457, 0.31977128982543945), 'test_minimize_0011': (0.53911399841308594, 19.161644220352173), 'test_minimize_0012': (0.3347170352935791, 8.745697021484375...
def runInSandbox(self): global testTimes testTimes[self.methodname] = 0.0
class PyrexTests(unittest.TestCase): def test_minH2(self): import sim BASE = "tests/minimize/test_h2" lac = LengthAngleComparison(BASE + ".mmp") s = sim.Minimize(BASE + ".mmp") s.Temperature = 300 s.go() lac.compare(BASE + ".xyz", BASE + ".xyzcmp", LENGTH_TOLERANCE, ANGLE_TOLERANCE) def test_other(self): import sim BAS...
def test_pyrexMinH2(self): class Foo(PyrexTest): def run(self): import sim BASE = "tests/minimize/test_h2" lac = LengthAngleComparison(BASE + ".mmp") s = sim.Minimize(BASE + ".mmp") s.Temperature = 300 s.go() lac.compare(BASE + ".xyz", BASE + ".xyzcmp", LENGTH_TOLERANCE, ANGLE_TOLERANCE) return Foo("test_pyrexMinH2") d...
def test_rigid_organics_CH4(self): StructureTest(dir="rigid_organics", test="CH4")
if len(new.members)==1: new = new.members[0] self.shelf.addmember(new) new.pick()
for ob in (new.members): self.shelf.addmember(ob) if isinstance(ob, molecule): ob.move(-ob.center) ob.pick()
def cut(self): if self.selwhat==0: return new = Group(gensym("Copy"),self,None) self.tree.apply2picked(lambda(x): x.moveto(new)) if new.members: if len(new.members)==1: new = new.members[0] self.shelf.addmember(new) new.pick() self.modified = 1 self.w.update()
def runCommand(self, opts):
def runCommandQt(self, opts):
def runCommand(self, opts): import qt def substFOO(str): if str.startswith("FOO"): return self.testname + str[3:] return str cmdline = [ "./" + simulatorCmd ] + map(substFOO, opts) if DEBUG > 0: print self.basename print cmdline simProcess = qt.QProcess() stdout = open("stdout", "a") stderr = open("stderr", "a") def bl...
pl += [(s, self.findSpot(el, s))]
real = s.singlet_neighbor() if real not in rl: pl += [(s, self.findSpot(el, s))] rl += [real] elif platform.atom_debug: print "fyi (ATOM_DEBUG): depositMode.attach refrained from causing bug232 by bonding twice to %r" % real
def attach(self, el, singlet): if not el.numbonds: return (None, "%s makes no bonds; can't attach one to an open bond" % el.name) spot = self.findSpot(el, singlet) pl = [] mol = singlet.molecule cr = el.rcovalent
def atm_distance_cost(ratio):
def atm_distance_cost(atm1, atm2, ratio):
def atm_distance_cost(ratio): "Return cost (due to length alone) of a hypothetical bond between two atoms; None means infinite" if not (ratio < max_dist_ratio(atm1, atm2)): return None if ratio < 1.0: # short bond return ratio * 0.01 # weak preference for smallest of small distances else: # long bond -- note, long and ...
dc = atm_distance_cost(ratio)
dc = atm_distance_cost(atm1, atm2, ratio)
def bond_cost(atm1, atm2): "Return total cost of hypothetical new bond between two atoms, or None if bond is not permitted or already there" if not (bondable_atm(atm1) and bondable_atm(atm2)): # check valence of existing bonds return None if bonded(atm1, atm2): # already bonded? (redundant after list-potential-bonds) #...
return A( map( lambda atm: atm.posn(), self.singlets ) )
singlets = self.singlets if len(singlets): return A( map( lambda atm: atm.posn(), self.singlets ) ) else: return []
def _recompute_singlpos(self): self.atpos # we must access self.atpos, since we depend on it in our inval rules # (if that's too slow, then anyone invalling atpos must inval this too #e) return A( map( lambda atm: atm.posn(), self.singlets ) ) #bruce 041119 added "or []" to fix a bug - try recompute everything for no-s...
Returns <errcode>, <partfiles_directory> where <errcode> is 0 if everything worked OK. If there was an error creating or finding the Part Files directory, then <errcode> = 1 and <partfiles_directory> contains a description of the error.
For any error, return (1, errortext); on success return (0, full_path_of_part_files_dir). In other words, return (errorcode, path_or_errortext).
def find_or_make_part_files_directory(self, make=True): """Return the Part Files directory for this assembly. The Part Files directory exists next to the current MMP file and has the same name as the MMP file (without the .mmp extension) but with the ' Files' suffix. The Part Files directory contains all the associated...
errorcode, partfiles_dir = find_or_make_any_directory(path_wo_ext + " Files") if errorcode: return 1, "Can't make directory %s." % partfiles_dir else: return 0, partfiles_dir
return find_or_make_any_directory(path_wo_ext + " Files", make = make)
def find_or_make_part_files_directory(self, make=True): """Return the Part Files directory for this assembly. The Part Files directory exists next to the current MMP file and has the same name as the MMP file (without the .mmp extension) but with the ' Files' suffix. The Part Files directory contains all the associated...
Returns <errcode>, <povfiles_dir> where <errcode> is 0 if everything worked OK. If there was an error creating or finding the POV-Ray Files directory, then <errcode> = 1 and <povfiles_dir> contains a description of the error. """ errorcode, dir_or_errortext = self.find_or_make_part_files_directory()
For any error, return (1, errortext); on success return (0, full_path_of_pov_files_dir). In other words, return (errorcode, path_or_errortext). """ errorcode, dir_or_errortext = self.find_or_make_part_files_directory(make = make)
def find_or_make_pov_files_directory(self, make=True): """Return the POV-Ray Scene Files directory for this assembly. The POV-Ray Scene Files directory is a subdirectory under the current MMP file's Part Files directory and contains all the associated POV-Ray files for this assembly. Returns <errcode>, <povfiles_dir> w...
return find_or_make_any_directory(povfiles_dir)
return find_or_make_any_directory(povfiles_dir, make = make)
def find_or_make_pov_files_directory(self, make=True): """Return the POV-Ray Scene Files directory for this assembly. The POV-Ray Scene Files directory is a subdirectory under the current MMP file's Part Files directory and contains all the associated POV-Ray files for this assembly. Returns <errcode>, <povfiles_dir> w...
guess = map(lambda x: sign(dot(los,x))*x, guess) self.axis=norm(sum(guess))
def f(x): s = sign(dot(los,x)) if s == 0: return -x else: return s * x guess = map(f, guess) self.axis = norm(sum(guess))
def recompute_center_axis(self, los = None): #bruce 050518 split this out of findCenter, for use in a new cmenu item oldaxis = self.axis if los is None: los = self.assy.o.lineOfSight shaft = self.atoms # remaining code is a kluge, according to the comment above findcenter; # note that it depends on order of atoms, pres...
msg = (("Frame %d/%d, T=" % (self.__frame_number, self.totalFramesRequested)) + hhmmss_str(int(time.time() - self.startTime)))
if self.mflag: msg = "Elapsed time: " + hhmmss_str(int(time.time() - self.startTime)) else: msg = (("Frame %d/%d, T=" % (self.__frame_number, self.totalFramesRequested)) + hhmmss_str(int(time.time() - self.startTime)))
def sim_frame_callback(self): #bruce 060102 "Per-frame callback function for simulator object." # some of these prints I commented out need to show up as fields in the progress bar instead... ## print "f", # This happened 3550 times for minimizing a small C3 sp3 hydrocarbon... better check the time first. #e Maybe we s...
de=0.58
de=Detab.get(el.symbol+el2.symbol,0.58)
def prec(self): # /* mass rvdw evdw nbonds symbol */ # {0.100, 0.5, 0.130, 1, "X"}, /* 0 Singlet */ evd = evdw.get(self.symbol, 0.3+self.eltnum**2/190.0) lis = self.mass, self.rvdw, evd, self.bonds, self.symbol rec = ' {%7.3f, %5.2f, %6.3f, %d, "%s"}, ' % lis print rec+' //', self.name
self.finalize_product()
self.finalize_product(cancelling = cancelling)
def StateDone(self): ## self.update_from_controls() #k 041017 night - will this help or hurt? since hard to know, not adding it now. # restore normal appearance for mol in self.molcopies: try: del mol._colorfunc mol.changeapp(0) except: pass self.finalize_product() # ... and emit status message about it return None
def finalize_product(self): "if requested, make bonds and/or join units into one part" desc = " (N = %d)" % self.ncopies self.final_msg_accum = "%s making %s%s: " % (self.msg_modename.split()[0], self.product_type, desc) msg0 = "leaving mode, finalizing product..." self.status_msg(self.final_msg_accum + msg0) prin...
def finalize_product(self, cancelling = 0): "if requested, make bonds and/or join units into one part; cancelling = 1 means just do cleanup, use diff msgs" if not cancelling: desc = " (N = %d)" % self.ncopies self.final_msg_accum = "%s making %s%s: " % (self.msg_modename.split()[0], self.product_type, desc) msg0 = "l...
def StateDone(self): ## self.update_from_controls() #k 041017 night - will this help or hurt? since hard to know, not adding it now. # restore normal appearance for mol in self.molcopies: try: del mol._colorfunc mol.changeapp(0) except: pass self.finalize_product() # ... and emit status message about it return None
if self.product_type == "closed ring":
if self.product_type == "closed ring" and not cancelling:
def finalize_product(self): "if requested, make bonds and/or join units into one part" desc = " (N = %d)" % self.ncopies #e later, also include circle_n if different and matters; and more for other product_types ##self.final_msg_accum = "extrude done: " self.final_msg_accum = "%s making %s%s: " % (self.msg_modename....
if not self.product_type == "closed ring": for s1,s2 in self.broken_externs:
if not self.product_type == "closed ring": for s1,s2 in self.broken_externs: try:
def finalize_product(self): "if requested, make bonds and/or join units into one part" desc = " (N = %d)" % self.ncopies #e later, also include circle_n if different and matters; and more for other product_types ##self.final_msg_accum = "extrude done: " self.final_msg_accum = "%s making %s%s: " % (self.msg_modename....
if self.whendone_all_one_part:
except: print_compact_traceback("error fixing some broken bond, ignored: ") if self.whendone_all_one_part and not cancelling:
def finalize_product(self): "if requested, make bonds and/or join units into one part" desc = " (N = %d)" % self.ncopies #e later, also include circle_n if different and matters; and more for other product_types ##self.final_msg_accum = "extrude done: " self.final_msg_accum = "%s making %s%s: " % (self.msg_modename....
self.status_msg(self.final_msg_accum)
if not cancelling: self.status_msg(self.final_msg_accum)
def finalize_product(self): "if requested, make bonds and/or join units into one part" desc = " (N = %d)" % self.ncopies #e later, also include circle_n if different and matters; and more for other product_types ##self.final_msg_accum = "extrude done: " self.final_msg_accum = "%s making %s%s: " % (self.msg_modename....
return self.StateDone()
return self._stateDoneOrCancel( cancelling = 1)
def StateCancel(self): self.w.extrudeSpinBox_n.setValue(1) self.update_from_controls() return self.StateDone() # closest we can come to cancelling
textLabel5_font = QFont(self.textLabel5.font()) textLabel5_font.setPointSize(9) self.textLabel5.setFont(textLabel5_font)
def __init__(self,parent = None,name = None,modal = 0,fl = 0): QDialog.__init__(self,parent,name,modal,fl)
textLabel2_font = QFont(self.textLabel2.font()) textLabel2_font.setPointSize(9) self.textLabel2.setFont(textLabel2_font)
def __init__(self,parent = None,name = None,modal = 0,fl = 0): QDialog.__init__(self,parent,name,modal,fl)
textLabel3_font = QFont(self.textLabel3.font()) textLabel3_font.setPointSize(9) self.textLabel3.setFont(textLabel3_font)
def __init__(self,parent = None,name = None,modal = 0,fl = 0): QDialog.__init__(self,parent,name,modal,fl)
textLabel2_2_font = QFont(self.textLabel2_2.font()) textLabel2_2_font.setPointSize(9) self.textLabel2_2.setFont(textLabel2_2_font)
def __init__(self,parent = None,name = None,modal = 0,fl = 0): QDialog.__init__(self,parent,name,modal,fl)
textLabel3_2_font = QFont(self.textLabel3_2.font()) textLabel3_2_font.setPointSize(9) self.textLabel3_2.setFont(textLabel3_2_font)
def __init__(self,parent = None,name = None,modal = 0,fl = 0): QDialog.__init__(self,parent,name,modal,fl)
launch_job_btn_font = QFont(self.launch_job_btn.font()) launch_job_btn_font.setPointSize(9) self.launch_job_btn.setFont(launch_job_btn_font)
def __init__(self,parent = None,name = None,modal = 0,fl = 0): QDialog.__init__(self,parent,name,modal,fl)
cancel_btn_font = QFont(self.cancel_btn.font()) cancel_btn_font.setPointSize(9) self.cancel_btn.setFont(cancel_btn_font)
def __init__(self,parent = None,name = None,modal = 0,fl = 0): QDialog.__init__(self,parent,name,modal,fl)
self._previous_changed = self.win.assy.changed()
self._previous_changed = self.win.assy.has_changed()
def _ok_or_preview(self, doneMsg=False): self._previous_changed = self.win.assy.changed() QApplication.setOverrideCursor( QCursor(Qt.WaitCursor) ) self.win.assy.current_command_info(cmdname = self.cmdname) #bruce 060616 try: self._build_struct() if doneMsg: env.history.message(self.cmd + self.done_msg()) except CadBug,...
def __init__(self, parent = None, desc = None, name = None, modal = 0, fl = 0, env = None, is_dialog = True):
def __init__(self, parent = None, desc = None, name = None, modal = 0, fl = 0, env = None, type = "QDialog"):
def __init__(self, parent = None, desc = None, name = None, modal = 0, fl = 0, env = None, is_dialog = True): if env is None: import env # this is a little weird... probably it'll be ok, and logically it seems correct. self.desc = desc
if is_dialog:
if type == "QDialog":
def __init__(self, parent = None, desc = None, name = None, modal = 0, fl = 0, env = None, is_dialog = True): if env is None: import env # this is a little weird... probably it'll be ok, and logically it seems correct. self.desc = desc
QFrame.__init__(self,parent,name)
print "don't know about type == %r" % (type,)
def __init__(self, parent = None, desc = None, name = None, modal = 0, fl = 0, env = None, is_dialog = True): if env is None: import env # this is a little weird... probably it'll be ok, and logically it seems correct. self.desc = desc
parameter_dialog_or_frame.__init__(self, parent, desc, env = env, is_dialog = self.is_dialog)
parameter_dialog_or_frame.__init__(self, parent, desc, env = env, type = self.type)
def __init__(self, parent, description, env = None): """If description is a string, it should be a filename. Or (someday) it could be a ThingData, or (someday) maybe a menu_spec_like python list. This initializes the dialog, a Qt widget (not sure if it will be a widget when we have a "pane" option -- most likely we'll ...
is_dialog = True
type = 'QDialog'
def do_ok_btn(self): print "do_ok_btn: printing then delegating" if 1: print "printing param values" getters = self.param_getters.items() getters.sort() for paramname, getter in getters: try: print "param %s = %r" % (paramname, getter()) except: print_compact_traceback("exception trying to get param %s: " % (paramname,...
is_dialog = False
type = 'QFrame' def accept(self): pass def reject(self): pass pass class ParameterPaneTextEditTest( ParameterDialogBase, QTextEdit): type = 'QTextEdit'
def do_ok_btn(self): print "do_ok_btn: printing then delegating" if 1: print "printing param values" getters = self.param_getters.items() getters.sort() for paramname, getter in getters: try: print "param %s = %r" % (paramname, getter()) except: print_compact_traceback("exception trying to get param %s: " % (paramname,...
parameter_dialog_or_frame.__init__(self, parent, desc, is_dialog = True)
parameter_dialog_or_frame.__init__(self, parent, desc)
def __init__(self, parent = None, desc = None): parameter_dialog_or_frame.__init__(self, parent, desc, is_dialog = True) # sets self.desc (buttons might want to use it)
def setViewZoomToSelection(self, fast = False): '''Change the view so that only selected chunks and Jigs fit in the GLPane.
def setViewZoomToSelection(self, fast = False): '''Change the view so that only selected atoms, chunks and Jigs fit in the GLPane.
def setViewZoomToSelection(self, fast = False): '''Change the view so that only selected chunks and Jigs fit in the GLPane. (i.e. Zoom to the selection) If <fast> is True, then snap to the view ''' #ninad060903: # I am not using bounding box object as used in fit to selection. I am using only self.scale #Not sure if th...
if movables and not self.assy.selatoms_list():
if self.assy.selatoms_list(): for atm in self.assy.selatoms_list(): if atm.display == diINVISIBLE: continue comCenter += atm.posn() comCenter /= len(self.assy.selatoms_list()) if movables:
def setViewZoomToSelection(self, fast = False): '''Change the view so that only selected chunks and Jigs fit in the GLPane. (i.e. Zoom to the selection) If <fast> is True, then snap to the view ''' #ninad060903: # I am not using bounding box object as used in fit to selection. I am using only self.scale #Not sure if th...
comCenter += obj.center comCenter /= numMovables center = comCenter pov = V(-center[0], -center[1], -center[2]) if fast: self.snapToView(self.quat, self.scale, pov, 1.0) else: self.animateToView(self.quat, self.scale, pov, 1.0)
comCenter += obj.center if self.assy.selatoms_list(): comCenter /= (numMovables + 1) else: comCenter /= numMovables
def setViewZoomToSelection(self, fast = False): '''Change the view so that only selected chunks and Jigs fit in the GLPane. (i.e. Zoom to the selection) If <fast> is True, then snap to the view ''' #ninad060903: # I am not using bounding box object as used in fit to selection. I am using only self.scale #Not sure if th...
env.history.message(orangemsg( " Zoom To Selection: No visible chunks or movable jigs selected"\ " [Acceptable Jigs: Motors, Grid Plane and ESP Image]")) """ selectedChunksAndJigs = self.assy.getSelectedChunksAndJigs() numSelectedObjects = len(selectedChunksAndJigs) if numSelectedObjects and not self.assy.selatoms_...
if not self.assy.selatoms_list(): env.history.message(orangemsg( " Zoom To Selection: No visible atoms , chunks or movable jigs selected"\ " [Acceptable Jigs: Motors, Grid Plane and ESP Image]")) return center = comCenter pov = V(-center[0], -center[1], -center[2]) if fast: self.snapToView(self.quat, self.scale, pov, ...
def setViewZoomToSelection(self, fast = False): '''Change the view so that only selected chunks and Jigs fit in the GLPane. (i.e. Zoom to the selection) If <fast> is True, then snap to the view ''' #ninad060903: # I am not using bounding box object as used in fit to selection. I am using only self.scale #Not sure if th...
povray_bin, povray_exe = os.path.split(env.prefs[povray_path_prefs_key]) povray_dir, bin = os.path.split(povray_bin) povray_libpath = os.path.normpath(os.path.join(povray_dir, "include"))
if sys.platform == 'win32': povray_bin, povray_exe = os.path.split(env.prefs[povray_path_prefs_key]) povray_dir, bin = os.path.split(povray_bin) povray_libpath = os.path.normpath(os.path.join(povray_dir, "include")) else: povray_bin = env.prefs[povray_path_prefs_key].split(os.path.sep) if povray_bin[-2] == 'bin' and po...
def write_povray_ini_file(povray_ini_fname, povrayscene_file, width, height, output_type='png'): '''Write <povray_ini> file. The output image is placed next to the <povrayscene_file> file with the extension based on <output_type>. <width>, <height> are the width and height of the rendered image. (int) <output_type> is ...
if fn[-3:] == "mmp":
if not ext: ext = ".mmp" if ext == ".mmp":
def fileSaveAs(self): if self.assy: if self.assy.filename: dir, fil, ext = fileparse(self.assy.filename) else: dir, fil = "./", self.assy.name
self.assy.filename = fn writemmp(self.assy, fn)
self.assy.filename = fn + ".mmp" writemmp(self.assy, self.assy.filename)
def fileSaveAs(self): if self.assy: if self.assy.filename: dir, fil, ext = fileparse(self.assy.filename) else: dir, fil = "./", self.assy.name
print "MMP saved: filename = ", self.assy.filename if fn[-3:] == "pdb":
print "MMP saved: ", self.assy.filename self.msgbarLabel.setText( "MMP saved: " + self.assy.filename ) if ext == ".pdb":
def fileSaveAs(self): if self.assy: if self.assy.filename: dir, fil, ext = fileparse(self.assy.filename) else: dir, fil = "./", self.assy.name
if fn[-3:] == "pov":
if ext == ".pov":
def fileSaveAs(self): if self.assy: if self.assy.filename: dir, fil, ext = fileparse(self.assy.filename) else: dir, fil = "./", self.assy.name
if len(self.o.assy.selmols) == 1: self.init_selected_chunk() else: self.unpick_selected_chunk()
def init_gui(self): self.o.setCursor(self.w.MoveSelectCursor) # load default cursor for MODIFY mode self.w.toolsFuseChunksAction.setOn(1) # toggle on the Fuse Chunks icon self.w.fuseChunksDashboard.show() # show the Fuse Chunks dashboard self.w.connect(self.w.makeBondsPB,SIGNAL("clicked()"),self.make_bonds) self.w.conn...
if self.selected_chunk:
if self.o.assy.selmols:
def tolerance_changed(self, val): self.tol = val * .01 if self.selected_chunk: self.find_bondable_pairs() # This will update the slider tolerance label self.o.gl_update() else: # Since no chunk is select, there are no bonds, but the slider tolerance label still needs updating. # This fixed bug 502-14. Mark 050407 tol...
def EndPick(self, event, selSense): """Pick if click """ if not self.picking: return self.picking = False if self.dragdist<7: if selSense == 0: self.o.assy.unpick_at_event(event) else: self.o.assy.onlypick_at_event(event) if self.o.assy.selmols: self.init_selected_chunk() else: self.unpick_selected_chunk() self.w.w...
def Draw(self): self.bondable_pairs = []
def EndPick(self, event, selSense): """Pick if click """ if not self.picking: return self.picking = False
self.o.assy.unpickparts() self.selected_chunk = None tol_str = fusechunks_lambda_tol_nbonds(self.tol, 0) self.w.toleranceLB.setText(tol_str) def Draw(self): if len(self.o.assy.selmols) == 1: self.init_selected_chunk() else: self.unpick_selected_chunk() if self.selected_chunk:
if self.o.assy.selmols:
def unpick_selected_chunk(self): '''Resets everything when the selected chunk is unselected, or when the number of selected chunks != 1 when entering mode. ''' self.bondable_pairs = [] self.ways_of_bonding = {} self.o.assy.unpickparts() self.selected_chunk = None #There are no bonds, update the slider tolerance label....
self.selected_chunk_ctr = self.selected_chunk.bbox.center() for mol in self.o.assy.molecules: if self.selected_chunk == mol: continue if mol.hidden: continue mol_ctr = mol.bbox.center() mol_rad = mol.bbox.scale()* self.rfactor if vlen (mol_ctr - self.selected_chunk_ctr) > mol_rad + self.selected_chunk_rad + self.to...
for chunk in self.o.assy.selmols: chunk_ctr = chunk.bbox.center() chunk_rad = chunk.bbox.scale() * self.rfactor for mol in self.o.assy.molecules: if chunk == mol: continue if mol.hidden: continue if mol in self.o.assy.selmols: continue mol_ctr = mol.bbox.center() mol_rad = mol.bbox.scale()* self.rfactor if vl...
def find_bondable_pairs(self): '''Checks the open bonds of the selected chunk to see if they are close enough to bond with any other open bonds in the part. Hidden chunks are skipped. ''' self.bondable_pairs = [] self.ways_of_bonding = {} # Get center of the selected chunk. self.selected_chunk_ctr = self.selected_chu...
if a2.molecule != self.selected_chunk:
if a2.molecule != a1.molecule:
def make_bonds(self): "Make bonds between all bondable pairs of singlets" self.bondable_pairs_atoms = [] self.merged_chunks = [] not_bonded = 0 # Bondable pairs not bonded counter
self.selected_chunk.merge(a2.molecule)
a1.molecule.merge(a2.molecule)
def make_bonds(self): "Make bonds between all bondable pairs of singlets" self.bondable_pairs_atoms = [] self.merged_chunks = [] not_bonded = 0 # Bondable pairs not bonded counter
endrms_str = double_fixup(self.endrms_validator, self.endrms_linedit.text(), self.endrms) self.endrms_linedit.setText(endrms_str) if endrms_str: env.prefs[endRMS_prefs_key] = float(str(endrms_str)) else: env.prefs[endRMS_prefs_key] = -1.0 self.endrms = endrms_str
try: endrms_str = double_fixup(self.endrms_validator, self.endrms_linedit.text(), self.endrms) self.endrms_linedit.setText(endrms_str) if endrms_str: env.prefs[endRMS_prefs_key] = float(str(endrms_str)) else: env.prefs[endRMS_prefs_key] = -1.0 self.endrms = endrms_str except: print_compact_traceback("bug in change_endr...
def change_endrms(self, text): '''Slot for EndRMS. This gets called each time a user types anything into the widget. ''' endrms_str = double_fixup(self.endrms_validator, self.endrms_linedit.text(), self.endrms) self.endrms_linedit.setText(endrms_str) if endrms_str: env.prefs[endRMS_prefs_key] = float(str(endrms_str)) e...
endmax_str = double_fixup(self.endmax_validator, self.endmax_linedit.text(), self.endmax) self.endmax_linedit.setText(endmax_str) if endmax_str: env.prefs[endMax_prefs_key] = float(str(endmax_str)) else: env.prefs[endMax_prefs_key] = -1.0 self.endmax = endmax_str
try: endmax_str = double_fixup(self.endmax_validator, self.endmax_linedit.text(), self.endmax) self.endmax_linedit.setText(endmax_str) if endmax_str: env.prefs[endMax_prefs_key] = float(str(endmax_str)) else: env.prefs[endMax_prefs_key] = -1.0 self.endmax = endmax_str except: print_compact_traceback("bug in change_endm...
def change_endmax(self, text): '''Slot for EndMax. This gets called each time a user types anything into the widget. ''' endmax_str = double_fixup(self.endmax_validator, self.endmax_linedit.text(), self.endmax) self.endmax_linedit.setText(endmax_str) if endmax_str: env.prefs[endMax_prefs_key] = float(str(endmax_str)) e...
cutoverrms_str = double_fixup(self.cutoverrms_validator, self.cutoverrms_linedit.text(), self.cutoverrms) self.cutoverrms_linedit.setText(cutoverrms_str) if cutoverrms_str: env.prefs[cutoverRMS_prefs_key] = float(str(cutoverrms_str)) else: env.prefs[cutoverRMS_prefs_key] = -1.0 self.cutoverrms = cutoverrms_str
try: cutoverrms_str = double_fixup(self.cutoverrms_validator, self.cutoverrms_linedit.text(), self.cutoverrms) self.cutoverrms_linedit.setText(cutoverrms_str) if cutoverrms_str: env.prefs[cutoverRMS_prefs_key] = float(str(cutoverrms_str)) else: env.prefs[cutoverRMS_prefs_key] = -1.0 self.cutoverrms = cutoverrms_str exc...
def change_cutoverrms(self, text): '''Slot for Cutover RMS. This gets called each time a user types anything into the widget. ''' cutoverrms_str = double_fixup(self.cutoverrms_validator, self.cutoverrms_linedit.text(), self.cutoverrms) self.cutoverrms_linedit.setText(cutoverrms_str) if cutoverrms_str: env.prefs[cutover...
cutovermax_str = double_fixup(self.cutovermax_validator, self.cutovermax_linedit.text(), self.cutovermax) self.cutovermax_linedit.setText(cutovermax_str) if cutovermax_str: env.prefs[cutoverMax_prefs_key] = float(str(cutovermax_str)) else: env.prefs[cutoverMax_prefs_key] = -1.0 self.cutovermax = cutovermax_str
try: cutovermax_str = double_fixup(self.cutovermax_validator, self.cutovermax_linedit.text(), self.cutovermax) self.cutovermax_linedit.setText(cutovermax_str) if cutovermax_str: env.prefs[cutoverMax_prefs_key] = float(str(cutovermax_str)) else: env.prefs[cutoverMax_prefs_key] = -1.0 self.cutovermax = cutovermax_str exc...
def change_cutovermax(self, text): '''Slot for Cutover Max. This gets called each time a user types anything into the widget. ''' cutovermax_str = double_fixup(self.cutovermax_validator, self.cutovermax_linedit.text(), self.cutovermax) self.cutovermax_linedit.setText(cutovermax_str) if cutovermax_str: env.prefs[cutover...
except:
except KeyError:
def change_high_order_bond_display(self, val): #bruce 050806 filled this in "Slot for the button group that sets the high order bond display." # ('pi_bond_style', ['multicyl','vane','ribbon'], pibondStyle_prefs_key, 'multicyl' ), try: symbol = {0:'multicyl', 1:'vane', 2:'ribbon'}[val] # note: this decoding must u...
if pagename != 'General': self._setup_general_page() if pagename == 'General': self._setup_general_page() elif pagename == 'Atoms': self._setup_atoms_page() elif pagename == 'Bonds': self._setup_bonds_page() elif pagename == 'Modes': self._setup_modes_page() elif pagename == 'Lighting': self._setup_lighting_page() el...
try: if pagename != 'General': self._setup_general_page() if pagename == 'General': self._setup_general_page() elif pagename == 'Atoms': self._setup_atoms_page() elif pagename == 'Bonds': self._setup_bonds_page() elif pagename == 'Modes': self._setup_modes_page() elif pagename == 'Lighting': self._setup_lighting_page...
def setup_current_page(self, pagename): #bruce 050817 fix new A6 bug introduced by Mark's fix of bug 894 # (which was: lack of showing general page could reset gamess path to ""): # always call self._setup_general_page regardless of argument, # as well as the page named in the argument. if pagename != 'General': self._...
"Reorients the model so that it is viewed from the front."\
"Orients the view to the Front View."\
def createWhatsThis(self): ############################################## # File Toolbar ############################################## #### Open File #### fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)</b></p><br> "\ "<p><img source=\"fileopen\"><br> "\ "Opens a new file."\ "</p>" QMimeSourceFactory.default...
"Reorients the model so that it is viewed from the back."\
"Orients the view to the Back View."\
def createWhatsThis(self): ############################################## # File Toolbar ############################################## #### Open File #### fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)</b></p><br> "\ "<p><img source=\"fileopen\"><br> "\ "Opens a new file."\ "</p>" QMimeSourceFactory.default...