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 |
◆ ~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 |
◆ chipSamples()
int Isis::ChipViewport::chipSamples |
( |
| ) |
const |
|
inline |
◆ cubeToViewport()
bool Isis::ChipViewport::cubeToViewport |
( |
double | samp, |
|
|
double | line, |
|
|
int & | x, |
|
|
int & | y ) |
◆ 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::Chip::Load().
◆ 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()
Load with another ChipViewport, used for blinking.
Load with info from given ChipViewport.
- Parameters
-
newView | The chip viewport to load from |
◆ 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 ) |
Set chip.
Set the chip for this ChipViewport.
- Parameters
-
chip | Pointer to the chip to set the viewport with |
chipCube | Pointer to the chip's cube |
- Exceptions
-
- Author
- Tracie Sucharski
References _FILEINFO_, autoStretch(), chip(), chipCube(), Isis::Chip::Lines(), Isis::IException::Programmer, Isis::Chip::Samples(), and tackPointChanged().
Referenced by Isis::ControlMeasureEditWidget::setLeftMeasure(), Isis::ControlPointEdit::setLeftMeasure(), Isis::ControlMeasureEditWidget::setRightMeasure(), and Isis::ControlPointEdit::setRightMeasure().
◆ 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 |
sets the ControlNet to be used for drawing measure locations
- Parameters
-
◆ 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 |
Slot to set whether control points are drawn.
- Parameters
-
checked | Control points are set to be drawn if true |
◆ stretchFromCubeViewport
Applies a new stretch to the specified cube viewport.
- Parameters
-
newStretch | Pointer to the new stretch to apply |
cvp | Pointer to the cube viewport to apply the stretch to |
References Isis::Cube::fileName().
◆ 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 zoom().
◆ zoomIn
void Isis::ChipViewport::zoomIn |
( |
| ) |
|
|
slot |
◆ zoomOut
void Isis::ChipViewport::zoomOut |
( |
| ) |
|
|
slot |
The documentation for this class was generated from the following files: