Package peppy :: Package hsi :: Module hsi_major_mode :: Class CubeView
[frames] | no frames]

Class CubeView

      object --+    
               |    
debug.debugmixin --+
                   |
                  CubeView
Known Subclasses:

Wrapper around a Cube object that provides a bitmap view.

This class wraps a cube object and provides the interface needed by the bitmap viewing code to generate the appropriate bitmaps to view the selected bands in the cube.

Instance Methods
 
__init__(self, cube, display_rgb=True)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
setCube(self, cube)
 
initBitmap(self, cube, width=None, height=None)
 
initDisplayIndexes(self)
 
loadBands(self, progress=None)
 
getHorizontalProfiles(self, y)
Get the horizontal profiles at the given height
 
getVerticalProfiles(self, x)
Get the vertical profiles at the given width
 
getDepthXAxisLabel(self)
 
getDepthXAxisExtrema(self)
 
getDepthXAxis(self)
 
getDepthProfile(self, x, y)
Get the profile into the monitor at the given x,y position
 
nextIndex(self)
 
prevIndex(self)
 
gotoIndex(self, band)
 
setIndexes(self, newbands)
 
show(self, prefilter, colorfilter, progress=None)
 
saveImage(self, name)
 
copyImageToClipboard(self)
 
getCoords(self, x, y)
Convert the coordinates from the display x, y to sample, line, band.

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Methods

Inherited from debug.debugmixin: dprint

Class Variables
  name = 'Image View'
  xProfileXAxisLabel = 'sample'
  yProfileXAxisLabel = 'line'

Inherited from debug.debugmixin: debuglevel

Properties

Inherited from object: __class__

Method Details

__init__(self, cube, display_rgb=True)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

getCoords(self, x, y)

 

Convert the coordinates from the display x, y to sample, line, band.

In the standard cube view, x is samples, y is lines, and the band is the first band in the indexes list.