Viewport for Isis Chips.  
 More...
#include <ChipViewport.h>
Viewport for Isis Chips. 
- Author
 - 2007-05-01 Tracie Sucharski 
 
 
◆ ChipViewport()
      
        
          | Isis::ChipViewport::ChipViewport  | 
          ( | 
          int |           width,  | 
        
        
           | 
           | 
          int |           height,  | 
        
        
           | 
           | 
          QWidget * |           parent = 0 ) | 
        
      
 
Construct an empty viewport. 
- Parameters
 - 
  
    | width | The width of the viewport  | 
    | height | The height of the viewport  | 
    | parent | The parent widget  | 
  
   
Referenced by loadView().
 
 
◆ ~ChipViewport()
  
  
      
        
          | Isis::ChipViewport::~ChipViewport  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ autoStretch
  
  
      
        
          | void Isis::ChipViewport::autoStretch  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ changeStretchLock
  
  
      
        
          | void Isis::ChipViewport::changeStretchLock  | 
          ( | 
          int |           newStatus | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Locks or unlocks the stretch on the chip viewport during transformations (zoom, pan, etc.) 
- Parameters
 - 
  
    | newStatus | Non-zero locks the stretch  | 
  
   
 
 
◆ chip()
  
  
      
        
          | Chip * Isis::ChipViewport::chip  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ chipCube()
  
  
      
        
          | Cube * Isis::ChipViewport::chipCube  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ chipLines()
  
  
      
        
          | int Isis::ChipViewport::chipLines  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Return the number of lines in the chip. 
 
 
◆ chipSamples()
  
  
      
        
          | int Isis::ChipViewport::chipSamples  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Return the number of samples in the chip. 
 
 
◆ cubeToViewport()
      
        
          | bool Isis::ChipViewport::cubeToViewport  | 
          ( | 
          double |           samp,  | 
        
        
           | 
           | 
          double |           line,  | 
        
        
           | 
           | 
          int & |           x,  | 
        
        
           | 
           | 
          int & |           y ) | 
        
      
 
Get viewport x and y from cube sample and line. 
- Parameters
 - 
  
    | samp | Sample in cube  | 
    | line | Line in cube  | 
    | x | Calcualated viewport x coordinate  | 
    | y | Calcualated viewport y coordinate | 
  
   
- Returns
 - bool true if the point is contained in the viewport, false otherwise 
 
Referenced by paintEvent().
 
 
◆ enterEvent()
  
  
      
        
          | void Isis::ChipViewport::enterEvent  | 
          ( | 
          QEvent * |           e | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
If mouse enters, make sure key events are processed w/o clicking. 
- Parameters
 - 
  
  
 
 
 
◆ geomChip
  
  
      
        
          | void Isis::ChipViewport::geomChip  | 
          ( | 
          Chip * |           matchChip,  | 
         
        
           | 
           | 
          Cube * |           matchChipCube ) | 
         
       
   | 
  
slot   | 
  
 
Slot to geom chip (apply geometry transformation) 
- Parameters
 - 
  
    | matchChip | The matching chip for the geometry  | 
    | matchChipCube | The matching chip's cube for the geometry  | 
  
   
References autoStretch(), and Isis::IException::toString().
 
 
◆ grayBand()
  
  
      
        
          | int Isis::ChipViewport::grayBand  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Return the gray band currently viewed. 
 
 
◆ grayStretch()
  
  
      
        
          | Stretch Isis::ChipViewport::grayStretch  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Draw X on point. 
Return the gray band stretch 
 
 
◆ keyPressEvent()
  
  
      
        
          | void Isis::ChipViewport::keyPressEvent  | 
          ( | 
          QKeyEvent * |           e | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ loadView()
◆ mousePressEvent()
  
  
      
        
          | void Isis::ChipViewport::mousePressEvent  | 
          ( | 
          QMouseEvent * |           event | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ nogeomChip
  
  
      
        
          | void Isis::ChipViewport::nogeomChip  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ paintEvent()
  
  
      
        
          | void Isis::ChipViewport::paintEvent  | 
          ( | 
          QPaintEvent * |           e | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ panDown
  
  
      
        
          | void Isis::ChipViewport::panDown  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ panLeft
  
  
      
        
          | void Isis::ChipViewport::panLeft  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ panRight
  
  
      
        
          | void Isis::ChipViewport::panRight  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ panUp
  
  
      
        
          | void Isis::ChipViewport::panUp  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ refreshView
  
  
      
        
          | void Isis::ChipViewport::refreshView  | 
          ( | 
          double |           tackSample,  | 
         
        
           | 
           | 
          double |           tackLine ) | 
         
       
   | 
  
slot   | 
  
 
Slot to refresh viewport when the tack point has changed. 
- Parameters
 - 
  
    | tackSample | Sample on the cube to load the chip viewport at (center)  | 
    | tackLine | Line on the cube to load the chip viewport at (center)  | 
  
   
References tackLine(), and tackSample().
 
 
◆ rotateChip
  
  
      
        
          | void Isis::ChipViewport::rotateChip  | 
          ( | 
          int |           rotation | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ setChip()
      
        
          | void Isis::ChipViewport::setChip  | 
          ( | 
          Chip * |           chip,  | 
        
        
           | 
           | 
          Cube * |           chipCube ) | 
        
      
 
 
◆ setCircle
  
  
      
        
          | void Isis::ChipViewport::setCircle  | 
          ( | 
          bool |           checked | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Slot to change state of circle. 
- Parameters
 - 
  
    | checked | Circle set to be drawn if true  | 
  
   
 
 
◆ setCircleSize
  
  
      
        
          | void Isis::ChipViewport::setCircleSize  | 
          ( | 
          int |           size | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Set the size of the circle. 
- Parameters
 - 
  
    | size | The size of the circle  | 
  
   
 
 
◆ setControlNet
  
  
      
        
          | void Isis::ChipViewport::setControlNet  | 
          ( | 
          ControlNet * |           newControlNet | ) | 
           | 
         
       
   | 
  
inlineslot   | 
  
 
 
◆ setCross
  
  
      
        
          | void Isis::ChipViewport::setCross  | 
          ( | 
          bool |           checked | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Slot to change state of crosshair. 
- Parameters
 - 
  
    | checked | Crosshair set to be drawn if true  | 
  
   
 
 
◆ setPoints
  
  
      
        
          | void Isis::ChipViewport::setPoints  | 
          ( | 
          bool |           checked | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ stretchFromCubeViewport
◆ tackLine()
      
        
          | double Isis::ChipViewport::tackLine  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ tackPointChanged
  
  
      
        
          | void Isis::ChipViewport::tackPointChanged  | 
          ( | 
          double |            | ) | 
           | 
         
       
   | 
  
signal   | 
  
 
< Signal sent when tack point changes 
Referenced by setChip().
 
 
◆ tackSample()
      
        
          | double Isis::ChipViewport::tackSample  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ userMovedTackPoint
  
  
      
        
          | void Isis::ChipViewport::userMovedTackPoint  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
signal   | 
  
 
 
◆ zoom
  
  
      
        
          | void Isis::ChipViewport::zoom  | 
          ( | 
          double |           zoomFactor | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Zoom by a specified factor. 
- Parameters
 - 
  
    | zoomFactor | The zoom factor  | 
  
   
References zoomFactor().
 
 
◆ zoom1
  
  
      
        
          | void Isis::ChipViewport::zoom1  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ zoomFactor()
      
        
          | double Isis::ChipViewport::zoomFactor  | 
          ( | 
           | ) | 
           | 
        
      
 
Return the zoom factor. 
Returns the current zoom factor.
- Returns
 - double The current zoom factor 
 
Referenced by userMovedTackPoint(), and zoom().
 
 
◆ zoomIn
  
  
      
        
          | void Isis::ChipViewport::zoomIn  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ zoomOut
  
  
      
        
          | void Isis::ChipViewport::zoomOut  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
The documentation for this class was generated from the following files: