phystricks
Public Member Functions | Public Attributes | Private Member Functions | List of all members
phystricks.src.BoundingBox.BoundingBox_class Class Reference
Inheritance diagram for phystricks.src.BoundingBox.BoundingBox_class:
Inheritance graph
[legend]
Collaboration diagram for phystricks.src.BoundingBox.BoundingBox_class:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, P1=None, P2=None, xmin=1000, xmax=-1000, ymin=1000, ymax=-1000, parent=None, mother=None, is_math=False)
 
def add_object (self, obj, pspict=None, fun="bounding_box", check_too_large=True)
 
def add_math_object (self, obj, pspict=None, check_too_large=True)
 
def check_too_large (self, pspict=None)
 
def getEdge (self, pos)
 
def getVertex (self, pos)
 
def N (self)
 
def S (self)
 
def coordinates (self, pspict=None)
 
def xsize (self)
 
def ysize (self)
 
def extraX_left (self, l)
 
def extraX_right (self, l)
 
def extraX (self, l)
 
def addX (self, x)
 
def addY (self, y)
 
def AddBB (self, bb)
 
def append (self, graph, pspict=None)
 
def add_math_graph (self, graphe, pspict=None)
 
def AddAxes (self, axes)
 
def latex_code (self, language=None, pspict=None)
 
def conclude (self, pspict)
 
def action_on_pspict (self, pspict=None)
 
def bounding_box (self, pspict=None)
 
def math_bounding_box (self, pspict=None)
 
def copy (self)
 
def __str__ (self)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 
def __contains__ (self, P)
 

Public Attributes

 xmin
 
 xmax
 
 ymin
 
 ymax
 
 mother
 
 is_math
 
 take_math_BB
 
 take_BB
 

Private Member Functions

def _draw_added_objects (self, pspict)
 

Constructor & Destructor Documentation

def phystricks.src.BoundingBox.BoundingBox_class.__init__ (   self,
  P1 = None,
  P2 = None,
  xmin = 1000,
  xmax = -1000,
  ymin = 1000,
  ymax = -1000,
  parent = None,
  mother = None,
  is_math = False 
)

Member Function Documentation

def phystricks.src.BoundingBox.BoundingBox_class.__contains__ (   self,
  P 
)
Return True if the point P belongs to self and False otherwise.

Allow to write
if P in bb :
    do_something 

from http://www.rafekettler.com/magicmethods.html
def phystricks.src.BoundingBox.BoundingBox_class.__eq__ (   self,
  other 
)
def phystricks.src.BoundingBox.BoundingBox_class.__ne__ (   self,
  other 
)
def phystricks.src.BoundingBox.BoundingBox_class.__str__ (   self)
def phystricks.src.BoundingBox.BoundingBox_class._draw_added_objects (   self,
  pspict 
)
private
def phystricks.src.BoundingBox.BoundingBox_class.action_on_pspict (   self,
  pspict = None 
)
def phystricks.src.BoundingBox.BoundingBox_class.add_math_graph (   self,
  graphe,
  pspict = None 
)
def phystricks.src.BoundingBox.BoundingBox_class.add_math_object (   self,
  obj,
  pspict = None,
  check_too_large = True 
)
def phystricks.src.BoundingBox.BoundingBox_class.add_object (   self,
  obj,
  pspict = None,
  fun = "bounding_box",
  check_too_large = True 
)
def phystricks.src.BoundingBox.BoundingBox_class.AddAxes (   self,
  axes 
)
def phystricks.src.BoundingBox.BoundingBox_class.AddBB (   self,
  bb 
)
def phystricks.src.BoundingBox.BoundingBox_class.addX (   self,
  x 
)
def phystricks.src.BoundingBox.BoundingBox_class.addY (   self,
  y 
)
def phystricks.src.BoundingBox.BoundingBox_class.append (   self,
  graph,
  pspict = None 
)
def phystricks.src.BoundingBox.BoundingBox_class.bounding_box (   self,
  pspict = None 
)
def phystricks.src.BoundingBox.BoundingBox_class.check_too_large (   self,
  pspict = None 
)
Raise a ValueError if the bounding box is too large.
def phystricks.src.BoundingBox.BoundingBox_class.conclude (   self,
  pspict 
)
def phystricks.src.BoundingBox.BoundingBox_class.coordinates (   self,
  pspict = None 
)
def phystricks.src.BoundingBox.BoundingBox_class.copy (   self)
def phystricks.src.BoundingBox.BoundingBox_class.extraX (   self,
  l 
)
Enlarge the bounding box of a length l on both sides
def phystricks.src.BoundingBox.BoundingBox_class.extraX_left (   self,
  l 
)
Enlarge the bounding box of a length l on the left
def phystricks.src.BoundingBox.BoundingBox_class.extraX_right (   self,
  l 
)
Enlarge the bounding box of a length l on the right
def phystricks.src.BoundingBox.BoundingBox_class.getEdge (   self,
  pos 
)
def phystricks.src.BoundingBox.BoundingBox_class.getVertex (   self,
  pos 
)
def phystricks.src.BoundingBox.BoundingBox_class.latex_code (   self,
  language = None,
  pspict = None 
)
def phystricks.src.BoundingBox.BoundingBox_class.math_bounding_box (   self,
  pspict = None 
)
def phystricks.src.BoundingBox.BoundingBox_class.N (   self)
def phystricks.src.BoundingBox.BoundingBox_class.S (   self)
def phystricks.src.BoundingBox.BoundingBox_class.xsize (   self)
def phystricks.src.BoundingBox.BoundingBox_class.ysize (   self)

Member Data Documentation

phystricks.src.BoundingBox.BoundingBox_class.is_math
phystricks.src.BoundingBox.BoundingBox_class.mother
phystricks.src.BoundingBox.BoundingBox_class.take_BB
phystricks.src.BoundingBox.BoundingBox_class.take_math_BB
phystricks.src.BoundingBox.BoundingBox_class.xmax
phystricks.src.BoundingBox.BoundingBox_class.xmin
phystricks.src.BoundingBox.BoundingBox_class.ymax
phystricks.src.BoundingBox.BoundingBox_class.ymin

The documentation for this class was generated from the following file: