LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | List of all members
lsst.gdb.afw.printers.GdbOptionParser.ImagePrinter Class Reference
Inheritance diagram for lsst.gdb.afw.printers.GdbOptionParser.ImagePrinter:
lsst.gdb.afw.printers.GdbOptionParser.ExposurePrinter lsst.gdb.afw.printers.GdbOptionParser.MaskedImagePrinter

Public Member Functions

def dimenStr
 
def typeName
 
def __init__
 
def to_string
 

Public Attributes

 typename
 
 val
 

Detailed Description

Definition at line 509 of file printers.py.

Constructor & Destructor Documentation

def lsst.gdb.afw.printers.GdbOptionParser.ImagePrinter.__init__ (   self,
  val 
)

Member Function Documentation

def lsst.gdb.afw.printers.GdbOptionParser.ImagePrinter.dimenStr (   self,
  val = None 
)

Definition at line 512 of file printers.py.

513  def dimenStr(self, val=None):
514  if val is None:
515  val = self.val
516 
517  # Make sure &foo works, too.
518  type = val.type
519  if type.code == gdb.TYPE_CODE_REF:
520  type = type.target()
521 
522  gilView = val["_gilView"]
523  arr = val["_origin"]["_vector"]["m_storage"]["m_data"]["array"]
524 
525  x0, y0 = arr[0], arr[1]
526  return "%dx%d%s%d%s%d" % (
527  #val["getWidth"](), val["getHeight"](),
528  gilView["_dimensions"]["x"], gilView["_dimensions"]["y"],
529  ["", "+"][x0 >= 0], x0, # i.e. "+" if x0 >= 0 else "" in python >= 2.5
530  ["", "+"][y0 >= 0], y0)
def lsst.gdb.afw.printers.GdbOptionParser.ImagePrinter.to_string (   self)

Definition at line 538 of file printers.py.

539  def to_string(self):
540  return "%s(%s)" % (self.typeName(), self.dimenStr())
class MaskedImagePrinter(ImagePrinter):
def lsst.gdb.afw.printers.GdbOptionParser.ImagePrinter.typeName (   self)

Definition at line 531 of file printers.py.

532  def typeName(self):
533  return self.typename.split(":")[-1]

Member Data Documentation

lsst.gdb.afw.printers.GdbOptionParser.ImagePrinter.typename

Definition at line 535 of file printers.py.

lsst.gdb.afw.printers.GdbOptionParser.ImagePrinter.val

Definition at line 536 of file printers.py.


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