本文整理汇总了Python中model.jigs.Jig.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Jig.__init__方法的具体用法?Python Jig.__init__怎么用?Python Jig.__init__使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类model.jigs.Jig
的用法示例。
在下文中一共展示了Jig.__init__方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from model.jigs import Jig [as 别名]
# 或者: from model.jigs.Jig import __init__ [as 别名]
def __init__(self, assy, atomlist):
Jig.__init__(self, assy, atomlist)
self.font_name = "Helvetica"
self.font_size = 10.0 # pt size
self.color = black # This is the "draw" color. When selected, this will become highlighted red.
self.normcolor = black # This is the normal (unselected) color.
self.cancelled = True # We will assume the user will cancel
self.handle_offset = V(0.0, 0.0, 0.0)
示例2: __init__
# 需要导入模块: from model.jigs import Jig [as 别名]
# 或者: from model.jigs.Jig import __init__ [as 别名]
def __init__(self, assy, atomlist = []): #bruce 050526 added optional atomlist arg
assert atomlist == [] # whether from default arg value or from caller -- for now
Jig.__init__(self, assy, atomlist)
self.quat = Q(1, 0, 0, 0)
# is self.quat ever set to other values? if not, remove it; if so, add it to mutable_attrs. [bruce 060228 comment]
#The motor is usually drawn as an opaque object. However when it is
#being previewed, it is drawn as a transparent object - Ninad 2007-10-09
self.previewOpacity = 0.4
self.defaultOpacity = 1.0
self.opacity = self.defaultOpacity
示例3: __init__
# 需要导入模块: from model.jigs import Jig [as 别名]
# 或者: from model.jigs.Jig import __init__ [as 别名]
def __init__(self, assy, list, READ_FROM_MMP):
Jig.__init__(self, assy, list)
self.width = 20
self.height = 20
self.assy = assy
self.cancelled = True # We will assume the user will cancel
self.atomPos = []
if not READ_FROM_MMP:
self.__init_quat_center(list)
示例4: __init__
# 需要导入模块: from model.jigs import Jig [as 别名]
# 或者: from model.jigs.Jig import __init__ [as 别名]
def __init__(self, assy, list):
Jig.__init__(self, assy, list)
self.cancelled = False
# set default color of new gamess jig to magenta
self.color = magenta # This is the "draw" color. When selected, this will become highlighted red.
self.normcolor = magenta # This is the normal (unselected) color.
#bruce 050913 thinks self.history is no longer needed:
## self.history = env.history
#self.psets = [] # list of parms set objects [as of circa 050704, only the first of these is ever defined (thinks bruce)]
self.pset = gamessParms('Parameter Set 1')
self.gmsjob = GamessJob(Gamess.job_parms, jig=self)
## bruce 050701 removing this: self.gmsjob.edit()
self.outputfile = '' # Name of jig's most recent output file. [this attr is intentionally not copied -- bruce 050704]
示例5: __init__
# 需要导入模块: from model.jigs import Jig [as 别名]
# 或者: from model.jigs.Jig import __init__ [as 别名]
def __init__(self, win):
self.win = win
#Node.__init__(self, win.assy, gensym("%s" % self.sym, win.assy))
Jig.__init__(self, win.assy, self.atoms) # note: that sets self.glname
self.glpane = self.assy.o
#@@Geometry object with a visible direction arrow
#(at present used in Plane only) This saves the last geometry object
#for which the Direction arrow was drawn
#(that decides the direction of a plane offset to the object)
#The program needs to skip the arrow drawing (which is done inside the
# objects _draw_geometry method) when prop manager is closed or when the
#Offset option is no more requested. -- ninad 20070612
self.offsetParentGeometry = None
示例6: __init__
# 需要导入模块: from model.jigs import Jig [as 别名]
# 或者: from model.jigs.Jig import __init__ [as 别名]
def __init__(self, assy, atomlist):
"""
"""
if len(atomlist) == 2 and atomlist[0] is atomlist[1]:
# let caller pass two atoms the same, but reduce it to one copy
# (compensating in setAtoms)
# (this is to make length-1 wholechains easier) [bruce 080216]
atomlist = atomlist[:1]
self._length_1_chain = True
elif len(atomlist) == 1:
# [bruce 080227 to support mmp read of 1-atom case]
# TODO: print warning unless this is called from mmp read
# (which is the only time it's not an error, AFAIK)
# and mark self invalid unless we verify that marked_atom
# is indeed on a length-1 chain (this might need to be
# done later by dna updater).
self._length_1_chain = True
Jig.__init__(self, assy, atomlist) # calls self.setAtoms
return