26 #include <QPaintEvent> 27 #include <QResizeEvent> 106 Cube *chipCube()
const {
148 void userMovedTackPoint();
182 m_controlNet = newControlNet;
void zoom(double zoomFactor)
Zoom by a specified factor.
void enterEvent(QEvent *e)
If mouse enters, make sure key events are processed w/o clicking.
int chipLines() const
Return the number of lines in the chip.
double m_zoomFactor
Zoom Factor.
int m_circleSize
Circle size.
void setCircleSize(int size)
Set the size of the circle.
Stretch grayStretch() const
Draw X on point.
A small chip of data used for pattern matching.
int grayBand() const
Return the gray band currently viewed.
BandInfo m_gray
Info for the gray bands.
Cube * m_chipCube
The chip's cube.
void SetLis(const double value)
Sets the mapping for LIS pixels.
Stretch stretch
Stretch for the band BandInfo constructor.
void paintImage()
Paints the chip viewport after the chip has been updated.
bool m_stretchLocked
Whether or not to lock the stretch when transforming.
void setCross(bool checked)
Slot to change state of crosshair.
Widget to display Isis cubes for qt apps.
double tackLine()
Returns tack line.
void computeStretch(Stretch &stretch, bool force=false)
Compute automatic stretch for a portion of the cube.
double tackSample()
Return the position of cube under cross hair.
void setControlNet(ControlNet *newControlNet)
sets the ControlNet to be used for drawing measure locations
void rotateChip(int rotation)
Slot to rotate chip.
void keyPressEvent(QKeyEvent *e)
Process arrow keystrokes on cube.
QImage * m_image
The image.
bool m_showPoints
Draw control points.
void SetHrs(const double value)
Sets the mapping for HRS pixels.
ChipViewport * m_tempView
Temporary viewport.
virtual ~ChipViewport()
Destructor.
Sets the mapping for gray band stretch.
void SetLrs(const double value)
Sets the mapping for LRS pixels.
void SetHis(const double value)
Sets the mapping for HIS pixels.
void refreshView(double tackSample, double tackLine)
Slot to refresh viewport when the tack point has changed.
void reloadChip(double tackSample=0., double tackLine=0.)
Reloads the chip at the given tack point on the cube.
void geomChip(Chip *matchChip, Cube *matchChipCube)
Slot to geom chip (apply geometry transformation)
ChipViewport(int width, int height, QWidget *parent=0)
Construct an empty viewport.
void paintEvent(QPaintEvent *e)
Repaint the viewport.
Cube * m_matchChipCube
The matching chip's cube.
double zoomFactor()
Return the zoom factor.
void autoStretch()
Apply automatic stretch using data from entire chip.
bool m_circle
Draw circle.
void zoom1()
Zoom by a factor of one.
void mousePressEvent(QMouseEvent *event)
Process mouse events.
Stretch * m_stretch
Current stretch on the chip viewport.
void changeStretchLock(int)
Locks or unlocks the stretch on the chip viewport during transformations (zoom, pan, etc.)
void setChip(Chip *chip, Cube *chipCube)
Set chip.
void tackPointChanged(double)
< Signal sent when tack point changes
void panRight()
Pan right.
Namespace for ISIS/Bullet specific routines.
bool m_cross
Draw crosshair.
void setPoints(bool checked)
Slot to set whether control points are drawn.
int chipSamples() const
Return the number of samples in the chip.
void setCircle(bool checked)
Slot to change state of circle.
Chip * chip() const
Return chip.
void SetNull(const double value)
Sets the mapping for NULL pixels.
void loadView(ChipViewport &newView)
Load with another ChipViewport, used for blinking.
void stretchFromCubeViewport(Stretch *, CubeViewport *)
Applies a new stretch to the specified cube viewport.
void nogeomChip()
Slot to un-geom chip (revert geometry transformation)
bool cubeToViewport(double samp, double line, int &x, int &y)
Get viewport x and y from cube sample and line.
bool m_paintImage
Paint Image?
Chip * m_matchChip
The matching chip.
IO Handler for Isis Cubes.