def __init__(self, matrix=None, nrows=None, ncols=None, **keywords):
     disfunc = pdis.drawColorMatrix
     DrawObject.__init__(self, disfunc, **keywords)
     self.setdata( 
         matrix = matrix,
         nrows = nrows,
         ncols = ncols,
     )
 def configure(self):
     DrawObject.configure(self)
     pdis.setContourLabels(self.labeltype, self.labeldigits)
     pdis.setContourLabelDistance(self.labeldistance)
     pdis.setContourLabelColor(self.labelcolor)
     pdis.setContourLabelString(self.labelstring)
     pdis.setContourLabelGap(self.labelgap)
     pdis.setLineStyle(self.linestyle)
     pdis.setLineWidth(self.linewidth)
 def set_defaults(self):
     DrawObject.set_defaults(self)
     self.setoptions( 
         labelcolor = -1,
         labeldigits = 1,
         labeldistance = 500,
         labelgap = 0.5,
         labelstring = '',
         labeltype = 'none',
         linestyle = 'solid',
         linewidth = 1,
     )
 def configure(self):
     DrawObject.configure(self)
     if not self.hideparts:
         pdis.setNoHiddenLines()
     if self.protected:
         pdis.setProtectSurfaces()
     pdis.setSurfaceVisibility(self.visibility)
     pdis.setSurfaceColors(self.topcolor, self.bottomcolor)
     pdis.setSurfaceShadingMode(self.shadingmode)
     pdis.setSurfaceMeshing(self.mesh, self.shadingon)
     pdis.setSurfaceMeshColor(self.meshcolor)
     if allExist(*self.colorscale):
         pdis.setSurfaceColorScale(self.colorscale[0], self.colorscale[1])
 def set_defaults(self):
     DrawObject.set_defaults(self)
     self.setoptions(
         bottomcolor=-1,
         color="fore",
         colorscale=(None, None),
         hideparts=1,
         mesh="on",
         meshcolor=-1,
         protected=0,
         shadingmode="flat",
         shadingon=1,
         topcolor=-1,
         visibility="both",
     )
 def set_defaults(self):
     DrawObject.set_defaults(self)
     self.setoptions(color="fore", lowerleft=(-1, -1, 0), lowerright=(1, -1, 0), upperright=(1, 1, 0))
 def __init__(self, plot2d, **keywords):
     self.plot2d = plot2d
     disfunc = None
     DrawObject.__init__(self, disfunc, **keywords)
 def set_defaults(self):
     DrawObject.set_defaults(self)
     self.setoptions(color="fore", hres=20, mesh=1, meshcolor=1, vres=20)
 def __init__(self, x, y, z, radius, **keywords):
     disfunc = pdis.drawSphere3D
     DrawObject.__init__(self, disfunc, **keywords)
     self.setdata(x=x, y=y, z=z, radius=radius)
 def __init__(self, xlist=[], ylist=[], zlist=[], **keywords):
     disfunc = pdis.drawCurve3D
     DrawObject.__init__(self, disfunc, **keywords)
     self.setdata(xlist=xlist, ylist=ylist, zlist=zlist)
 def configure(self):
     DrawObject.configure(self)        
     self.args = (self.matrix, self.nrows, self.ncols, self.xinterp, self.yinterp)
 def set_defaults(self):
     DrawObject.set_defaults(self)
     self.setoptions( 
         xinterp = 1,
         yinterp = 1,
     )