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 | 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. | |
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 | |
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. |
Viewport for Isis Chips.
Isis::ChipViewport::ChipViewport | ( | int | width, |
int | height, | ||
QWidget * | parent = 0 |
||
) |
Construct an empty viewport.
|
virtual |
Destructor.
|
slot |
Apply automatic stretch using data from entire chip.
Referenced by geomChip(), nogeomChip(), rotateChip(), and setChip().
|
slot |
|
inline |
Return the number of lines in the chip.
References Isis::Chip::Lines().
|
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 |
References Isis::Chip::ChipLine(), Isis::Chip::ChipSample(), Isis::Chip::IsInsideChip(), and Isis::Chip::SetCubePosition().
Referenced by paintEvent().
|
protected |
Process arrow keystrokes on cube.
Slot to geom chip.
References autoStretch(), Isis::Chip::Load(), and Isis::IException::toString().
|
inline |
Return the gray band currently viewed.
|
inline |
Draw X on point.
Return the gray band stretch
|
protected |
void Isis::ChipViewport::loadView | ( | ChipViewport & | newView | ) |
Load with another ChipViewport, used for blinking.
Load with info from given ChipViewport.
|
protected |
Process mouse events.
Slot to set whether control points are drawn
References Isis::Chip::CubeLine(), Isis::Chip::CubeSample(), Isis::Chip::SetChipPosition(), and userMovedTackPoint().
|
slot |
Slot to geom chip.
References autoStretch(), Isis::Chip::Load(), and Isis::IException::toString().
|
protected |
Repaint the viewport.
References Isis::SerialNumber::Compose(), cubeToViewport(), Isis::ControlPoint::Fixed, Isis::ControlNet::GetCubeSerials(), Isis::ControlMeasure::GetLine(), Isis::ControlNet::GetMeasuresInCube(), Isis::ControlNet::GetNumPoints(), Isis::ControlMeasure::GetSample(), Isis::ControlPoint::GetType(), Isis::ControlMeasure::IsIgnored(), Isis::ControlPoint::IsIgnored(), and Isis::ControlMeasure::Parent().
|
slot |
Pan left.
References Isis::Chip::CubeLine(), Isis::Chip::CubeSample(), Isis::Chip::SetChipPosition(), Isis::Chip::TackLine(), and Isis::Chip::TackSample().
|
slot |
Pan right.
References Isis::Chip::CubeLine(), Isis::Chip::CubeSample(), Isis::Chip::SetChipPosition(), Isis::Chip::TackLine(), and Isis::Chip::TackSample().
|
slot |
|
slot |
Pan down.
References Isis::Chip::CubeLine(), Isis::Chip::CubeSample(), Isis::Chip::SetChipPosition(), Isis::Chip::TackLine(), and Isis::Chip::TackSample().
|
slot |
If mouse enters, make sure key events are processed w/o clicking.
|
slot |
Slot to rotate chip.
rotation |
References autoStretch(), Isis::Chip::Load(), and Isis::IException::toString().
Set chip.
Set the chip for this ChipViewport.
References _FILEINFO_, autoStretch(), chip(), Isis::Chip::Lines(), Isis::IException::Programmer, Isis::Chip::Samples(), and tackPointChanged().
Referenced by Isis::ControlPointEdit::setLeftMeasure(), and Isis::ControlPointEdit::setRightMeasure().
|
slot |
|
slot |
|
inlineslot |
sets the ControlNet to be used for drawing measure locations
newControlNet | The new ControlNet to be used |
|
slot |
|
slot |
Slot to change state of crosshair.
|
slot |
References ASSERT, Isis::CubeViewport::cube(), and Isis::Cube::fileName().
double Isis::ChipViewport::tackLine | ( | ) |
returns tack Line
References Isis::Chip::CubeLine(), Isis::Chip::SetChipPosition(), Isis::Chip::TackLine(), and Isis::Chip::TackSample().
|
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.
References Isis::Chip::CubeSample(), Isis::Chip::SetChipPosition(), Isis::Chip::TackLine(), and Isis::Chip::TackSample().
|
signal |
Referenced by keyPressEvent(), and mousePressEvent().
|
slot |
References zoomFactor().
|
slot |
Zoom by a factor of one.
double Isis::ChipViewport::zoomFactor | ( | ) |
|
slot |
Zoom in.
|
slot |
Zoom out.