26 #include <QPaintEvent>
27 #include <QResizeEvent>
117 return m_chip->
Lines();
137 return m_gray.stretch;
182 m_controlNet = newControlNet;
196 void computeStretch(
Stretch &stretch,
bool force =
false);
216 stretch.SetHis(255.0);
217 stretch.SetHrs(255.0);
230 Cube *m_matchChipCube;
251 ControlNet *m_controlNet;
253 bool m_stretchLocked;
Stretch grayStretch() const
Draw X on point.
Definition: ChipViewport.h:136
void zoom(double zoomFactor)
Zoom by a specified factor.
Definition: ChipViewport.cpp:446
void enterEvent(QEvent *e)
If mouse enters, make sure key events are processed w/o clicking.
Definition: ChipViewport.cpp:478
void panUp()
Pan up.
Definition: ChipViewport.cpp:365
int chipSamples() const
Return the number of samples in the chip.
Definition: ChipViewport.h:111
void setCircleSize(int size)
Set the size of the circle.
Definition: ChipViewport.cpp:595
A small chip of data used for pattern matching.
Definition: Chip.h:101
void zoomOut()
Zoom out.
Definition: ChipViewport.cpp:426
void setCross(bool checked)
Slot to change state of crosshair.
Definition: ChipViewport.cpp:564
Widget to display Isis cubes for qt apps.
Definition: CubeViewport.h:121
double tackLine()
Returns tack line.
Definition: ChipViewport.cpp:356
double tackSample()
Return the position of cube under cross hair.
Definition: ChipViewport.cpp:345
void setControlNet(ControlNet *newControlNet)
sets the ControlNet to be used for drawing measure locations
Definition: ChipViewport.h:181
void rotateChip(int rotation)
Slot to rotate chip.
Definition: ChipViewport.cpp:669
int Samples() const
Return the number of samples in the chip.
Definition: Chip.h:114
void keyPressEvent(QKeyEvent *e)
Process arrow keystrokes on cube.
Definition: ChipViewport.cpp:488
virtual ~ChipViewport()
Destructor.
Definition: ChipViewport.cpp:59
a control network
Definition: ControlNet.h:207
Pixel value mapper.
Definition: Stretch.h:72
void refreshView(double tackSample, double tackLine)
Slot to refresh viewport when the tack point has changed.
Definition: ChipViewport.cpp:468
void geomChip(Chip *matchChip, Cube *matchChipCube)
Slot to geom chip (apply geometry transformation)
Definition: ChipViewport.cpp:613
ChipViewport(int width, int height, QWidget *parent=0)
Construct an empty viewport.
Definition: ChipViewport.cpp:27
void paintEvent(QPaintEvent *e)
Repaint the viewport.
Definition: ChipViewport.cpp:256
double zoomFactor()
Return the zoom factor.
Definition: ChipViewport.cpp:457
void autoStretch()
Apply automatic stretch using data from entire chip.
Definition: ChipViewport.cpp:127
void zoom1()
Zoom by a factor of one.
Definition: ChipViewport.cpp:435
void mousePressEvent(QMouseEvent *event)
Process mouse events.
Definition: ChipViewport.cpp:526
void changeStretchLock(int)
Locks or unlocks the stretch on the chip viewport during transformations (zoom, pan, etc.)
Definition: ChipViewport.cpp:174
void panLeft()
Pan left.
Definition: ChipViewport.cpp:391
Viewport for Isis Chips.
Definition: ChipViewport.h:85
int Lines() const
Return the number of lines in the chip.
Definition: Chip.h:121
Chip * chip() const
Return chip.
Definition: ChipViewport.h:102
void setChip(Chip *chip, Cube *chipCube)
Set chip.
Definition: ChipViewport.cpp:102
void tackPointChanged(double)
< Signal sent when tack point changes
Definition: moc_ChipViewport.cpp:242
void panRight()
Pan right.
Definition: ChipViewport.cpp:404
void zoomIn()
Zoom in.
Definition: ChipViewport.cpp:417
int chipLines() const
Return the number of lines in the chip.
Definition: ChipViewport.h:116
void panDown()
Pan down.
Definition: ChipViewport.cpp:378
void setPoints(bool checked)
Slot to set whether control points are drawn.
Definition: ChipViewport.cpp:548
void setCircle(bool checked)
Slot to change state of circle.
Definition: ChipViewport.cpp:580
void SetNull(const double value)
Sets the mapping for NULL pixels.
Definition: Stretch.h:108
void loadView(ChipViewport &newView)
Load with another ChipViewport, used for blinking.
Definition: ChipViewport.cpp:334
void userMovedTackPoint()
Definition: moc_ChipViewport.cpp:249
Cube * chipCube() const
Definition: ChipViewport.h:106
void stretchFromCubeViewport(Stretch *, CubeViewport *)
Applies a new stretch to the specified cube viewport.
Definition: ChipViewport.cpp:140
void nogeomChip()
Slot to un-geom chip (revert geometry transformation)
Definition: ChipViewport.cpp:641
int grayBand() const
Return the gray band currently viewed.
Definition: ChipViewport.h:121
bool cubeToViewport(double samp, double line, int &x, int &y)
Get viewport x and y from cube sample and line.
Definition: ChipViewport.cpp:77
IO Handler for Isis Cubes.
Definition: Cube.h:158