Isis 3.0 Developer's Reference (API) |
Home |
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 | 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. | |
Chip * | chip () 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. |
Viewport for Isis Chips.
Isis::ChipViewport::ChipViewport | ( | int | width, | |
int | height, | |||
QWidget * | parent = 0 | |||
) |
Construct an empty viewport.
Isis::ChipViewport::~ChipViewport | ( | ) | [virtual] |
Destructor.
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
samp | Sample in cube | |
line | Line in cube | |
x | calcualated viewport x coordinate | |
y | calcualated viewport y coordinate |
void Isis::ChipViewport::enterEvent | ( | QEvent * | e | ) | [protected] |
Process arrow keystrokes on cube.
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] |
Pan left.
References Isis::Chip::CubeLine(), Isis::Chip::CubeSample(), Isis::Chip::SetChipPosition(), Isis::Chip::TackLine(), and Isis::Chip::TackSample().
void Isis::ChipViewport::panLeft | ( | ) | [slot] |
Pan right.
References Isis::Chip::CubeLine(), Isis::Chip::CubeSample(), Isis::Chip::SetChipPosition(), Isis::Chip::TackLine(), and Isis::Chip::TackSample().
void Isis::ChipViewport::panRight | ( | ) | [slot] |
void Isis::ChipViewport::panUp | ( | ) | [slot] |
Pan down.
References Isis::Chip::CubeLine(), Isis::Chip::SetChipPosition(), Isis::Chip::TackLine(), and Isis::Chip::TackSample().
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.
rotation |
Set chip.
Set the chip for this ChipViewport.
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
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
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.
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] |
Zoom in.
References Isis::Chip::CubeLine(), Isis::Chip::CubeSample(), Isis::Chip::SetChipPosition(), Isis::Chip::TackLine(), and Isis::Chip::TackSample().
void Isis::ChipViewport::zoomOut | ( | ) | [slot] |
Zoom out.