USGS

Isis 3.0 Developer's Reference (API)

Home

Isis::ChipViewport Class Reference

Viewport for Isis Chips. More...

#include <ChipViewport.h>

Inherits QWidget.

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 zoom (double zoomFactor)
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, used for blinking.
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
double zoomFactor ()
 Return the zoom factor.
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.

Referenced by geomChip(), nogeomChip(), rotateChip(), and setChip().

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

Return chip.

Referenced by setChip().

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
sampSample in cube
lineLine in cube
xcalcualated viewport x coordinate
ycalcualated viewport y coordinate
Returns
True if the point is contained in the viewport, false otherwise

References Isis::Chip::ChipLine(), Isis::Chip::ChipSample(), Isis::Chip::IsInsideChip(), and Isis::Chip::SetCubePosition().

Referenced by paintEvent().

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.

References autoStretch(), Isis::Chip::Load(), and Isis::IException::toString().

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, used for blinking.

Load with info from given ChipViewport.

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

Process mouse events.

Slot to set whether control points are drawn

References Isis::Chip::CubeLine(), Isis::Chip::CubeSample(), Isis::Chip::SetChipPosition(), and userMovedTackPoint().

void Isis::ChipViewport::nogeomChip ( )
slot

Slot to geom chip.

References autoStretch(), Isis::Chip::Load(), and Isis::IException::toString().

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

References autoStretch(), Isis::Chip::Load(), and Isis::IException::toString().

void Isis::ChipViewport::setChip ( Chip chip,
Cube chipCube 
)
void Isis::ChipViewport::setCircle ( bool  checked)
slot
void Isis::ChipViewport::setCircleSize ( int  size)
slot
void Isis::ChipViewport::setControlNet ( ControlNet newControlNet)
inlineslot

sets the ControlNet to be used for drawing measure locations

Parameters
newControlNetThe 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 ( )
void Isis::ChipViewport::tackPointChanged ( double  _t1)
signal

< Signal sent when tack point changes

Referenced by setChip().

double Isis::ChipViewport::tackSample ( )

Return the position of cube under cross hair.

Returns tack sample.

Returns
double

References Isis::Chip::CubeSample(), Isis::Chip::SetChipPosition(), Isis::Chip::TackLine(), and Isis::Chip::TackSample().

void Isis::ChipViewport::userMovedTackPoint ( )
signal

Referenced by keyPressEvent(), and mousePressEvent().

void Isis::ChipViewport::zoom ( double  zoomFactor)
slot

References zoomFactor().

void Isis::ChipViewport::zoom1 ( )
slot

Zoom by a factor of one.

double Isis::ChipViewport::zoomFactor ( )

Return the zoom factor.

Slot to refresh viewport , point has changed.

Referenced by zoom().

void Isis::ChipViewport::zoomIn ( )
slot

Zoom in.

void Isis::ChipViewport::zoomOut ( )
slot

Zoom out.


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