Isis Developer Reference
|
Cube display widget for certain Isis MDI applications. More...
#include <MdiCubeViewport.h>
Public Slots | |
void | setLinked (bool b) |
Change the linked state of the viewport. | |
void | viewGray (int band) |
void | viewRGB (int red, int green, int blue) |
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. | |
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 | showEvent (QShowEvent *) |
This method is called to initially show the viewport. | |
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 | linkChanging (bool) |
void | requestRestretch (MdiCubeViewport *, int) |
void | viewportUpdated () |
Emitted when viewport updated. | |
void | viewportClosed (CubeViewport *) |
Emitted when viewport is closed. | |
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 (CubeViewport *) |
Emitted when changes should be saved. | |
void | discardChanges (CubeViewport *) |
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 | progressComplete () |
Emitted when the current progress is complete (100) | |
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 | |
MdiCubeViewport (Cube *cube, Isis::CubeDataThread *cdt=0, QWidget *parent=0) | |
~MdiCubeViewport () | |
void | forceAbstract () |
bool | isLinked () const |
Is the viewport linked with other viewports. | |
void | registerTool (Tool *tool) |
Registers the tool given tool. | |
void | paintEvent (QPaintEvent *e) |
Repaint the viewport. | |
void | restretch (ViewportBuffer *buffer) |
This is called by internal viewport buffers when a stretch action should be performed. | |
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 |
bool | isGray () const |
int | grayBand () const |
int | redBand () const |
int | greenBand () const |
int | blueBand () const |
double | scale () const |
bool | cubeShown () const |
int | comboCount () const |
int | comboIndex () const |
void | cubeContentsChanged (QRect rect) |
Calle dhwen the contents of the cube changes. | |
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 |
Turns a viewport into a cube. | |
void | cubeToViewport (double sample, double line, int &x, int &y) const |
Turns a cube into a viewport. | |
void | contentsToCube (int x, int y, double &sample, double &line) const |
Turns contents to a cube. | |
void | cubeToContents (double sample, double line, int &x, int &y) const |
Turns a cube into contents. | |
double | redPixel (int sample, int line) |
Gets the red pixel. | |
double | greenPixel (int sample, int line) |
Gets the green pixel. | |
double | bluePixel (int sample, int line) |
Gets the blue pixel. | |
double | grayPixel (int sample, int line) |
Gets the gray pixel. | |
CubeStretch | grayStretch () const |
Return the gray band stretch. | |
CubeStretch | redStretch () const |
Return the red band stretch. | |
CubeStretch | greenStretch () const |
Return the green band stretch. | |
CubeStretch | blueStretch () const |
Return the blue band stretch. | |
Cube * | cube () const |
Projection * | projection () const |
Camera * | camera () const |
UniversalGroundMap * | universalGroundMap () const |
Cube * | trackingCube () const |
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. | |
void | setComboCount (int count) |
Sets the band bin combo box count. | |
void | setComboIndex (int index) |
Sets the band bin combo box index. | |
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. | |
bool | confirmClose () |
This method should be called during a close event that would cause this viewport to close. | |
void | setTrackingCube () |
Finds the Tracking group from p_cube and stores the tracking cube name so that we can grab it in AdvancedTrackTool and get mosaic information. | |
Protected Slots | |
virtual void | cubeDataChanged (int cubeId, const Isis::Brick *) |
This method updates the internal viewport buffer based on changes in cube DN values. | |
Protected Member Functions | |
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 bool | eventFilter (QObject *o, QEvent *e) |
Event filter to watch for mouse events on viewport. | |
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. | |
Cube display widget for certain Isis MDI applications.
Isis::MdiCubeViewport::MdiCubeViewport | ( | Cube * | cube, |
Isis::CubeDataThread * | cdt = 0, | ||
QWidget * | parent = 0 ) |
References Isis::FileName::expanded().
Isis::MdiCubeViewport::~MdiCubeViewport | ( | ) |
|
inlineinherited |
References Isis::CubeViewport::BandInfo::band.
Referenced by Isis::CubeViewport::stretchBlue(), and Isis::CubeViewport::stretchKnownGlobal().
|
inlineinherited |
Returns the blue viewport buffer (Will be NULL if in Gray mode.)
Referenced by restretch().
|
inherited |
Gets the blue pixel.
Return the blue pixel value at a sample/line.
sample | The sample |
line | The line |
sample | |
line |
References Isis::CubeViewport::BandInfo::band, Isis::Cube::read(), and Isis::Brick::SetBasePosition().
|
inherited |
Return the blue band stretch.
References Isis::CubeViewport::BandInfo::getStretch().
|
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().
|
inlineinherited |
|
slotinherited |
Bring the cube sample/line the center.
sample | Value of the sample to center on. |
line | Value of the line to center on. |
References Isis::CubeViewport::cubeToContents(), Isis::ViewportBuffer::pan(), and Isis::CubeViewport::screenPixelsChanged().
|
slotinherited |
Bring the cube pixel under viewport x/y to the center.
x | |
y |
References Isis::CubeViewport::center(), and Isis::CubeViewport::viewportToCube().
Referenced by Isis::CubeViewport::center(), and Isis::CubeViewport::setScale().
|
slotinherited |
Allows users to change the cursor type on the viewport.
cursor |
|
inlineinherited |
|
inlineinherited |
|
inherited |
This method should be called during a close event that would cause this viewport to close.
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.
References Isis::CubeViewport::cube(), Isis::CubeViewport::discardChanges(), and Isis::CubeViewport::saveChanges().
|
inherited |
Turns contents to a cube.
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().
|
inlineinherited |
Referenced by Isis::CubeViewport::confirmClose(), Isis::CubeViewport::cubeContentsChanged(), Isis::CubeViewport::cubeDataChanged(), Isis::Workspace::cubeToMdiWidget(), Isis::CubeViewport::CubeViewport(), Isis::FileTool::exportToList(), Isis::SunShadowTool::mouseButtonPress(), Isis::AbstractPlotTool::repaintViewports(), Isis::FileTool::save(), Isis::CubeViewport::setCube(), Isis::CubeDnView::viewportContainsShape(), Isis::ScatterPlotConfigDialog::xAxisCubeViewport(), and Isis::ScatterPlotConfigDialog::yAxisCubeViewport().
|
inherited |
Return the number of bands in the cube.
References Isis::Cube::bandCount().
Referenced by Isis::IndependentCubeViewport::resetKnownGlobal().
|
slotinherited |
This method is called when the cube has changed or changes have been finalized.
changed |
|
inherited |
Calle dhwen the contents of the cube changes.
Cube changed, repaint given area.
rect | The QRect |
rect | Rectangle containing portion of cube (sample/line) that changed. |
References Isis::CubeViewport::cube(), Isis::CubeViewport::cubeToViewport(), Isis::ViewportBuffer::fillBuffer(), Isis::Cube::lineCount(), and Isis::Cube::sampleCount().
|
protectedvirtualslotinherited |
This method updates the internal viewport buffer based on changes in cube DN values.
cubeId | Cube that the changed brick belongs to |
* | data New data |
References Isis::CubeViewport::cube(), Isis::CubeViewport::cubeToViewport(), Isis::CubeViewport::doneWithData(), Isis::ViewportBuffer::fillBuffer(), Isis::Buffer::Line(), Isis::Cube::lineCount(), Isis::Buffer::LineDimension(), Isis::Buffer::Sample(), Isis::Cube::sampleCount(), and Isis::Buffer::SampleDimension().
Referenced by Isis::IndependentCubeViewport::cubeDataChanged(), and Isis::CubeViewport::CubeViewport().
|
inlineinherited |
|
inlineinherited |
Referenced by Isis::IndependentCubeViewport::cubeDataChanged().
|
inherited |
Return the number of lines in the cube.
References Isis::Cube::lineCount().
Referenced by Isis::IndependentCubeViewport::cubeDataChanged(), Isis::CubeViewport::fitScale(), Isis::CubeViewport::fitScaleHeight(), Isis::CubeViewport::getCubeArea(), Isis::ViewportBuffer::hasEntireCube(), Isis::CubeViewport::setScale(), and Isis::CubeViewport::showEvent().
|
inherited |
Return the number of samples in the cube.
References Isis::Cube::sampleCount().
Referenced by Isis::IndependentCubeViewport::cubeDataChanged(), Isis::CubeViewport::fitScale(), Isis::CubeViewport::fitScaleWidth(), Isis::CubeViewport::getCubeArea(), Isis::ViewportBuffer::hasEntireCube(), Isis::CubeViewport::setScale(), and Isis::CubeViewport::showEvent().
|
inlineinherited |
|
inherited |
Turns a cube into contents.
Convert a cube sample/line to a contents x/y (should not be outside)
x | |
y | |
sample | |
line | |
sample | |
line | |
x | |
y |
Referenced by Isis::CubeViewport::center(), Isis::CubeViewport::cubeToViewport(), and Isis::CubeViewport::setScale().
|
inherited |
Turns a cube into a viewport.
Convert a cube sample/line to a viewport x/y (may be outside the viewport)
x | |
y | |
sample | |
line | |
sample | |
line | |
x | |
y |
References Isis::CubeViewport::cubeToContents().
Referenced by Isis::CubeViewport::cubeContentsChanged(), and Isis::CubeViewport::cubeDataChanged().
|
inherited |
Is cursor inside viewport.
|
inherited |
Return the cursor position in the viewport.
|
signalinherited |
Emitted when changes should be discarded.
Referenced by Isis::CubeViewport::confirmClose().
|
signalinherited |
Emitted when a brick is no longer needed, should only be sent to cube data thread.
Referenced by Isis::CubeViewport::cubeDataChanged(), and Isis::CubeViewport::CubeViewport().
|
slotinherited |
This restarts the progress bar.
Does nothing if already loading.
References Isis::CubeViewport::progressChanged().
|
protectedvirtualinherited |
Event filter to watch for mouse events on viewport.
o | |
e |
Reimplemented in Isis::IndependentCubeViewport.
References Isis::CubeViewport::mouseButtonPress(), Isis::CubeViewport::mouseButtonRelease(), Isis::CubeViewport::mouseDoubleClick(), Isis::CubeViewport::mouseEnter(), Isis::CubeViewport::mouseLeave(), and Isis::CubeViewport::mouseMove().
|
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().
|
inherited |
Determine the scale of cube in heighth to fit in the viewport.
References Isis::CubeViewport::cubeLines(), and Isis::CubeViewport::scale().
|
inherited |
Determine the scale of cube in the width to fit in the viewport.
References Isis::CubeViewport::cubeSamples(), and Isis::CubeViewport::scale().
|
inline |
|
inherited |
Resets all remembered stretches.
References Isis::CubeViewport::p_knownStretches.
|
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::Cube::bandCount(), Isis::Cube::fileName(), Isis::ViewportBuffer::getBand(), Isis::CubeViewport::getBandFilterName(), Isis::CubeViewport::getCubeArea(), Isis::Cube::lineCount(), Isis::Cube::physicalBand(), Isis::Cube::sampleCount(), and Isis::toString().
Referenced by Isis::FileTool::saveInfo().
|
inherited |
Get Band Filter name from the Isis cube label.
pFilterNameKey | - FilterName keyword containing the corresponding keyword from the Isis Cube label |
pFilterNameKey | - FilterName keyword containing the corresponding keyword from the Isis Cube label |
References Isis::PvlContainer::findKeyword(), Isis::PvlObject::findObject(), and Isis::Cube::label().
Referenced by Isis::CubeViewport::getAllWhatsThisInfo().
|
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().
|
inlineinherited |
References Isis::CubeViewport::BandInfo::band.
Referenced by Isis::IndependentCubeViewport::cubeDataChanged(), Isis::SpatialPlotTool::refreshPlot(), Isis::CubeViewport::stretchGray(), and Isis::CubeViewport::stretchKnownGlobal().
|
inlineinherited |
Returns the gray viewport buffer (Will be NULL if in RGB mode.)
Referenced by Isis::IndependentCubeViewport::resetKnownGlobal(), restretch(), and Isis::IndependentCubeViewport::showEvent().
|
inherited |
Gets the gray pixel.
Return the gray pixel value at a sample/line.
sample | The sample |
line | The line |
sample | |
line |
References Isis::CubeViewport::BandInfo::band, Isis::Cube::read(), and Isis::Brick::SetBasePosition().
|
inherited |
Return the gray band stretch.
References Isis::CubeViewport::BandInfo::getStretch().
Referenced by Isis::IndependentCubeViewport::cubeDataChanged(), and Isis::IndependentCubeViewport::restretch().
|
inlineinherited |
References Isis::CubeViewport::BandInfo::band.
Referenced by Isis::CubeViewport::stretchGreen(), and Isis::CubeViewport::stretchKnownGlobal().
|
inlineinherited |
Returns the green viewport buffer (Will be NULL if in Gray mode.)
Referenced by restretch().
|
inherited |
Gets the green pixel.
Return the green pixel value at a sample/line.
sample | The sample |
line | The line |
sample | |
line |
References Isis::CubeViewport::BandInfo::band, Isis::Cube::read(), and Isis::Brick::SetBasePosition().
|
inherited |
Return the green band stretch.
References Isis::CubeViewport::BandInfo::getStretch().
|
inlineinherited |
|
inlineinherited |
Referenced by Isis::SpatialPlotTool::refreshPlot(), and Isis::CubeViewport::stretchKnownGlobal().
|
inline |
Is the viewport linked with other viewports.
Referenced by Isis::FindTool::paintViewport(), Isis::RubberBandTool::paintViewport(), and Isis::AbstractPlotTool::viewportsToPlot().
|
protectedvirtualinherited |
Process arrow keystrokes on cube.
e |
References Isis::Cube::fileName(), Isis::CubeViewport::moveCursor(), Isis::CubeViewport::scale(), and Isis::CubeViewport::setScale().
|
signal |
Referenced by setLinked().
|
signalinherited |
Emitted when mouse button pressed.
Referenced by Isis::CubeViewport::eventFilter().
|
signalinherited |
Emitted when mouse button released.
Referenced by Isis::CubeViewport::eventFilter().
|
signalinherited |
Emitted when double click happens.
Referenced by Isis::CubeViewport::eventFilter().
|
signalinherited |
Emitted when the mouse enters the viewport.
Referenced by Isis::CubeViewport::eventFilter(), and Isis::IndependentCubeViewport::eventFilter().
|
signalinherited |
Emitted when the mouse leaves the viewport.
Referenced by Isis::CubeViewport::eventFilter(), and Isis::IndependentCubeViewport::eventFilter().
|
signalinherited |
Emitted when the mouse moves.
Referenced by Isis::CubeViewport::eventFilter().
|
signalinherited |
Emitted when the mouse moves.
|
inherited |
Move the cursor by x,y if possible.
x | |
y |
Referenced by Isis::CubeViewport::keyPressEvent().
|
slotinherited |
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::progressComplete(), Isis::CubeViewport::screenPixelsChanged(), and Isis::ViewportBuffer::working().
Referenced by Isis::CubeViewport::CubeViewport().
|
virtual |
Repaint the viewport.
e | [in] (QPaintEvent *) event |
Reimplemented from Isis::CubeViewport.
References Isis::CubeViewport::p_pixmap, Isis::CubeViewport::paintEvent(), and Isis::CubeViewport::viewportUpdated().
|
inherited |
Paint the whole pixmap.
References Isis::CubeViewport::paintPixmap().
Referenced by Isis::CubeViewport::bufferUpdated(), Isis::CubeViewport::paintPixmap(), Isis::CubeViewport::resizeEvent(), Isis::CubeViewport::scrollContentsBy(), Isis::CubeViewport::setScale(), Isis::CubeViewport::setScale(), Isis::CubeViewport::showEvent(), Isis::CubeViewport::stretchBlue(), Isis::CubeViewport::stretchGray(), Isis::CubeViewport::stretchGreen(), and Isis::CubeViewport::stretchRed().
|
inlineinherited |
Returns the pixmap.
References Isis::CubeViewport::p_pixmap.
Referenced by Isis::BlinkTool::eventFilter().
|
signalinherited |
Emitted with current progress (0 to 100) when working.
Referenced by Isis::CubeViewport::enableProgress(), and Isis::CubeViewport::onProgressTimer().
|
signalinherited |
Emitted when the current progress is complete (100)
Referenced by Isis::CubeViewport::onProgressTimer().
|
inlineinherited |
|
inlineinherited |
References Isis::CubeViewport::BandInfo::band.
Referenced by Isis::SpatialPlotTool::refreshPlot(), Isis::CubeViewport::stretchKnownGlobal(), and Isis::CubeViewport::stretchRed().
|
inlineinherited |
Returns the red viewport buffer (Will be NULL if in Gray mode.)
Referenced by restretch().
|
inherited |
Gets the red pixel.
Return the red pixel value at a sample/line.
sample | The sample |
line | The line |
sample | |
line |
References Isis::CubeViewport::BandInfo::band, Isis::Cube::read(), and Isis::Brick::SetBasePosition().
|
inherited |
Return the red band stretch.
References Isis::CubeViewport::BandInfo::getStretch().
void Isis::MdiCubeViewport::registerTool | ( | Tool * | tool | ) |
|
signal |
Referenced by restretch().
|
protectedvirtualinherited |
The viewport is being resized.
e |
References Isis::CubeViewport::p_pixmap, Isis::CubeViewport::paintPixmap(), Isis::ViewportBuffer::resizedViewport(), and Isis::CubeViewport::screenPixelsChanged().
|
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::StretchTool::Blue, Isis::CubeViewport::blueBuffer(), Isis::StretchTool::Gray, Isis::CubeViewport::grayBuffer(), Isis::StretchTool::Green, Isis::CubeViewport::greenBuffer(), Isis::StretchTool::Red, Isis::CubeViewport::redBuffer(), and requestRestretch().
|
signalinherited |
Emitted when changes should be saved.
Referenced by Isis::CubeViewport::confirmClose().
|
inlineinherited |
Referenced by Isis::CubeViewport::fitScale(), Isis::CubeViewport::fitScaleHeight(), Isis::CubeViewport::fitScaleWidth(), Isis::CubeViewport::keyPressEvent(), Isis::ViewportBuffer::pan(), Isis::ViewportBuffer::resizedViewport(), Isis::CubeViewport::setScale(), Isis::CubeViewport::setScale(), Isis::CubeViewport::setScale(), and Isis::ZoomTool::updateTool().
|
signalinherited |
Emitted when zoom factor changed just before the repaint event.
Referenced by Isis::CubeViewport::setScale().
|
signalinherited |
Emitted when cube pixels that should be on the screen change.
Referenced by Isis::CubeViewport::center(), Isis::CubeViewport::onProgressTimer(), Isis::CubeViewport::resizeEvent(), Isis::CubeViewport::scrollContentsBy(), Isis::CubeViewport::setScale(), and Isis::CubeViewport::setScale().
|
slotinherited |
Move the scrollbars by dx/dy screen pixels.
dx | |
dy |
References Isis::CubeViewport::scrollContentsBy().
|
protectedinherited |
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().
|
inherited |
|
inlineinherited |
Sets the background color.
color |
|
inherited |
Change the caption on the viewport title bar.
References Isis::CubeViewport::BandInfo::band, Isis::Cube::fileName(), and Isis::CubeViewport::windowTitleChanged().
Referenced by Isis::CubeViewport::CubeViewport(), Isis::CubeViewport::setCube(), Isis::CubeViewport::setScale(), Isis::CubeViewport::viewGray(), and Isis::CubeViewport::viewRGB().
|
inlineinherited |
Sets the band bin combo box count.
count |
|
inlineinherited |
Sets the band bin combo box index.
index |
|
inherited |
This method sets the viewports cube.
cube | The cube to set the CubeViewport window to |
cube |
References Isis::CubeViewport::cube(), and Isis::CubeViewport::setCaption().
|
inherited |
Set the cursor position to x/y in the viewport.
x | |
y |
|
slot |
Change the linked state of the viewport.
b |
References Isis::FileName::expanded(), and linkChanging().
|
slotinherited |
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(), Isis::CubeViewport::paintPixmap(), Isis::CubeViewport::scale(), Isis::CubeViewport::scaleChanged(), Isis::ViewportBuffer::scaleChanged(), Isis::CubeViewport::screenPixelsChanged(), and Isis::CubeViewport::setCaption().
Referenced by Isis::CubeViewport::keyPressEvent(), Isis::CubeViewport::setScale(), Isis::CubeViewport::setScale(), and Isis::CubeViewport::showEvent().
|
slotinherited |
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::scale(), Isis::CubeViewport::screenPixelsChanged(), and Isis::CubeViewport::setScale().
|
slotinherited |
Change the scale of the cube after moving x,y to the center.
scale | |
x | |
y |
References Isis::CubeViewport::scale(), Isis::CubeViewport::setScale(), and Isis::CubeViewport::viewportToCube().
|
inherited |
Finds the Tracking group from p_cube and stores the tracking cube name so that we can grab it in AdvancedTrackTool and get mosaic information.
This way, we are not opening the tracking cube every time the cursor is moved.
References Isis::Cube::fileName(), Isis::Cube::group(), and Isis::CubeViewport::trackingCube().
Referenced by Isis::CubeViewport::CubeViewport().
|
slotinherited |
This method is called to initially show the viewport.
It will set the scale to show the entire cube and enable the gray buffer.
event | Show event being received. |
References Isis::ViewportBuffer::addStretchAction(), Isis::CubeViewport::cubeLines(), Isis::CubeViewport::cubeSamples(), Isis::ViewportBuffer::enable(), Isis::ViewportBuffer::enabled(), Isis::CubeViewport::fitScale(), Isis::CubeViewport::paintPixmap(), and Isis::CubeViewport::setScale().
Referenced by Isis::IndependentCubeViewport::showEvent().
|
slotinherited |
Make viewports show up as 512 by 512.
|
slotinherited |
Apply stretch pairs to blue bands.
string |
References Isis::Stretch::Parse(), and Isis::CubeViewport::stretchBlue().
Referenced by Isis::CubeViewport::stretchBlue(), and Isis::CubeViewport::stretchKnownGlobal().
|
slotinherited |
Sets the stretch for blue in rgb mode.
stretch |
References Isis::CubeViewport::blueBand(), Isis::CubeViewport::BandInfo::getStretch(), Isis::CubeViewport::p_globalStretches, Isis::CubeViewport::paintPixmap(), Isis::Stretch::Pairs(), and Isis::CubeViewport::BandInfo::setStretch().
|
slotinherited |
Apply stretch pairs to gray band.
string |
References Isis::Stretch::Parse(), and Isis::CubeViewport::stretchGray().
Referenced by Isis::IndependentCubeViewport::cubeDataChanged(), Isis::IndependentCubeViewport::restretch(), Isis::CubeViewport::stretchGray(), Isis::CubeViewport::stretchKnownGlobal(), and Isis::CubeViewport::viewGray().
|
slotinherited |
Sets the stretch for gray mode.
stretch |
References Isis::CubeViewport::BandInfo::getStretch(), Isis::CubeViewport::grayBand(), Isis::CubeViewport::p_globalStretches, Isis::CubeViewport::paintPixmap(), Isis::Stretch::Pairs(), and Isis::CubeViewport::BandInfo::setStretch().
|
slotinherited |
Apply stretch pairs to green bands.
string | the stretch |
References Isis::Stretch::Parse(), and Isis::CubeViewport::stretchGreen().
Referenced by Isis::CubeViewport::stretchGreen(), and Isis::CubeViewport::stretchKnownGlobal().
|
slotinherited |
Sets the stretch for green in rgb mode.
stretch |
References Isis::CubeViewport::BandInfo::getStretch(), Isis::CubeViewport::greenBand(), Isis::CubeViewport::p_globalStretches, Isis::CubeViewport::paintPixmap(), Isis::Stretch::Pairs(), and Isis::CubeViewport::BandInfo::setStretch().
|
slotinherited |
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().
|
slotinherited |
Apply stretch pairs to red bands.
string | The stretch |
References Isis::Stretch::Parse(), and Isis::CubeViewport::stretchRed().
Referenced by Isis::CubeViewport::stretchKnownGlobal(), and Isis::CubeViewport::stretchRed().
|
slotinherited |
Sets the stretch for red in rgb mode.
stretch |
References Isis::CubeViewport::BandInfo::getStretch(), Isis::CubeViewport::p_globalStretches, Isis::CubeViewport::paintPixmap(), Isis::Stretch::Pairs(), Isis::CubeViewport::redBand(), and Isis::CubeViewport::BandInfo::setStretch().
|
inlineinherited |
Referenced by Isis::CubeViewport::setTrackingCube().
|
inlineinherited |
|
slot |
References Isis::CubeViewport::viewGray().
|
signalinherited |
Emitted when viewport is closed.
|
inherited |
Turns a viewport into a cube.
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::SunShadowTool::mouseButtonPress(), Isis::SunShadowTool::mouseMove(), Isis::CubeViewport::setScale(), and Isis::HistogramItem::setVertices().
|
signalinherited |
Emitted when viewport updated.
Referenced by paintEvent().
|
slot |
References Isis::CubeViewport::viewRGB().
|
signalinherited |
Emitted when window title changes.
Referenced by Isis::CubeViewport::setCaption().
Global stretches for each stretched band.
Referenced by Isis::CubeViewport::CubeViewport(), Isis::IndependentCubeViewport::resetKnownGlobal(), Isis::CubeViewport::stretchBlue(), Isis::CubeViewport::stretchGray(), Isis::CubeViewport::stretchGreen(), Isis::CubeViewport::stretchKnownGlobal(), Isis::CubeViewport::stretchRed(), and Isis::CubeViewport::~CubeViewport().
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().
|
protectedinherited |
The qpixmap.
Referenced by Isis::IndependentCubeViewport::paintEvent(), paintEvent(), Isis::CubeViewport::pixmap(), and Isis::CubeViewport::resizeEvent().