Isis 3.0 Developer's Reference (API) |
Home |
General purpose Cube display widget. More...
#include <IndependentCubeViewport.h>
Inherits Isis::CubeViewport.
Public Slots | |
void | resetKnownGlobal () |
QSize | sizeHint () const |
Make viewports show up as 512 by 512. | |
void | setScale (double scale) |
Change the scale of the cube to the given parameter value. | |
void | setScale (double scale, double sample, double line) |
Change the scale of the cube after moving samp/line to the center. | |
void | setScale (double scale, int x, int y) |
Change the scale of the cube after moving x,y to the center. | |
void | center (int x, int y) |
Bring the cube pixel under viewport x/y to the center. | |
void | center (double sample, double line) |
Bring the cube sample/line the center. | |
virtual void | viewRGB (int redBand, int greenBand, int blueBand) |
View cube as color. | |
virtual void | viewGray (int band) |
View cube as gray. | |
void | stretchGray (const QString &string) |
Apply stretch pairs to gray band. | |
void | stretchGray (const Stretch &stretch) |
Sets the stretch for gray mode. | |
void | stretchRed (const QString &string) |
Apply stretch pairs to red bands. | |
void | stretchRed (const Stretch &stretch) |
Sets the stretch for red in rgb mode. | |
void | stretchGreen (const QString &string) |
Apply stretch pairs to green bands. | |
void | stretchGreen (const Stretch &stretch) |
Sets the stretch for green in rgb mode. | |
void | stretchBlue (const QString &string) |
Apply stretch pairs to blue bands. | |
void | stretchBlue (const Stretch &stretch) |
Sets the stretch for blue in rgb mode. | |
void | stretchKnownGlobal () |
List<Tool *> p This stretches to the global stretch. | |
void | cubeChanged (bool changed) |
This method is called when the cube has changed or changes have been finalized. | |
void | scrollBy (int dx, int dy) |
Move the scrollbars by dx/dy screen pixels. | |
void | changeCursor (QCursor cursor) |
Allows users to change the cursor type on the viewport. | |
void | onProgressTimer () |
This updates the progress bar visually. | |
void | enableProgress () |
This restarts the progress bar. | |
Signals | |
void | synchronize (IndependentCubeViewport *) |
void | trackingChanged (double sample, double line, double lat, double lon, double dn, IndependentCubeViewport *) |
void | trackingChanged (double samp, double line, double dn, IndependentCubeViewport *) |
void | cantTrack (QString, IndependentCubeViewport *) |
void | viewportUpdated () |
Emitted when viewport updated. | |
void | mouseEnter () |
Emitted when the mouse enters the viewport. | |
void | mouseMove (QPoint) |
Emitted when the mouse moves. | |
void | mouseMove (QPoint, Qt::MouseButton) |
Emitted when the mouse moves. | |
void | mouseLeave () |
Emitted when the mouse leaves the viewport. | |
void | mouseButtonPress (QPoint, Qt::MouseButton) |
Emitted when mouse button pressed. | |
void | mouseButtonRelease (QPoint, Qt::MouseButton) |
Emitted when mouse button released. | |
void | mouseDoubleClick (QPoint) |
Emitted when double click happens. | |
void | windowTitleChanged () |
Emitted when window title changes. | |
void | scaleChanged () |
Emitted when zoom factor changed just before the repaint event. | |
void | saveChanges () |
Emitted when changes should be saved. | |
void | discardChanges () |
Emitted when changes should be discarded. | |
void | screenPixelsChanged () |
Emitted when cube pixels that should be on the screen change. | |
void | progressChanged (int) |
Emitted with current progress (0 to 100) when working. | |
void | doneWithData (int, const Isis::Brick *) |
Emitted when a brick is no longer needed, should only be sent to cube data thread. | |
Public Member Functions | |
IndependentCubeViewport (Cube *cube, CubeDataThread *cdt=0, QWidget *parent=0) | |
~IndependentCubeViewport () | |
bool | eventFilter (QObject *o, QEvent *e) |
Event filter to watch for mouse events on viewport. | |
void | paintEvent (QPaintEvent *e) |
Repaint the viewport. | |
void | restretch (ViewportBuffer *) |
This is called by internal viewport buffers when a stretch action should be performed. | |
virtual void | showEvent (QShowEvent *e) |
This method is called to initially show the viewport. | |
void | setCube (Cube *cube) |
This method sets the viewports cube. | |
int | cubeSamples () const |
Return the number of samples in the cube. | |
int | cubeLines () const |
Return the number of lines in the cube. | |
int | cubeBands () const |
Return the number of bands in the cube. | |
bool | isColor () const |
Is the viewport shown in 3-band color. | |
bool | isGray () const |
Is the viewport shown in gray / b&w. | |
int | grayBand () const |
Return the gray band currently viewed. | |
int | redBand () const |
Return the red band currently viewed. | |
int | greenBand () const |
Return the green band currently viewed. | |
int | blueBand () const |
Return the blue band currently viewed. | |
double | scale () const |
Return the scale. | |
bool | cubeShown () const |
Return if the cube is visible. | |
void | cubeContentsChanged (QRect rect) |
Cube changed, repaint given area. | |
double | fitScale () const |
Determine the scale that causes the full cube to fit in the viewport. | |
double | fitScaleWidth () const |
Determine the scale of cube in the width to fit in the viewport. | |
double | fitScaleHeight () const |
Determine the scale of cube in heighth to fit in the viewport. | |
void | viewportToCube (int x, int y, double &sample, double &line) const |
Convert a viewport x/y to a cube sample/line (may be outside the cube). | |
void | cubeToViewport (double sample, double line, int &x, int &y) const |
Convert a cube sample/line to a viewport x/y (may be outside the viewport). | |
void | contentsToCube (int x, int y, double &sample, double &line) const |
Convert a contents x/y to a cube sample/line (may be outside the cube). | |
void | cubeToContents (double sample, double line, int &x, int &y) const |
Convert a cube sample/line to a contents x/y (should not be outside). | |
double | redPixel (int sample, int line) |
Return the red pixel value at a sample/line. | |
double | greenPixel (int sample, int line) |
Return the green pixel value at a sample/line. | |
double | bluePixel (int sample, int line) |
Return the blue pixel value at a sample/line. | |
double | grayPixel (int sample, int line) |
Return the gray pixel value at a sample/line. | |
Stretch | grayStretch () const |
Return the gray band stretch. | |
Stretch | redStretch () const |
Return the red band stretch. | |
Stretch | greenStretch () const |
Return the green band stretch. | |
Stretch | blueStretch () const |
Return the blue band stretch. | |
Cube * | cube () const |
Return the cube associated with viewport. | |
Projection * | projection () const |
Return the projection associated with cube (NULL implies none). | |
Camera * | camera () const |
Return the camera associated with the cube (NULL implies none). | |
UniversalGroundMap * | universalGroundMap () const |
Return the universal ground map associated with the cube (NULL implies none). | |
void | moveCursor (int x, int y) |
Move the cursor by x,y if possible. | |
bool | cursorInside () const |
Is cursor inside viewport. | |
QPoint | cursorPosition () const |
Return the cursor position in the viewport. | |
void | setCursorPosition (int x, int y) |
Set the cursor position to x/y in the viewport. | |
void | setCaption () |
Change the caption on the viewport title bar. | |
void | setBackground (QColor color) |
Sets the background color. | |
QPixmap | pixmap () |
Returns the pixmap. | |
ViewportBuffer * | grayBuffer () |
Returns the gray viewport buffer (Will be NULL if in RGB mode. | |
ViewportBuffer * | redBuffer () |
Returns the red viewport buffer (Will be NULL if in Gray mode. | |
ViewportBuffer * | greenBuffer () |
Returns the green viewport buffer (Will be NULL if in Gray mode. | |
ViewportBuffer * | blueBuffer () |
Returns the blue viewport buffer (Will be NULL if in Gray mode. | |
void | bufferUpdated (QRect rect) |
This method is called by ViewportBuffer upon successful completion of all operations and gives the appropriate rect to be repainted. | |
void | paintPixmap () |
Paint the whole pixmap. | |
void | forgetStretches () |
Resets all remembered stretches. | |
void | setAllBandStretches (Stretch stretch) |
Sets a stretch for all bands. | |
CubeDataThread * | cubeDataThread () |
int | cubeID () |
void | getAllWhatsThisInfo (Pvl &pWhatsThisPvl) |
Get All WhatsThis info - viewport, cube, area in PVL format. | |
void | getBandFilterName (PvlKeyword &pFilterNameKey) |
Get Band Filter name from the Isis cube label. | |
void | getCubeArea (double &pdStartSample, double &pdEndSample, double &pdStartLine, double &pdEndLine) |
Get Cube area corresponding to the viewport's dimension. | |
Protected Slots | |
virtual void | cubeDataChanged (int cubeId, const Brick *) |
virtual void | cubeDataChanged (int cubeId, const Isis::Brick *) |
Protected Member Functions | |
virtual void | closeEvent (QCloseEvent *event) |
This method is called when the viewport recieves a close event. | |
void | scrollContentsBy (int dx, int dy) |
Scroll the viewport contents by dx/dy screen pixels. | |
virtual void | resizeEvent (QResizeEvent *e) |
The viewport is being resized. | |
virtual void | keyPressEvent (QKeyEvent *e) |
Process arrow keystrokes on cube. | |
Protected Attributes | |
QPixmap | p_pixmap |
The qpixmap. | |
QVector< Stretch * > * | p_knownStretches |
Stretches for each previously stretched band. | |
QVector< Stretch * > * | p_globalStretches |
Global stretches for each stretched band. |
General purpose Cube display widget.
Isis::IndependentCubeViewport::IndependentCubeViewport | ( | Cube * | cube, | |
CubeDataThread * | cdt = 0 , |
|||
QWidget * | parent = 0 | |||
) |
Isis::IndependentCubeViewport::~IndependentCubeViewport | ( | ) |
int Isis::CubeViewport::blueBand | ( | ) | const [inline, inherited] |
Return the blue band currently viewed.
References Isis::CubeViewport::BandInfo::band.
Referenced by Isis::StretchTool::stretchBand(), Isis::CubeViewport::stretchBlue(), and Isis::CubeViewport::stretchKnownGlobal().
ViewportBuffer* Isis::CubeViewport::blueBuffer | ( | ) | [inline, inherited] |
Returns the blue viewport buffer (Will be NULL if in Gray mode.
)
Referenced by Isis::MdiCubeViewport::restretch(), Isis::StretchTool::setCubeViewport(), Isis::StretchTool::stretchRequested(), Isis::StretchTool::updateAdvStretchDialogforAll(), and Isis::StretchTool::updateHistograms().
double Isis::CubeViewport::bluePixel | ( | int | sample, | |
int | line | |||
) | [inherited] |
Return the blue pixel value at a sample/line.
sample | ||
line |
References Isis::CubeViewport::BandInfo::band, and Isis::Cube::read().
Stretch Isis::CubeViewport::blueStretch | ( | ) | const [inherited] |
Return the blue band stretch.
References Isis::CubeViewport::BandInfo::getStretch().
Referenced by Isis::StretchTool::setCubeViewport(), Isis::StretchTool::stretchBand(), Isis::StretchTool::stretchRequested(), Isis::StretchTool::updateAdvStretchDialogforAll(), and Isis::AdvancedStretchDialog::updateStretch().
void Isis::CubeViewport::bufferUpdated | ( | QRect | rect | ) | [inherited] |
This method is called by ViewportBuffer upon successful completion of all operations and gives the appropriate rect to be repainted.
This is intended to update the screen once all data is done and ready to be displayed.
rect | Area to update screen |
References Isis::CubeViewport::paintPixmap(), and Isis::ViewportBuffer::working().
Camera* Isis::CubeViewport::camera | ( | ) | const [inline, inherited] |
Return the camera associated with the cube (NULL implies none).
void Isis::IndependentCubeViewport::cantTrack | ( | QString | _t1, | |
IndependentCubeViewport * | _t2 | |||
) | [signal] |
void Isis::CubeViewport::center | ( | double | sample, | |
double | line | |||
) | [slot, inherited] |
Bring the cube sample/line the center.
sample | ||
line |
References Isis::CubeViewport::cubeToContents(), Isis::ViewportBuffer::pan(), Isis::CubeViewport::screenPixelsChanged(), x, and y.
void Isis::CubeViewport::center | ( | int | x, | |
int | y | |||
) | [slot, inherited] |
Bring the cube pixel under viewport x/y to the center.
x | ||
y |
References line, sample, and Isis::CubeViewport::viewportToCube().
Referenced by Isis::PanTool::mouseButtonRelease(), and Isis::CubeViewport::setScale().
void Isis::CubeViewport::changeCursor | ( | QCursor | cursor | ) | [slot, inherited] |
Allows users to change the cursor type on the viewport.
cursor |
void Isis::CubeViewport::closeEvent | ( | QCloseEvent * | event | ) | [protected, virtual, inherited] |
This method is called when the viewport recieves a close event.
If changes have been made to this viewport it opens an information dialog that asks the user if they want to save, discard changes, or cancel.
event |
References Isis::CubeViewport::discardChanges(), and Isis::CubeViewport::saveChanges().
void Isis::CubeViewport::contentsToCube | ( | int | x, | |
int | y, | |||
double & | sample, | |||
double & | line | |||
) | const [inherited] |
Convert a contents x/y to a cube sample/line (may be outside the cube).
x | ||
y | ||
sample | ||
line |
Referenced by Isis::CubeViewport::setScale(), and Isis::CubeViewport::viewportToCube().
Cube* Isis::CubeViewport::cube | ( | ) | const [inline, inherited] |
Return the cube associated with viewport.
Referenced by Isis::CubeViewport::cubeContentsChanged(), Isis::CubePlotCurve::paint(), Isis::SpectralPlotTool::refreshPlot(), Isis::ScatterPlotConfigDialog::ScatterPlotConfigDialog(), Isis::CubePlotCurve::setSource(), Isis::StretchTool::stretchBand(), Isis::SpectralPlotTool::updateTool(), Isis::ScatterPlotConfigDialog::xAxisCubeViewport(), and Isis::ScatterPlotConfigDialog::yAxisCubeViewport().
int Isis::CubeViewport::cubeBands | ( | ) | const [inherited] |
Return the number of bands in the cube.
References Isis::Cube::getBandCount().
Referenced by resetKnownGlobal().
void Isis::CubeViewport::cubeChanged | ( | bool | changed | ) | [slot, inherited] |
This method is called when the cube has changed or changes have been finalized.
changed |
void Isis::CubeViewport::cubeContentsChanged | ( | QRect | cubeRect | ) | [inherited] |
Cube changed, repaint given area.
[in] | cubeRect | (QRect rect) Rectange containing portion of cube (sample/line) that changed. |
References Isis::CubeViewport::cube(), Isis::CubeViewport::cubeToViewport(), Isis::ViewportBuffer::fillBuffer(), Isis::Cube::getLineCount(), and Isis::Cube::getSampleCount().
virtual void Isis::CubeViewport::cubeDataChanged | ( | int | cubeId, | |
const Isis::Brick * | ||||
) | [protected, virtual, slot, inherited] |
Referenced by Isis::CubeViewport::CubeViewport().
virtual void Isis::IndependentCubeViewport::cubeDataChanged | ( | int | cubeId, | |
const Brick * | ||||
) | [protected, virtual, slot] |
CubeDataThread* Isis::CubeViewport::cubeDataThread | ( | ) | [inline, inherited] |
int Isis::CubeViewport::cubeID | ( | ) | [inline, inherited] |
int Isis::CubeViewport::cubeLines | ( | ) | const [inherited] |
Return the number of lines in the cube.
References Isis::Cube::getLineCount().
Referenced by Isis::CubeViewport::fitScale(), Isis::CubeViewport::fitScaleHeight(), Isis::CubeViewport::getCubeArea(), Isis::ViewportBuffer::hasEntireCube(), Isis::CubeViewport::setScale(), and Isis::CubeViewport::showEvent().
int Isis::CubeViewport::cubeSamples | ( | ) | const [inherited] |
Return the number of samples in the cube.
References Isis::Cube::getSampleCount().
Referenced by Isis::CubeViewport::fitScale(), Isis::CubeViewport::fitScaleWidth(), Isis::CubeViewport::getCubeArea(), Isis::ViewportBuffer::hasEntireCube(), Isis::CubeViewport::setScale(), and Isis::CubeViewport::showEvent().
bool Isis::CubeViewport::cubeShown | ( | ) | const [inline, inherited] |
Return if the cube is visible.
void Isis::CubeViewport::cubeToContents | ( | double | sample, | |
double | line, | |||
int & | x, | |||
int & | y | |||
) | const [inherited] |
Convert a cube sample/line to a contents x/y (should not be outside).
sample | ||
line | ||
x | ||
y |
Referenced by Isis::CubeViewport::center(), Isis::CubeViewport::cubeToViewport(), and Isis::CubeViewport::setScale().
void Isis::CubeViewport::cubeToViewport | ( | double | sample, | |
double | line, | |||
int & | x, | |||
int & | y | |||
) | const [inherited] |
Convert a cube sample/line to a viewport x/y (may be outside the viewport).
sample | ||
line | ||
x | ||
y |
References Isis::CubeViewport::cubeToContents().
Referenced by Isis::CubeViewport::cubeContentsChanged(), and Isis::CubePlotCurve::paint().
bool Isis::CubeViewport::cursorInside | ( | ) | const [inherited] |
QPoint Isis::CubeViewport::cursorPosition | ( | ) | const [inherited] |
void Isis::CubeViewport::discardChanges | ( | ) | [signal, inherited] |
Emitted when changes should be discarded.
Referenced by Isis::CubeViewport::closeEvent().
void Isis::CubeViewport::doneWithData | ( | int | _t1, | |
const Isis::Brick * | _t2 | |||
) | [signal, inherited] |
Emitted when a brick is no longer needed, should only be sent to cube data thread.
Referenced by Isis::CubeViewport::CubeViewport().
void Isis::CubeViewport::enableProgress | ( | ) | [slot, inherited] |
This restarts the progress bar.
Does nothing if already loading.
References Isis::CubeViewport::progressChanged().
bool Isis::IndependentCubeViewport::eventFilter | ( | QObject * | o, | |
QEvent * | e | |||
) | [virtual] |
Event filter to watch for mouse events on viewport.
o | ||
e |
Reimplemented from Isis::CubeViewport.
References Isis::CubeViewport::mouseEnter(), Isis::CubeViewport::mouseLeave(), and synchronize().
double Isis::CubeViewport::fitScale | ( | ) | const [inherited] |
Determine the scale that causes the full cube to fit in the viewport.
References Isis::CubeViewport::cubeLines(), Isis::CubeViewport::cubeSamples(), and Isis::CubeViewport::scale().
Referenced by Isis::CubeViewport::showEvent().
double Isis::CubeViewport::fitScaleHeight | ( | ) | const [inherited] |
Determine the scale of cube in heighth to fit in the viewport.
References Isis::CubeViewport::cubeLines(), and Isis::CubeViewport::scale().
double Isis::CubeViewport::fitScaleWidth | ( | ) | const [inherited] |
Determine the scale of cube in the width to fit in the viewport.
References Isis::CubeViewport::cubeSamples(), and Isis::CubeViewport::scale().
void Isis::CubeViewport::forgetStretches | ( | ) | [inherited] |
Resets all remembered stretches.
References Isis::CubeViewport::p_knownStretches, and stretch.
Referenced by Isis::StretchTool::stretchGlobalAllBands().
void Isis::CubeViewport::getAllWhatsThisInfo | ( | Pvl & | pWhatsThisPvl | ) | [inherited] |
Get All WhatsThis info - viewport, cube, area in PVL format.
pWhatsThisPvl | - Pvl for all whatsthis info |
pWhatsThisPvl | - Pvl for all whatsthis info |
References Isis::ViewportBuffer::getBand(), Isis::Cube::getBandCount(), Isis::CubeViewport::getBandFilterName(), Isis::CubeViewport::getCubeArea(), Isis::Cube::getFilename(), Isis::Cube::getLineCount(), Isis::Cube::getPhysicalBand(), Isis::Cube::getSampleCount(), and Isis::PvlKeyword::Size().
void Isis::CubeViewport::getBandFilterName | ( | PvlKeyword & | pFilterNameKey | ) | [inherited] |
Get Band Filter name from the Isis cube label.
pFilterNameKey | - FilterName keyword containing the corresponding keyword from the Isis Cube label |
PvlKeyword& | pFilterNameKey - FilterName keyword containing the corresponding keyword from the Isis Cube label |
References Isis::PvlObject::FindGroup(), Isis::PvlContainer::FindKeyword(), Isis::PvlObject::FindObject(), Isis::Cube::getLabel(), Isis::PvlObject::HasGroup(), and Isis::PvlContainer::HasKeyword().
Referenced by Isis::CubeViewport::getAllWhatsThisInfo().
void Isis::CubeViewport::getCubeArea | ( | double & | pdStartSample, | |
double & | pdEndSample, | |||
double & | pdStartLine, | |||
double & | pdEndLine | |||
) | [inherited] |
Get Cube area corresponding to the viewport's dimension.
pdStartSample | - Cube Start Sample | |
pdEndSample | - Cube End Sample | |
pdStartLine | - Cube Start Line | |
pdEndLine | - Cube End Line |
References Isis::CubeViewport::cubeLines(), Isis::CubeViewport::cubeSamples(), and Isis::CubeViewport::viewportToCube().
Referenced by Isis::CubeViewport::getAllWhatsThisInfo(), and Isis::FileTool::saveInfo().
int Isis::CubeViewport::grayBand | ( | ) | const [inline, inherited] |
Return the gray band currently viewed.
References Isis::CubeViewport::BandInfo::band.
Referenced by Isis::SpatialPlotTool::refreshPlot(), Isis::StretchTool::stretchBand(), Isis::CubeViewport::stretchGray(), and Isis::CubeViewport::stretchKnownGlobal().
ViewportBuffer* Isis::CubeViewport::grayBuffer | ( | ) | [inline, inherited] |
Returns the gray viewport buffer (Will be NULL if in RGB mode.
)
Referenced by Isis::ScatterPlotWindow::paint(), resetKnownGlobal(), Isis::MdiCubeViewport::restretch(), Isis::StretchTool::setCubeViewport(), showEvent(), Isis::StretchTool::stretchRequested(), and Isis::StretchTool::updateHistograms().
double Isis::CubeViewport::grayPixel | ( | int | sample, | |
int | line | |||
) | [inherited] |
Return the gray pixel value at a sample/line.
sample | ||
line |
References Isis::CubeViewport::BandInfo::band, and Isis::Cube::read().
Stretch Isis::CubeViewport::grayStretch | ( | ) | const [inherited] |
Return the gray band stretch.
References Isis::CubeViewport::BandInfo::getStretch().
Referenced by restretch(), Isis::StretchTool::setCubeViewport(), Isis::StretchTool::stretchBand(), Isis::StretchTool::stretchRequested(), and Isis::AdvancedStretchDialog::updateStretch().
int Isis::CubeViewport::greenBand | ( | ) | const [inline, inherited] |
Return the green band currently viewed.
References Isis::CubeViewport::BandInfo::band.
Referenced by Isis::StretchTool::stretchBand(), Isis::CubeViewport::stretchGreen(), and Isis::CubeViewport::stretchKnownGlobal().
ViewportBuffer* Isis::CubeViewport::greenBuffer | ( | ) | [inline, inherited] |
Returns the green viewport buffer (Will be NULL if in Gray mode.
)
Referenced by Isis::MdiCubeViewport::restretch(), Isis::StretchTool::setCubeViewport(), Isis::StretchTool::stretchRequested(), Isis::StretchTool::updateAdvStretchDialogforAll(), and Isis::StretchTool::updateHistograms().
double Isis::CubeViewport::greenPixel | ( | int | sample, | |
int | line | |||
) | [inherited] |
Return the green pixel value at a sample/line.
sample | ||
line |
References Isis::CubeViewport::BandInfo::band, and Isis::Cube::read().
Stretch Isis::CubeViewport::greenStretch | ( | ) | const [inherited] |
Return the green band stretch.
References Isis::CubeViewport::BandInfo::getStretch().
Referenced by Isis::StretchTool::setCubeViewport(), Isis::StretchTool::stretchBand(), Isis::StretchTool::stretchRequested(), Isis::StretchTool::updateAdvStretchDialogforAll(), and Isis::AdvancedStretchDialog::updateStretch().
bool Isis::CubeViewport::isColor | ( | ) | const [inline, inherited] |
Is the viewport shown in 3-band color.
bool Isis::CubeViewport::isGray | ( | ) | const [inline, inherited] |
Is the viewport shown in gray / b&w.
Referenced by Isis::SpatialPlotTool::refreshPlot(), Isis::StretchTool::setCubeViewport(), Isis::CubeViewport::stretchKnownGlobal(), Isis::StretchTool::updateAdvStretchDialogforAll(), Isis::StretchTool::updateHistograms(), and Isis::StretchTool::updateTool().
void Isis::CubeViewport::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual, inherited] |
Process arrow keystrokes on cube.
e |
References Isis::CubeViewport::moveCursor(), Isis::CubeViewport::scale(), and Isis::CubeViewport::setScale().
void Isis::CubeViewport::mouseButtonPress | ( | QPoint | _t1, | |
Qt::MouseButton | _t2 | |||
) | [signal, inherited] |
Emitted when mouse button pressed.
Referenced by Isis::CubeViewport::eventFilter().
void Isis::CubeViewport::mouseButtonRelease | ( | QPoint | _t1, | |
Qt::MouseButton | _t2 | |||
) | [signal, inherited] |
Emitted when mouse button released.
Referenced by Isis::CubeViewport::eventFilter().
void Isis::CubeViewport::mouseDoubleClick | ( | QPoint | _t1 | ) | [signal, inherited] |
Emitted when double click happens.
Referenced by Isis::CubeViewport::eventFilter().
void Isis::CubeViewport::mouseEnter | ( | ) | [signal, inherited] |
Emitted when the mouse enters the viewport.
Referenced by eventFilter(), and Isis::CubeViewport::eventFilter().
void Isis::CubeViewport::mouseLeave | ( | ) | [signal, inherited] |
Emitted when the mouse leaves the viewport.
Referenced by eventFilter(), and Isis::CubeViewport::eventFilter().
void Isis::CubeViewport::mouseMove | ( | QPoint | _t1, | |
Qt::MouseButton | _t2 | |||
) | [signal, inherited] |
Emitted when the mouse moves.
void Isis::CubeViewport::mouseMove | ( | QPoint | _t1 | ) | [signal, inherited] |
Emitted when the mouse moves.
Referenced by Isis::CubeViewport::eventFilter().
void Isis::CubeViewport::moveCursor | ( | int | x, | |
int | y | |||
) | [inherited] |
Move the cursor by x,y if possible.
x | ||
y |
References g.
Referenced by Isis::CubeViewport::keyPressEvent().
void Isis::CubeViewport::onProgressTimer | ( | ) | [slot, inherited] |
This updates the progress bar visually.
Conceptually it emits the progressChanged signal with the current progress.
References Isis::ViewportBuffer::currentProgress(), Isis::CubeViewport::progressChanged(), Isis::CubeViewport::screenPixelsChanged(), and Isis::ViewportBuffer::working().
Referenced by Isis::CubeViewport::CubeViewport().
void Isis::IndependentCubeViewport::paintEvent | ( | QPaintEvent * | e | ) | [virtual] |
Repaint the viewport.
e | [in] (QPaintEvent *) event |
Reimplemented from Isis::CubeViewport.
References Isis::CubeViewport::p_pixmap.
void Isis::CubeViewport::paintPixmap | ( | ) | [inherited] |
Paint the whole pixmap.
Referenced by Isis::CubeViewport::bufferUpdated(), Isis::CubeViewport::resizeEvent(), Isis::CubeViewport::scrollContentsBy(), Isis::CubeViewport::setScale(), Isis::CubeViewport::showEvent(), Isis::CubeViewport::stretchBlue(), Isis::CubeViewport::stretchGray(), Isis::CubeViewport::stretchGreen(), and Isis::CubeViewport::stretchRed().
QPixmap Isis::CubeViewport::pixmap | ( | ) | [inline, inherited] |
void Isis::CubeViewport::progressChanged | ( | int | _t1 | ) | [signal, inherited] |
Emitted with current progress (0 to 100) when working.
Referenced by Isis::CubeViewport::enableProgress(), and Isis::CubeViewport::onProgressTimer().
Projection* Isis::CubeViewport::projection | ( | ) | const [inline, inherited] |
Return the projection associated with cube (NULL implies none).
int Isis::CubeViewport::redBand | ( | ) | const [inline, inherited] |
Return the red band currently viewed.
References Isis::CubeViewport::BandInfo::band.
Referenced by Isis::SpatialPlotTool::refreshPlot(), Isis::StretchTool::stretchBand(), Isis::CubeViewport::stretchKnownGlobal(), and Isis::CubeViewport::stretchRed().
ViewportBuffer* Isis::CubeViewport::redBuffer | ( | ) | [inline, inherited] |
Returns the red viewport buffer (Will be NULL if in Gray mode.
)
Referenced by Isis::MdiCubeViewport::restretch(), Isis::StretchTool::setCubeViewport(), Isis::StretchTool::stretchRequested(), Isis::StretchTool::updateAdvStretchDialogforAll(), and Isis::StretchTool::updateHistograms().
double Isis::CubeViewport::redPixel | ( | int | sample, | |
int | line | |||
) | [inherited] |
Return the red pixel value at a sample/line.
sample | ||
line |
References Isis::CubeViewport::BandInfo::band, and Isis::Cube::read().
Stretch Isis::CubeViewport::redStretch | ( | ) | const [inherited] |
Return the red band stretch.
References Isis::CubeViewport::BandInfo::getStretch().
Referenced by Isis::StretchTool::setCubeViewport(), Isis::StretchTool::stretchBand(), Isis::StretchTool::stretchRequested(), Isis::StretchTool::updateAdvStretchDialogforAll(), and Isis::AdvancedStretchDialog::updateStretch().
void Isis::IndependentCubeViewport::resetKnownGlobal | ( | ) | [slot] |
void Isis::CubeViewport::resizeEvent | ( | QResizeEvent * | e | ) | [protected, virtual, inherited] |
The viewport is being resized.
e |
References Isis::CubeViewport::p_pixmap, Isis::CubeViewport::paintPixmap(), Isis::ViewportBuffer::resizedViewport(), size, and value.
void Isis::IndependentCubeViewport::restretch | ( | ViewportBuffer * | buffer | ) | [virtual] |
This is called by internal viewport buffers when a stretch action should be performed.
The buffer passes itself as the argument.
buffer |
Implements Isis::CubeViewport.
References Isis::Stretch::CopyPairs(), Isis::StretchTool::Gray, Isis::CubeViewport::grayStretch(), Isis::StretchTool::stretchBand(), and Isis::CubeViewport::stretchGray().
Referenced by showEvent().
void Isis::CubeViewport::saveChanges | ( | ) | [signal, inherited] |
Emitted when changes should be saved.
Referenced by Isis::CubeViewport::closeEvent().
double Isis::CubeViewport::scale | ( | ) | const [inline, inherited] |
Return the scale.
Referenced by Isis::CubeViewport::fitScale(), Isis::CubeViewport::fitScaleHeight(), Isis::CubeViewport::fitScaleWidth(), Isis::CubeViewport::keyPressEvent(), Isis::ViewportBuffer::pan(), Isis::ViewportBuffer::resizedViewport(), Isis::ZoomTool::rubberBandComplete(), and Isis::ZoomTool::updateTool().
void Isis::CubeViewport::scaleChanged | ( | ) | [signal, inherited] |
Emitted when zoom factor changed just before the repaint event.
Referenced by Isis::CubeViewport::setScale().
void Isis::CubeViewport::screenPixelsChanged | ( | ) | [signal, inherited] |
Emitted when cube pixels that should be on the screen change.
Referenced by Isis::CubeViewport::center(), Isis::CubeViewport::onProgressTimer(), Isis::CubeViewport::scrollContentsBy(), and Isis::CubeViewport::setScale().
void Isis::CubeViewport::scrollBy | ( | int | dx, | |
int | dy | |||
) | [slot, inherited] |
Move the scrollbars by dx/dy screen pixels.
dx | ||
dy |
References maximum, Isis::CubeViewport::scrollContentsBy(), value, x, and y.
void Isis::CubeViewport::scrollContentsBy | ( | int | dx, | |
int | dy | |||
) | [protected, inherited] |
Scroll the viewport contents by dx/dy screen pixels.
dx | ||
dy |
References Isis::ViewportBuffer::bufferXYRect(), Isis::CubeViewport::paintPixmap(), Isis::ViewportBuffer::pan(), Isis::CubeViewport::screenPixelsChanged(), and Isis::ViewportBuffer::working().
Referenced by Isis::CubeViewport::scrollBy().
void Isis::CubeViewport::setAllBandStretches | ( | Stretch | stretch | ) | [inherited] |
void Isis::CubeViewport::setBackground | ( | QColor | color | ) | [inline, inherited] |
Sets the background color.
color |
void Isis::CubeViewport::setCaption | ( | ) | [inherited] |
Change the caption on the viewport title bar.
References Isis::CubeViewport::BandInfo::band, Isis::Cube::getFilename(), str, and Isis::CubeViewport::windowTitleChanged().
Referenced by Isis::CubeViewport::CubeViewport(), Isis::CubeViewport::setCube(), Isis::CubeViewport::setScale(), Isis::CubeViewport::viewGray(), and Isis::CubeViewport::viewRGB().
void Isis::CubeViewport::setCube | ( | Cube * | cube | ) | [inherited] |
void Isis::CubeViewport::setCursorPosition | ( | int | x, | |
int | y | |||
) | [inherited] |
void Isis::CubeViewport::setScale | ( | double | scale, | |
int | x, | |||
int | y | |||
) | [slot, inherited] |
Change the scale of the cube after moving x,y to the center.
scale | ||
x | ||
y |
References line, Isis::CubeViewport::setScale(), and Isis::CubeViewport::viewportToCube().
void Isis::CubeViewport::setScale | ( | double | scale, | |
double | sample, | |||
double | line | |||
) | [slot, inherited] |
Change the scale of the cube after moving samp/line to the center.
scale | ||
sample | ||
line |
References Isis::CubeViewport::center(), Isis::ViewportBuffer::enable(), Isis::ViewportBuffer::enabled(), Isis::CubeViewport::paintPixmap(), Isis::CubeViewport::screenPixelsChanged(), and Isis::CubeViewport::setScale().
void Isis::CubeViewport::setScale | ( | double | scale | ) | [slot, inherited] |
Change the scale of the cube to the given parameter value.
This method will reset the scale value if the value passed in is too large or too small.
scale | Value by which to scale the image. |
References Isis::CubeViewport::contentsToCube(), Isis::CubeViewport::cubeLines(), Isis::CubeViewport::cubeSamples(), Isis::CubeViewport::cubeToContents(), line, min(), Isis::CubeViewport::paintPixmap(), Isis::CubeViewport::scaleChanged(), Isis::ViewportBuffer::scaleChanged(), Isis::CubeViewport::screenPixelsChanged(), Isis::CubeViewport::setCaption(), value, x, and y.
Referenced by Isis::CubeViewport::keyPressEvent(), Isis::CubeViewport::setScale(), and Isis::CubeViewport::showEvent().
void Isis::IndependentCubeViewport::showEvent | ( | QShowEvent * | event | ) | [virtual] |
This method is called to initially show the viewport.
It will set the scale to show the entire cube and enable the gray buffer.
Reimplemented from Isis::CubeViewport.
References Isis::CubeViewport::grayBuffer(), and restretch().
QSize Isis::CubeViewport::sizeHint | ( | ) | const [slot, inherited] |
Make viewports show up as 512 by 512.
void Isis::CubeViewport::stretchBlue | ( | const Stretch & | stretch | ) | [slot, inherited] |
Sets the stretch for blue in rgb mode.
stretch |
References Isis::CubeViewport::blueBand(), Isis::CubeViewport::BandInfo::getStretch(), Isis::CubeViewport::p_globalStretches, Isis::CubeViewport::paintPixmap(), and Isis::CubeViewport::BandInfo::setStretch().
void Isis::CubeViewport::stretchBlue | ( | const QString & | string | ) | [slot, inherited] |
Apply stretch pairs to blue bands.
stretch |
References Isis::Stretch::Parse(), and stretch.
Referenced by Isis::CubeViewport::stretchKnownGlobal(), and Isis::StretchTool::stretchRequested().
void Isis::CubeViewport::stretchGray | ( | const Stretch & | stretch | ) | [slot, inherited] |
Sets the stretch for gray mode.
stretch |
References Isis::CubeViewport::BandInfo::getStretch(), Isis::CubeViewport::grayBand(), Isis::CubeViewport::p_globalStretches, Isis::CubeViewport::paintPixmap(), and Isis::CubeViewport::BandInfo::setStretch().
void Isis::CubeViewport::stretchGray | ( | const QString & | string | ) | [slot, inherited] |
Apply stretch pairs to gray band.
string |
References Isis::Stretch::Parse(), and stretch.
Referenced by restretch(), Isis::CubeViewport::stretchKnownGlobal(), Isis::StretchTool::stretchRequested(), and Isis::CubeViewport::viewGray().
void Isis::CubeViewport::stretchGreen | ( | const Stretch & | stretch | ) | [slot, inherited] |
Sets the stretch for green in rgb mode.
stretch |
References Isis::CubeViewport::BandInfo::getStretch(), Isis::CubeViewport::greenBand(), Isis::CubeViewport::p_globalStretches, Isis::CubeViewport::paintPixmap(), and Isis::CubeViewport::BandInfo::setStretch().
void Isis::CubeViewport::stretchGreen | ( | const QString & | string | ) | [slot, inherited] |
Apply stretch pairs to green bands.
stretch |
References Isis::Stretch::Parse(), and stretch.
Referenced by Isis::CubeViewport::stretchKnownGlobal(), and Isis::StretchTool::stretchRequested().
void Isis::CubeViewport::stretchKnownGlobal | ( | ) | [slot, inherited] |
List<Tool *> p This stretches to the global stretch.
References Isis::CubeViewport::blueBand(), Isis::CubeViewport::grayBand(), Isis::CubeViewport::greenBand(), Isis::CubeViewport::isGray(), Isis::CubeViewport::p_globalStretches, Isis::CubeViewport::redBand(), Isis::CubeViewport::stretchBlue(), Isis::CubeViewport::stretchGray(), Isis::CubeViewport::stretchGreen(), and Isis::CubeViewport::stretchRed().
Referenced by Isis::StretchTool::stretchGlobal().
void Isis::CubeViewport::stretchRed | ( | const Stretch & | stretch | ) | [slot, inherited] |
Sets the stretch for red in rgb mode.
stretch |
References Isis::CubeViewport::BandInfo::getStretch(), Isis::CubeViewport::p_globalStretches, Isis::CubeViewport::paintPixmap(), Isis::CubeViewport::redBand(), and Isis::CubeViewport::BandInfo::setStretch().
void Isis::CubeViewport::stretchRed | ( | const QString & | string | ) | [slot, inherited] |
Apply stretch pairs to red bands.
stretch |
References Isis::Stretch::Parse(), and stretch.
Referenced by Isis::CubeViewport::stretchKnownGlobal(), and Isis::StretchTool::stretchRequested().
void Isis::IndependentCubeViewport::synchronize | ( | IndependentCubeViewport * | _t1 | ) | [signal] |
Referenced by eventFilter().
void Isis::IndependentCubeViewport::trackingChanged | ( | double | samp, | |
double | line, | |||
double | dn, | |||
IndependentCubeViewport * | _t4 | |||
) | [signal] |
void Isis::IndependentCubeViewport::trackingChanged | ( | double | sample, | |
double | line, | |||
double | lat, | |||
double | lon, | |||
double | dn, | |||
IndependentCubeViewport * | _t6 | |||
) | [signal] |
UniversalGroundMap* Isis::CubeViewport::universalGroundMap | ( | ) | const [inline, inherited] |
Return the universal ground map associated with the cube (NULL implies none).
void Isis::CubeViewport::viewGray | ( | int | band | ) | [virtual, slot, inherited] |
View cube as gray.
band |
Reimplemented in Isis::MdiCubeViewport.
References Isis::ViewportBuffer::addStretchAction(), Isis::CubeViewport::BandInfo::band, Isis::ViewportBuffer::getBand(), Isis::CubeViewport::BandInfo::getStretch(), Isis::CubeViewport::p_knownStretches, Isis::Camera::SetBand(), Isis::ViewportBuffer::setBand(), Isis::CubeViewport::setCaption(), and Isis::CubeViewport::stretchGray().
void Isis::CubeViewport::viewportToCube | ( | int | x, | |
int | y, | |||
double & | sample, | |||
double & | line | |||
) | const [inherited] |
Convert a viewport x/y to a cube sample/line (may be outside the cube).
x | ||
y | ||
sample | ||
line |
References Isis::CubeViewport::contentsToCube().
Referenced by Isis::CubeViewport::center(), Isis::CubeViewport::getCubeArea(), Isis::PanTool::mouseButtonRelease(), Isis::ScatterPlotWindow::paint(), Isis::ScatterPlotWindow::setMousePosition(), Isis::CubeViewport::setScale(), and Isis::CubePlotCurve::setSource().
void Isis::CubeViewport::viewportUpdated | ( | ) | [signal, inherited] |
Emitted when viewport updated.
Referenced by Isis::MdiCubeViewport::paintEvent().
void Isis::CubeViewport::viewRGB | ( | int | rband, | |
int | gband, | |||
int | bband | |||
) | [virtual, slot, inherited] |
View cube as color.
rband | ||
gband | ||
bband |
Reimplemented in Isis::MdiCubeViewport.
References Isis::ViewportBuffer::addStretchAction(), Isis::CubeViewport::BandInfo::band, Isis::ViewportBuffer::getBand(), Isis::CubeViewport::BandInfo::getStretch(), Isis::CubeViewport::p_knownStretches, Isis::Camera::SetBand(), Isis::ViewportBuffer::setBand(), Isis::CubeViewport::setCaption(), and Isis::CubeViewport::BandInfo::setStretch().
void Isis::CubeViewport::windowTitleChanged | ( | ) | [signal, inherited] |
Emitted when window title changes.
Referenced by Isis::CubeViewport::setCaption().
QVector< Stretch * >* Isis::CubeViewport::p_globalStretches [protected, inherited] |
Global stretches for each stretched band.
Referenced by Isis::CubeViewport::CubeViewport(), resetKnownGlobal(), Isis::CubeViewport::stretchBlue(), Isis::CubeViewport::stretchGray(), Isis::CubeViewport::stretchGreen(), Isis::CubeViewport::stretchKnownGlobal(), Isis::CubeViewport::stretchRed(), and Isis::CubeViewport::~CubeViewport().
QVector< Stretch * >* Isis::CubeViewport::p_knownStretches [protected, inherited] |
Stretches for each previously stretched band.
Referenced by Isis::CubeViewport::CubeViewport(), Isis::CubeViewport::forgetStretches(), Isis::CubeViewport::setAllBandStretches(), Isis::CubeViewport::viewGray(), Isis::CubeViewport::viewRGB(), and Isis::CubeViewport::~CubeViewport().
QPixmap Isis::CubeViewport::p_pixmap [protected, inherited] |
The qpixmap.
Referenced by Isis::MdiCubeViewport::paintEvent(), paintEvent(), Isis::CubeViewport::pixmap(), and Isis::CubeViewport::resizeEvent().