예제 #1
0
 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
0
 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)
예제 #3
0
    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
0
    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
예제 #5
0
    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)        
예제 #6
0
 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
예제 #7
0
 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]
예제 #8
0
 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]
 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
예제 #10
0
 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
예제 #11
0
 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