当前位置: 首页>>代码示例>>Python>>正文


Python Jig.__init__方法代码示例

本文整理汇总了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)
开发者ID:,项目名称:,代码行数:10,代码来源:

示例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
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:14,代码来源:jigs_motors.py

示例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)        
开发者ID:pmetzger,项目名称:nanoengineer,代码行数:14,代码来源:jigs_planes.py

示例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]
开发者ID:elfion,项目名称:nanoengineer,代码行数:15,代码来源:jig_Gamess.py

示例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
开发者ID:alaindomissy,项目名称:nanoengineer,代码行数:15,代码来源:ReferenceGeometry.py

示例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
开发者ID:ematvey,项目名称:NanoEngineer-1,代码行数:21,代码来源:ChainAtomMarker.py


注:本文中的model.jigs.Jig.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。