|
Isis 3 Programmer Reference
|
12 #include <QPaintEvent>
13 #include <QResizeEvent>
17 #include "Histogram.h"
92 Cube *chipCube()
const {
134 void userMovedTackPoint();
168 m_controlNet = newControlNet;
double m_zoomFactor
Zoom Factor.
Stretch stretch
Stretch for the band BandInfo constructor.
bool m_paintImage
Paint Image?
int chipLines() const
Return the number of lines in the chip.
Chip * m_matchChip
The matching chip.
int m_circleSize
Circle size.
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.
void setCircleSize(int size)
Set the size of the circle.
Stretch grayStretch() const
Draw X on point.
int grayBand() const
Return the gray band currently viewed.
BandInfo m_gray
Info for the gray bands.
void SetLis(const double value)
Sets the mapping for LIS pixels.
bool m_stretchLocked
Whether or not to lock the stretch when transforming.
Cube * m_chipCube
The chip's cube.
void paintImage()
Paints the chip viewport after the chip has been updated.
void SetHrs(const double value)
Sets the mapping for HRS pixels.
void setCross(bool checked)
Slot to change state of crosshair.
double tackSample()
Return the position of cube under cross hair.
void SetLrs(const double value)
Sets the mapping for LRS pixels.
QImage * m_image
The image.
double tackLine()
Returns tack line.
Sets the mapping for gray band stretch.
void SetHis(const double value)
Sets the mapping for HIS pixels.
bool m_showPoints
Draw control points.
void computeStretch(Stretch &stretch, bool force=false)
Compute automatic stretch for a portion of the cube.
ChipViewport * m_tempView
Temporary viewport.
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.
void refreshView(double tackSample, double tackLine)
Slot to refresh viewport when the tack point has changed.
virtual ~ChipViewport()
Destructor.
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)
void paintEvent(QPaintEvent *e)
Repaint the viewport.
Cube * m_matchChipCube
The matching chip's cube.
double zoomFactor()
Return the zoom factor.
bool m_circle
Draw circle.
void zoom1()
Zoom by a factor of one.
IO Handler for Isis Cubes.
Stretch * m_stretch
Current stretch on the chip viewport.
Widget to display Isis cubes for qt apps.
ChipViewport(int width, int height, QWidget *parent=0)
Construct an empty viewport.
void autoStretch()
Apply automatic stretch using data from entire chip.
void panRight()
Pan right.
void setChip(Chip *chip, Cube *chipCube)
Set chip.
void mousePressEvent(QMouseEvent *event)
Process mouse events.
void tackPointChanged(double)
< Signal sent when tack point changes
void SetNull(const double value)
Sets the mapping for NULL pixels.
void changeStretchLock(int)
Locks or unlocks the stretch on the chip viewport during transformations (zoom, pan,...
A small chip of data used for pattern matching.
bool m_cross
Draw crosshair.
int chipSamples() const
Return the number of samples in the chip.
void setPoints(bool checked)
Slot to set whether control points are drawn.
void setCircle(bool checked)
Slot to change state of circle.
Chip * chip() const
Return chip.
void loadView(ChipViewport &newView)
Load with another ChipViewport, used for blinking.
void nogeomChip()
Slot to un-geom chip (revert geometry transformation)
void stretchFromCubeViewport(Stretch *, CubeViewport *)
Applies a new stretch to the specified cube viewport.
bool cubeToViewport(double samp, double line, int &x, int &y)
Get viewport x and y from cube sample and line.
This is free and unencumbered software released into the public domain.