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