|
Isis Developer Reference
|
Go to the documentation of this file.
12 #include <QPaintEvent>
13 #include <QResizeEvent>
103 return m_chip->
Lines();
123 return m_gray.stretch;
168 m_controlNet = newControlNet;
182 void computeStretch(
Stretch &stretch,
bool force =
false);
216 Cube *m_matchChipCube;
237 ControlNet *m_controlNet;
239 bool m_stretchLocked;
bool IsInsideChip(double sample, double line)
Definition: Chip.cpp:162
int chipLines() const
Return the number of lines in the chip.
Definition: ChipViewport.h:102
ControlPoint * Parent()
Definition: ControlMeasure.h:260
virtual QString fileName() const
Returns the opened cube's filename.
Definition: Cube.cpp:1563
void zoom(double zoomFactor)
Zoom by a specified factor.
Definition: ChipViewport.cpp:454
void enterEvent(QEvent *e)
If mouse enters, make sure key events are processed w/o clicking.
Definition: ChipViewport.cpp:486
void setCircleSize(int size)
Set the size of the circle.
Definition: ChipViewport.cpp:603
Stretch grayStretch() const
Draw X on point.
Definition: ChipViewport.h:122
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
int grayBand() const
Return the gray band currently viewed.
Definition: ChipViewport.h:107
void zoomOut()
Zoom out.
Definition: ChipViewport.cpp:434
void SetLis(const double value)
Sets the mapping for LIS pixels.
Definition: Stretch.h:105
void TackCube(const double cubeSample, const double cubeLine)
This sets which cube position will be located at the chip tack position.
Definition: Chip.cpp:182
Pixel value mapper.
Definition: Stretch.h:58
static QString Compose(Pvl &label, bool def2filename=false)
Compose a SerialNumber from a PVL.
Definition: SerialNumber.cpp:38
double GetValue(int sample, int line)
Loads a Chip with a value.
Definition: Chip.h:145
double ChipSample() const
Definition: Chip.h:219
void SetCubePosition(const double sample, const double line)
Compute the position of the chip given a cube coordinate.
Definition: Chip.cpp:660
void SetHrs(const double value)
Sets the mapping for HRS pixels.
Definition: Stretch.h:138
void setCross(bool checked)
Slot to change state of crosshair.
Definition: ChipViewport.cpp:572
QList< ControlMeasure * > GetMeasuresInCube(QString serialNumber)
Get all the measures pertaining to a given cube serial number.
Definition: ControlNet.cpp:1065
double tackSample()
Return the position of cube under cross hair.
Definition: ChipViewport.cpp:353
double CubeSample() const
Definition: Chip.h:203
Cube * chipCube() const
Definition: ChipViewport.h:92
void SetLrs(const double value)
Sets the mapping for LRS pixels.
Definition: Stretch.h:116
double tackLine()
Returns tack line.
Definition: ChipViewport.cpp:364
QList< QString > GetCubeSerials() const
Use this method to get a complete list of all the cube serial numbers in the network.
Definition: ControlNet.cpp:1016
void SetHis(const double value)
Sets the mapping for HIS pixels.
Definition: Stretch.h:127
bool IsIgnored() const
Definition: ControlMeasure.cpp:630
void Load(Cube &cube, const double rotation=0.0, const double scale=1.0, const int band=1)
Load cube data into the Chip.
Definition: Chip.cpp:203
void setControlNet(ControlNet *newControlNet)
sets the ControlNet to be used for drawing measure locations
Definition: ChipViewport.h:167
int TackSample() const
This method returns a chip's fixed tack sample; the middle of the chip.
Definition: Chip.h:176
double CubeLine() const
Definition: Chip.h:210
void rotateChip(int rotation)
Slot to rotate chip.
Definition: ChipViewport.cpp:677
@ Fixed
A Fixed point is a Control Point whose lat/lon is well established and should not be changed.
Definition: ControlPoint.h:371
int Lines() const
Definition: Chip.h:106
void keyPressEvent(QKeyEvent *e)
Process arrow keystrokes on cube.
Definition: ChipViewport.cpp:496
int GetNumPoints() const
Return the number of control points in the network.
Definition: ControlNet.cpp:1465
void refreshView(double tackSample, double tackLine)
Slot to refresh viewport when the tack point has changed.
Definition: ChipViewport.cpp:476
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
virtual ~ChipViewport()
Destructor.
Definition: ChipViewport.cpp:67
int TackLine() const
This method returns a chip's fixed tack line; the middle of the chip.
Definition: Chip.h:187
QString toString() const
Returns a string representation of this exception.
Definition: IException.cpp:537
double ChipLine() const
Definition: Chip.h:226
void geomChip(Chip *matchChip, Cube *matchChipCube)
Slot to geom chip (apply geometry transformation)
Definition: ChipViewport.cpp:621
void paintEvent(QPaintEvent *e)
Repaint the viewport.
Definition: ChipViewport.cpp:264
double zoomFactor()
Return the zoom factor.
Definition: ChipViewport.cpp:465
void AddPair(const double input, const double output)
Adds a stretch pair to the list of pairs.
Definition: Stretch.cpp:48
void ClearPairs()
Clears the stretch pairs.
Definition: Stretch.h:170
void zoom1()
Zoom by a factor of one.
Definition: ChipViewport.cpp:443
double GetSample() const
Definition: ControlMeasure.cpp:723
a control network
Definition: ControlNet.h:257
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis exception class.
Definition: IException.h:91
Widget to display Isis cubes for qt apps.
Definition: CubeViewport.h:122
#define ASSERT(x)
Definition: IsisDebug.h:134
ChipViewport(int width, int height, QWidget *parent=0)
Construct an empty viewport.
Definition: ChipViewport.cpp:35
void panLeft()
Pan left.
Definition: ChipViewport.cpp:399
Viewport for Isis Chips.
Definition: ChipViewport.h:71
void autoStretch()
Apply automatic stretch using data from entire chip.
Definition: ChipViewport.cpp:135
void panRight()
Pan right.
Definition: ChipViewport.cpp:412
void setChip(Chip *chip, Cube *chipCube)
Set chip.
Definition: ChipViewport.cpp:110
void mousePressEvent(QMouseEvent *event)
Process mouse events.
Definition: ChipViewport.cpp:534
void tackPointChanged(double)
< Signal sent when tack point changes
void SetNull(const double value)
Sets the mapping for NULL pixels.
Definition: Stretch.h:94
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
void changeStretchLock(int)
Locks or unlocks the stretch on the chip viewport during transformations (zoom, pan,...
Definition: ChipViewport.cpp:182
A small chip of data used for pattern matching.
Definition: Chip.h:86
double GetLine() const
Definition: ControlMeasure.cpp:690
int Samples() const
Definition: Chip.h:99
int chipSamples() const
Return the number of samples in the chip.
Definition: ChipViewport.h:97
void setPoints(bool checked)
Slot to set whether control points are drawn.
Definition: ChipViewport.cpp:556
bool IsIgnored() const
Definition: ControlPoint.cpp:1311
void setCircle(bool checked)
Slot to change state of circle.
Definition: ChipViewport.cpp:588
PointType GetType() const
Definition: ControlPoint.cpp:1401
Chip * chip() const
Return chip.
Definition: ChipViewport.h:88
void loadView(ChipViewport &newView)
Load with another ChipViewport, used for blinking.
Definition: ChipViewport.cpp:342
void SetChipPosition(const double sample, const double line)
Compute the position of the cube given a chip coordinate.
Definition: Chip.cpp:643
void zoomIn()
Zoom in.
Definition: ChipViewport.cpp:425
void userMovedTackPoint()
void nogeomChip()
Slot to un-geom chip (revert geometry transformation)
Definition: ChipViewport.cpp:649
void stretchFromCubeViewport(Stretch *, CubeViewport *)
Applies a new stretch to the specified cube viewport.
Definition: ChipViewport.cpp:148
bool cubeToViewport(double samp, double line, int &x, int &y)
Get viewport x and y from cube sample and line.
Definition: ChipViewport.cpp:85
Cube * cube() const
Definition: CubeViewport.h:338
void panDown()
Pan down.
Definition: ChipViewport.cpp:386
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126
void panUp()
Pan up.
Definition: ChipViewport.cpp:373
a control measurement
Definition: ControlMeasure.h:175