Table of Contents

Class: bond bkchem/bond.py

class BOND--------------------------------------------------

Base Classes   
meta_enabled
line_colored
drawable
with_line
interactive
child
Methods   
__get_atom1
__get_atom2
__get_atoms
__get_auto_bond_sign
__get_bond_width
__get_center
__get_dirty
__get_double_length_ratio
__get_molecule
__get_order
__get_parent
__get_simple_double
__get_type
__get_wedge_width
__init__
__set_atom1
__set_atom2
__set_atoms
__set_auto_bond_sign
__set_bond_width
__set_center
__set_dirty
__set_double_length_ratio
__set_molecule
__set_order
__set_simple_double
__set_type
__set_wedge_width
_compute_sign_and_center
_decide_distance_and_center
_draw_a1
_draw_a2
_draw_a3
_draw_adder
_draw_b1
_draw_b2
_draw_b3
_draw_d1
_draw_d2
_draw_d3
_draw_dash
_draw_h1
_draw_h2
_draw_h3
_draw_hatch
_draw_n1
_draw_n2
_draw_n3
_draw_second_line
_draw_w1
_draw_w2
_draw_w3
_draw_wedge
bbox
change_atoms
delete
draw
focus
get_atoms
get_package
lift
move
post_read_analysis
read_package
read_standard_values
redraw
select
simple_redraw
switch_to_order
switch_to_type
toggle_type
transform
unfocus
unselect
  __get_atom1 
__get_atom1 ( self )

atom1

  __get_atom2 
__get_atom2 ( self )

atom2

  __get_atoms 
__get_atoms ( self )

atoms

  __get_auto_bond_sign 
__get_auto_bond_sign ( self )

auto_bond_sign

  __get_bond_width 
__get_bond_width ( self )

bond_width

  __get_center 
__get_center ( self )

center

  __get_dirty 
__get_dirty ( self )

dirty override of drawable.dirty

  __get_double_length_ratio 
__get_double_length_ratio ( self )

double_length_ratio

  __get_molecule 
__get_molecule ( self )

molecule

  __get_order 
__get_order ( self )

order

  __get_parent 
__get_parent ( self )

parent

  __get_simple_double 
__get_simple_double ( self )

simple_double

  __get_type 
__get_type ( self )

type

  __get_wedge_width 
__get_wedge_width ( self )

wedge_width

  __init__ 
__init__ (
        self,
        paper,
        atoms=(),
        package=None,
        molecule=None,
        type='n',
        order=1,
        simple_double=1,
        )

  __set_atom1 
__set_atom1 ( self,  mol )

  __set_atom2 
__set_atom2 ( self,  mol )

  __set_atoms 
__set_atoms ( self,  mol )

  __set_auto_bond_sign 
__set_auto_bond_sign ( self,  mol )

  __set_bond_width 
__set_bond_width ( self,  mol )

  __set_center 
__set_center ( self,  mol )

  __set_dirty 
__set_dirty ( self,  dirty )

  __set_double_length_ratio 
__set_double_length_ratio ( self,  mol )

  __set_molecule 
__set_molecule ( self,  mol )

  __set_order 
__set_order ( self,  mol )

  __set_simple_double 
__set_simple_double ( self,  mol )

  __set_type 
__set_type ( self,  mol )

  __set_wedge_width 
__set_wedge_width ( self,  mol )

  _compute_sign_and_center 
_compute_sign_and_center ( self )

returns tuple of (sign, center) where sign is the default sign of the self.bond_width

  _decide_distance_and_center 
_decide_distance_and_center ( self )

according to molecular geometry decide what bond.center and bond.bond_width should be

  _draw_a1 
_draw_a1 ( self )

  _draw_a2 
_draw_a2 ( self )

  _draw_a3 
_draw_a3 ( self )

  _draw_adder 
_draw_adder ( self,  coords )

returns list items

  _draw_b1 
_draw_b1 ( self )

  _draw_b2 
_draw_b2 ( self )

  _draw_b3 
_draw_b3 ( self )

  _draw_d1 
_draw_d1 ( self )

  _draw_d2 
_draw_d2 ( self )

  _draw_d3 
_draw_d3 ( self )

  _draw_dash 
_draw_dash ( self,  coords )

returns list items

  _draw_h1 
_draw_h1 ( self )

  _draw_h2 
_draw_h2 ( self )

  _draw_h3 
_draw_h3 ( self )

  _draw_hatch 
_draw_hatch ( self,  coords )

returns list items

  _draw_n1 
_draw_n1 ( self )

  _draw_n2 
_draw_n2 ( self )

  _draw_n3 
_draw_n3 ( self )

  _draw_second_line 
_draw_second_line ( self,  coords )

  _draw_w1 
_draw_w1 ( self )

  _draw_w2 
_draw_w2 ( self )

  _draw_w3 
_draw_w3 ( self )

  _draw_wedge 
_draw_wedge ( self,  coords )

returns the polygon item

  bbox 
bbox ( self )

  change_atoms 
change_atoms (
        self,
        a1,
        a2,
        )

used in overlap situations, it replaces reference to atom a1 with reference to atom a2

  delete 
delete ( self )

  draw 
draw ( self,  automatic="both" )

call the appropriate draw method, automatic specifies what to automatically compute - all, sign, none (sign is often needed to retain the look after transformation)

  focus 
focus ( self )

  get_atoms 
get_atoms ( self )

  get_package 
get_package ( self,  doc )

  lift 
lift ( self )

  move 
move (
        self,
        dx,
        dy,
        )

moves object with his selector (when present)

  post_read_analysis 
post_read_analysis ( self )

this method is called by molecule after the whole molecule is read to perform a post-load analysis of double bond positioning

  read_package 
read_package ( self,  package )

  read_standard_values 
read_standard_values ( self,  old_standard=None )

  redraw 
redraw ( self,  recalc_side=0 )

  select 
select ( self )

  simple_redraw 
simple_redraw ( self )

very fast redraw that draws only a simple line instead of the bond, used in 3d rotation only (as for bkchem 0.5.0)

  switch_to_order 
switch_to_order ( self,  order )

  switch_to_type 
switch_to_type ( self,  type )

  toggle_type 
toggle_type (
        self,
        only_shift=0,
        to_type='n',
        to_order=1,
        simple_double=1,
        )

  transform 
transform ( self,  tr )

  unfocus 
unfocus ( self )

  unselect 
unselect ( self )


Table of Contents

This document was automatically generated on Fri Nov 19 12:52:52 2004 by HappyDoc version 2.1