USGS

Isis 3.0 Developer's Reference (API)

Home

Isis::ChipViewport Class Reference

Viewport for Isis Chips. More...

#include <ChipViewport.h>

Inherits QWidget.

List of all members.

Classes

class  BandInfo

Public Slots

void autoStretch ()
 Apply automatic stretch using data from entire chip.
void stretchFromCubeViewport (Stretch *, CubeViewport *)
void changeStretchLock (int)
void setPoints (bool checked)
 Slot to change state of crosshair.
void setCross (bool checked)
void rotateChip (int rotation)
 Slot to rotate chip.
void setCircle (bool checked)
void setCircleSize (int size)
void geomChip (Chip *matchChip, Cube *matchChipCube)
 Slot to geom chip.
void nogeomChip ()
 Slot to geom chip.
void panUp ()
 Pan down.
void panDown ()
 Pan left.
void panLeft ()
 Pan right.
void panRight ()
void zoomIn ()
 Zoom in.
void zoomOut ()
 Zoom out.
void zoom1 ()
 Zoom by a factor of one.
void refreshView (double tackSample, double tackLine)
 If mouse enters, make sure key events are processed w/o clicking.
void setControlNet (ControlNet *newControlNet)
 sets the ControlNet to be used for drawing measure locations

Signals

void tackPointChanged (double)
 < Signal sent when tack point changes
void userMovedTackPoint ()

Public Member Functions

 ChipViewport (int width, int height, QWidget *parent=0)
 Construct an empty viewport.
virtual ~ChipViewport ()
 Destructor.
bool cubeToViewport (double samp, double line, int &x, int &y)
 get viewport x and y from cube sample and line
void setChip (Chip *chip, Cube *chipCube)
 Set chip.
void loadView (ChipViewport &newView)
 Load with another ChipViewport.
Chipchip () const
 Return chip.
int chipSamples () const
 Return the number of samples in the chip.
int chipLines () const
 Return the number of lines in the chip.
int grayBand () const
 Return the gray band currently viewed.
double tackSample ()
 Return the position of cube under cross hair.
double tackLine ()
 returns tack Line
Stretch grayStretch () const
 Draw X on point.

Protected Member Functions

void paintEvent (QPaintEvent *e)
 Repaint the viewport.
void enterEvent (QEvent *e)
 Process arrow keystrokes on cube.
void keyPressEvent (QKeyEvent *e)
void mousePressEvent (QMouseEvent *event)
 Process mouse events.

Detailed Description

Viewport for Isis Chips.

Author:
2007-05-01 Tracie Sucharski

Constructor & Destructor Documentation

Isis::ChipViewport::ChipViewport ( int  width,
int  height,
QWidget parent = 0 
)

Construct an empty viewport.

Isis::ChipViewport::~ChipViewport (  )  [virtual]

Destructor.


Member Function Documentation

void Isis::ChipViewport::autoStretch (  )  [slot]

Apply automatic stretch using data from entire chip.

void Isis::ChipViewport::changeStretchLock ( int  newStatus  )  [slot]
Chip* Isis::ChipViewport::chip (  )  const [inline]

Return chip.

int Isis::ChipViewport::chipLines (  )  const [inline]

Return the number of lines in the chip.

References Isis::Chip::Lines().

int Isis::ChipViewport::chipSamples (  )  const [inline]

Return the number of samples in the chip.

References Isis::Chip::Samples().

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:
True if the point is contained in the viewport, false otherwise
void Isis::ChipViewport::enterEvent ( QEvent *  e  )  [protected]

Process arrow keystrokes on cube.

void Isis::ChipViewport::geomChip ( Chip matchChip,
Cube matchChipCube 
) [slot]

Slot to geom chip.

int Isis::ChipViewport::grayBand (  )  const [inline]

Return the gray band currently viewed.

Stretch Isis::ChipViewport::grayStretch (  )  const [inline]

Draw X on point.

Return the gray band stretch

void Isis::ChipViewport::keyPressEvent ( QKeyEvent *  e  )  [protected]
void Isis::ChipViewport::loadView ( ChipViewport newView  ) 

Load with another ChipViewport.

Load with info from given ChipViewport.

void Isis::ChipViewport::mousePressEvent ( QMouseEvent *  event  )  [protected]

Process mouse events.

Slot to set whether control points are drawn

void Isis::ChipViewport::nogeomChip (  )  [slot]

Slot to geom chip.

void Isis::ChipViewport::paintEvent ( QPaintEvent *  e  )  [protected]

Repaint the viewport.

void Isis::ChipViewport::panDown (  )  [slot]
void Isis::ChipViewport::panLeft (  )  [slot]
void Isis::ChipViewport::panRight (  )  [slot]
void Isis::ChipViewport::panUp (  )  [slot]
void Isis::ChipViewport::refreshView ( double  tackSample,
double  tackLine 
) [slot]

If mouse enters, make sure key events are processed w/o clicking.

void Isis::ChipViewport::rotateChip ( int  rotation  )  [slot]

Slot to rotate chip.

Parameters:
rotation 
void Isis::ChipViewport::setChip ( Chip chip,
Cube chipCube 
)

Set chip.

Set the chip for this ChipViewport.

Author:
Tracie Sucharski
void Isis::ChipViewport::setCircle ( bool  checked  )  [slot]
void Isis::ChipViewport::setCircleSize ( int  size  )  [slot]
void Isis::ChipViewport::setControlNet ( ControlNet newControlNet  )  [inline, slot]

sets the ControlNet to be used for drawing measure locations

Parameters:
newControlNet The new ControlNet to be used
void Isis::ChipViewport::setCross ( bool  checked  )  [slot]
void Isis::ChipViewport::setPoints ( bool  checked  )  [slot]

Slot to change state of crosshair.

void Isis::ChipViewport::stretchFromCubeViewport ( Stretch newStretch,
CubeViewport cvp 
) [slot]
double Isis::ChipViewport::tackLine (  ) 

returns tack Line

Returns:
double Pan up
void Isis::ChipViewport::tackPointChanged ( double  _t1  )  [signal]

< Signal sent when tack point changes

double Isis::ChipViewport::tackSample (  ) 

Return the position of cube under cross hair.

Returns tack sample.

Returns:
double
void Isis::ChipViewport::userMovedTackPoint (  )  [signal]
void Isis::ChipViewport::zoom1 (  )  [slot]

Zoom by a factor of one.

Slot to refresh viewport , point has changed

void Isis::ChipViewport::zoomIn (  )  [slot]
void Isis::ChipViewport::zoomOut (  )  [slot]

Zoom out.


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